mgeduld
12-26-2006, 04:55 AM
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");
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.
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");
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.