Hi, 1. Switch between indexes if you have alot of sequential movies to play 2. use doLater if you're building on top of mx.core.uicomponent or a setInterval() with 100 milliseconds and a clear Interval to kill it again 3. Make sure you get the latest FLVPlayback component update 4. I am streaming through FMS and I get the same problem, make sure the flvs are not corrupted ..etc 5. check the following example, and make sure after you create allow a frame to pass so that the draw methods of the flvplayback component are done drawing. 6. MAKE sure you're not assigning an undefined value or a bad link, it breaks up the thing !! you'll have to use a catch/try if you're not sure or if statement before you assign.
Here's some code, see if that helps function createFLVPlayback() { this.my_FLVPlybk = FLVPlayback (this.attachMovie ("FLVPlayback", "my_FLVPlybk", 500)); this.my_FLVPlybk.autoPlay=true; this.my_FLVPlybk.activeVideoPlayerIndex = 1 this.my_FLVPlybk.visibleVideoPlayerIndex = 1 this.my_FLVPlybk.progressInterval = 001; } function switchToAnotherPlayer() { i=i==1? 2 : 1; k=i==1? 2 : 1; my_FLVPlybk.closeVideoPlayer(i); my_FLVPlybk.ncMgr.close(); my_FLVPlybk.getVideoPlayer(my_FLVPlybk.visibleVideoPlayerIndex).ncMgr.close(); my_FLVPlybk.activeVideoPlayerIndex = k; my_FLVPlybk.visibleVideoPlayerIndex = k; } On 12/26/06, me myself <[EMAIL PROTECTED]> wrote:
Join Date: Dec 2006 Posts: 2 *2nd Video Doesn't Play!* ------------------------------ Hi. I'm trying to play two videos in the flvplayback component. The first one is playing; the second isn't. Both paths are rtmp paths. I've read on various message boards that you should remove the .flv extension from the second path, but that doesn't help. In my move, the component is called flvPlayer. There's a button called btn. What's wrong with this code? //these first two lines work fine. flvPlayer.load("rtmp://path/to/media1.flv"); flvPlayer.play(); btn.onRelease = function():Void { //this doesn't work flvPlayer.load("rtmp://path/to/media2.flv"); //I've also tried without the .flv flvPlayer.play(); } When I click the button, the first flv does stop playing, the skin on the flvplayback component shows those little barber-pole stripes as if it's loading a second flv, and then the loading animation stops. And that's it. No video plays. Just to be clear, everything works fine if both videos come from http urls, but if they come from rtmp urls, only the first video plays. _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
_______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com