all groups > macromedia flash flashcom > september 2007 >
You're in the

macromedia flash flashcom

group:

Streaming video from FMS2


Streaming video from FMS2 eleven82
9/11/2007 8:45:15 PM
macromedia flash flashcom:
I have a video player that will connect but doesn't show the video. The player
works fine locally but when I try it online it connects but does not play the
video. Here is my code:

var rtmpNow:String = "rtmp://IP ADDRESS/media";
var nc:NetConnection = new NetConnection();
nc.onStatus = function(info) {
if (info.code == "NetConnection.Connect.Success") {
info_txt.text = "Connected";
} else {
info_txt.text = "No Connection";
}
};
nc.connect(rtmpNow);
var ns:NetStream = new NetStream(nc);

vid_video.attachVideo(ns);
ns.play("video1");

* I didn't include the IP ADDRESS because, right now, we don't leave that
server on all the time.

Can anyone help?
Re: Streaming video from FMS2 Mindwave Creations
9/19/2007 12:00:00 AM
Re: Streaming video from FMS2 Bob28
9/29/2007 3:53:13 AM
I'm having the same problem. I have included
myConnection.myConn.objectEncoding = flash.net.ObjectEncoding.AMF0;
If running on a windows platform and I see in the FMS2 is being connected to,
but the video doesn't play.


Re: Streaming video from FMS2 Mario Vieira
10/3/2007 1:40:54 AM
I have had problems with establishing connection to my online FMS2. so, after
all this might be related...

the things, is not because we asked the connection that it's there, right?

my server usually takes up to 8secs to return me something... like in your
case, use the play method onRelease, so you can wait a few seconds to call
it...

just an idea really
Re: Streaming video from FMS2 jonpor
10/3/2007 3:23:51 AM
Just to clarify, you are playing a video or a live stream (of a video)?

You should try to add some error handling to the netstream ( the onsync to
start) and see if it shows you any useful information.
AddThis Social Bookmark Button