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
Post a Comment