I guess the list is back so I will resend this...
Is there a difference in how attachVideo() is used for progressive or
streamed video?
I have an actionscript video player that has the necessary code on the
layer containing the progress bar and controls.
The embedded video mc is on a different layer. This works fine when
streaming, but when I try to modify the code to handle a progressive
download, I get the audio but no video.
Here's the code for the streaming (works fine):
==================================================================
nc = new NetConnection();
nc.onStatus = function(ncObj:Object):Void {
initStreams();
}
//for streaming
nc.connect("rtmp://192.168.0.1/lapp/");
function initStreams():Void {
//set up netstream to the connection
ns = new NetStream(nc);
//set buffertime
ns.setBufferTime(4);
//attach the stream to the video
_root.myPlayer.attachVideo(ns);
//for streaming
ns.play("512kbps_Stream",0,-1,false);
}
==================================================================
Now, if i change it to handle a progressive download, I get audio but
no video.
==================================================================
nc = new NetConnection();
nc.onStatus = function(ncObj:Object):Void {
initStreams();
}
//for prog download video
nc.connect(null);
function initStreams():Void {
//set up netstream to the connection
ns = new NetStream(nc);
//set buffertime
ns.setBufferTime(4);
//attach the stream to the video
_root.myPlayer.attachVideo(ns);
//for prog video play
ns.play("http://www.someserver.com/Stream001.flv");
}
==================================================================
If I embed the video on the same layer it works fine.
Is is me?
Thanks,
Sean
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
|