Hello all,
I am trying to load an FLV externally and control it with the FLVplayback component. FLVPlayback instance name <my_video>
I get the audi but the controls don't work and no video.
I'm sure I overlooked something simple but I can't seem to find a good tutorial on this.
Thanks in advance. - Johnnyxl
<code>
// Create a NetConnection object
var my_nc:NetConnection = new NetConnection();
// Create a local streaming connection
my_nc.connect(null);
// Create a NetStream object and define an onStatus() function
var my_ns:NetStream = new NetStream(my_nc);
// Attach the NetStream video feed to the Video object
my_video.attachVideo(my_ns);
// Set the buffer time
my_ns.setBufferTime(5);
// Begin playing the FLV file
my_ns.play("/video/flv/myFLVvideo.flv");
</code>
I am trying to load an FLV externally and control it with the FLVplayback component. FLVPlayback instance name <my_video>
I get the audi but the controls don't work and no video.
I'm sure I overlooked something simple but I can't seem to find a good tutorial on this.
Thanks in advance. - Johnnyxl
<code>
// Create a NetConnection object
var my_nc:NetConnection = new NetConnection();
// Create a local streaming connection
my_nc.connect(null);
// Create a NetStream object and define an onStatus() function
var my_ns:NetStream = new NetStream(my_nc);
// Attach the NetStream video feed to the Video object
my_video.attachVideo(my_ns);
// Set the buffer time
my_ns.setBufferTime(5);
// Begin playing the FLV file
my_ns.play("/video/flv/myFLVvideo.flv");
</code>