Adjust Volume on FLV Video


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. var st:SoundTransform = new SoundTransform();
  2. st.volume = 1;
  3. stream.soundTransform = st;
  4.  
  5. function mute(e:MouseEvent):void {
  6. st.volume = 0;
  7. stream.soundTransform = st; // must reconnect after each volume change
  8. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.