Question : Streaming vs. Progressive Flv flash player

Hi, I want to ask the difference between them are using HTTP:// for progressive and using RTMP:// for streaming ?

---------- Progresive ----------
 
nc = new NetConnection();
nc.connect("http://******.host.com/bes/");
 
nc.onStatus = function(info){
trace(info.code);
if(info.code == "NetConnection.Connect.Success"){
playLive();
}
};
 
playLive = function(){
ns = new NetStream(nc);
theVideo.attachVideo(ns);
theVideo.attachAudio(ns);
ns.play("movie");
};

---------- Streaming ----------  
 
nc = new NetConnection();
nc.connect("rtmp://******.rtmphost.com/bes/");
 
nc.onStatus = function(info){
trace(info.code);
if(info.code == "NetConnection.Connect.Success"){
playLive();
}
};
 
playLive = function(){
ns = new NetStream(nc);
theVideo.attachVideo(ns);
theVideo.attachAudio(ns);
ns.play("movie");
};

Answer : Streaming vs. Progressive Flv flash player

okay, here is the solution

var connection_nc:NetConnection = new NetConnection();

// Put the RTMP URL here, leaving off the name of the video:
connection_nc.connect("rtmp://xxxxx-ns.xxxxxxxxx.com/ondemand/media/banner/20090325");
var stream_ns:NetStream = new NetStream(connection_nc);
myVideo.attachVideo(stream_ns);

// Put the name of the FLV here *WITHOUT* ".flv" at the end:
stream_ns.play("728x90");
Random Solutions  
 
programming4us programming4us