Hi, I’ve been trying to make my a simple RTMP player test. It seems to be getting the link, but not actually playing the video.
Here is the code:
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect("rtmp://video.njspeakup.com/vod/ppd");
var stream_ns:NetStream = new NetStream(connection_nc);
my_video.attachVideo(stream_ns);
stream_ns.play("NJDHSS_SpeakUp_Ad");
stream_ns.onStatus = function(infoObject:Object) {
trace("NetStream.onStatus called: ("+getTimer()+" ms)");
for (var prop in infoObject) {
trace(" "+prop+": "+infoObject[prop]);
}
trace("");
};
stream_ns.onMetaData = function(infoObject:Object) {
for (var propName:String in infoObject) {
trace(propName + " = " + infoObject[propName]);
}
};
The onStatus is tracing back info, but like I said, nothing is playing. I have a videoPlayer on the stage with the name my_video. The FLA is attached. (CS3)
Any help would be greatly appreciated.
Thanks!