wemersonrv

Detect fullscreen in video with mediaelement.js

Feb 14th, 2013
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.51 KB | None | 0 0
  1. <!-- MediaElement Assets -->
  2. <script src="mediaelement/build/mediaelement-and-player.min.js"></script>
  3. <link rel="stylesheet" href="mediaelement/build/mediaelementplayer.min.css" />
  4.  
  5. <video width="640" height="480" id="player2" poster="mp4-poster.jpg" controls="controls" preload="none">
  6.     <source type="video/mp4" src="mediaelement/media/echo-hereweare.mp4" />
  7. </video>
  8.  
  9.  
  10. <script>
  11.     $('video').mediaelementplayer({
  12.         success: function(player, node) {
  13.             console.log("Player starts...");
  14.         },
  15.     });
  16. </script>
Advertisement
Add Comment
Please, Sign In to add comment