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

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -