Skip to main content
July 20, 2007
Question

Controlling volume in 1 frame FLV

  • July 20, 2007
  • 2 replies
  • 248 views
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
This topic has been closed for replies.

2 replies

July 20, 2007
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
funkysoul
Inspiring
July 20, 2007
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