i’ve got a streaming server that i’m trying to connect to play an .flv in my flash movie.
i’ve done this before on other servers, no problem. for some reason my stream will play if i put my rtmp address in the content path of the flv playback component, but using actionscript with netConnection/netStream produces no results (netConnection works, video doesn’t play though).
all i have from the media server folks is something like this:
rtmp://xxx.xxxx.net/ondemand/23245/mm/flvmedia/201/Your_Filename.flv
like i said, this works fine if i paste it into the content path field on .flvplayback component. I want more control, so i’m trying to connect with netStream, etc. like this:
stop();
nc= new NetConnection();
nc.onStatus=function(infoObject){
trace(infoObject.code);
tracer.text=infoObject.code;
}
nc.connect("rtmp://xxxx.xxxx.net/ondemand/23245/mm/flvmedia/201");
ns = new NetStream(nc);
ns.onStatus=function(infoObject){
trace(infoObject.code);
tracer2.text=infoObject.code;
}
myVid.attachVideo(ns);
ns.setBufferTime(1);
ns.play("highlights.flv");
if i test movie, i get netConnection connect success traced back and netStream traces back play but nothing shows up in my vid object.
the 201 folder is the folder containing the .flvs supposedly. i’ve been playing around with the full URL trying to see if ‘ondemand’ is an application name, etc. no results! any help or insight would be great!