I'd like to trigger full screen when a MediaElement video is played.
$('video').on("play", function () {
//fullscreen mode
});
Any ideas? thanks!
Make sure you have jquery version 1.7 or later to use the on function. Then this should work:
player = new MediaElementPlayer('video');
$('video').on("play", function() {
player.enterFullScreen();
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With