Created
February 20, 2018 18:12
-
-
Save rbenvenuto/f1743dc45df97960d04e2a620899e2da to your computer and use it in GitHub Desktop.
Stop video execution when click on any element
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('div.sideview-close-btn').click(function() { | |
// comando que pausa o vídeo | |
$('#popup-youtube-player')[0].contentWindow.postMessage('{"event":"command","func":"stopVideo","args":""}', '*'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment