Last active
January 4, 2016 18:19
-
-
Save gridwalk/8660141 to your computer and use it in GitHub Desktop.
Reinitialize player on rotate
This file contains 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
//Automatic resize video player on device rotate | |
$(document).on('resize',function(){ | |
$player = $('.videoplayer iframe') | |
$player.attr('src', $player.attr('src')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment