2 Replies Latest reply on Jul 20, 2007 9:46 AM by msungho

    Controlling volume in 1 frame FLV

    msungho
      Hi everyone,

      I need some help with controlling the volume in a 1 frame flv. The FLV is 14 minutes in length and I would like to fade out the last 4 seconds of the audio.

      Any help would be greatly appreciated
        • 1. Re: Controlling volume in 1 frame FLV
          funkysoul Level 4
          First of all you need a function that fades down the volume of the flv.
          Second you need a second function which checks at which the position the flv is and checks back with the totaltime - 4 seconds of it, therefore you need to create a setInterval that checks every xxxms if the playhead reached the desired position and if yes, it should run the first function.

          function fadeOut(){
          //your fading code;
          }

          function timerCheck(){
          if(FLVPlayback.playHeadTime > FLVPlayback.totalTime-4){
          fadeOut();
          }

          setInterval(timerCheck, 100);

          That should work out
          • 2. Re: Controlling volume in 1 frame FLV
            msungho Level 1
            Sorry quick question.

            What do I put in between {} on the first function where you have notated //your fading code...or do I leave it blank

            Thanks for your help