eleven82
09-11-2007, 08:46 PM
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?
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?