One thing to note about the FLV Playback component is that under the
hood it uses "VideoPlayer" Objects. I believe if you use SMIL to make
the player play multiple videos, the FLV Playback will use a new
VideoPlayer Object for each new video that is requested. If you are not
using SMIL, it seems that the FLV Playback always tries to use the same
VideoPlayer Object unless you explicitly tell it to change. And I have
found (at least in certian situations) that can cause problems similar
to what you describe. Below is the method I use to make the player use
a new VideoPlayer object each time I ask it to play a video. This
method is part of a wrapper class I use so... player is a property that
referes to the FLV Playback instance and nextVpIndex is a property that
stores an integer to keep track of what VideoObject to use next. I
don't use the VideoObject at index 0 because that one cannot be deleted.
private function _playVideo(url:String) {
if (player.activeVideoPlayerIndex > 0) {
player.closeVideoPlayer(player.activeVideoPlayerIndex);
delete player.getVideoPlayer(player.activeVideoPlayerIndex);
}
player.activeVideoPlayerIndex = ++nextVpIndex;
player.visibleVideoPlayerIndex = nextVpIndex;
player.play(url);
}
-Steve
_______________________________________________
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