html - Fade out volume of <iframe> with jQuery -


i'm trying fade out volume of youtube video embedded in iframe when user closes modal window attached to. instead of having audio end abruptly, nice fade volume slowly. code isn't working:

$('#youtube-player').animate({volume: 0}, 1000); 

what else can try?

you need refer api this. jquery can't take care of this;

api: https://developers.google.com/youtube/js_api_reference

player.setvolume(volume:number) 

you can create loop decrease volume.


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

php - Boolean search on database with 5 million rows, very slow -

css - Text drops down with smaller window -