1
這裏是我的代碼:無法在AS2通過NetStream的方法來獲取流
<pre><code>
var my_nc:NetConnection = new NetConnection();
my_nc.connect("rtmp://localhost/oflaDemo/");
var my_ns:NetStream= new NetStream(my_nc);
my_video.attachVideo(my_ns);
//my_video.play();
my_nc.onStatus = function(info){
trace(info.code);
}
my_ns.onPlayStatus = function(info) {
trace("Stream" + info.code);
//if (info.code == "NetStream.Play.Stop") {
// trace("flv has finished playing")
//}
};
我沒能獲得通過RED5發佈的流。請幫助
我真的很感謝你的解釋,在第一階段,我想流(客戶爲例側),然後我會去publish_stream。 – Javed
查看網站上的演示應用程序:http://red5.electroteque.org/dev/doc/html/Red5DemoApplications.html –