Using the YouTube iframe embed player, is there a way to trigger fullscreen programatically? I want to remove the default controls (using controls=0) but then have the ability t
Try the following in Webkit browsers:
if (typeof iframe.webkitRequestFullScreen === 'function') { button.addEventListener('click', function () { iframe.webkitRequestFullScreen(); }, false); }
Note that this won't work without a user gesture (in this case, 'click').