Flash audio dropping in FLV playback

From Birnam Designs Wiki

Jump to: navigation, search

The sound will drop if you are using multiple FLVs in a single FLVPlayback control and switch the active or visible video. To get it back, drop the volume down to 0 before the flip, then back up to the previous volume after switching. Example:


  1. var prevol:Number = vid.volume;
  2. vid.volume = 0;
  3.  
  4. vid.stop();
  5. vid.activeVideoPlayerIndex = 1;
  6. vid.visibleVideoPlayerIndex = 1;
  7. vid.visible = true;
  8. vid.play();
  9.  
  10. vid.volume = prevol;
Share This!
This page was last modified on 11 February 2010, at 19:47. This page has been accessed 576 times.