Debian Codegraph @

demo/mediaelementplayer-inflash-autoresize.html

raw
1
2 <!DOCTYPE html>
3 <html>
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <title>HTML5 MediaElement</title>
7
8 <link rel="stylesheet" href="../build/mediaelementplayer.min.css" />
9 <script src="../build/jquery.js"></script>
10 <script src="../build/mediaelement-and-player.js"></script>
11
12 <style>
13 .video-container {
14 position: absolute;
15 top: 200px;
16 right: 20px;
17 left: 20px;
18 bottom: 50px;
19 }
20
21 .mejs-container {
22 max-width: 100%;
23 max-height: 100%;
24 }
25
26 </style>
27 </head>
28 <body>
29 <h1>MediaElementPlayer.js</h1>
30
31 <h2>Autoresize In Flash Demo</h2>
32
33 <code><pre>
34 &lt;div class="video-container"&gt;
35 &lt;video style="max-width:100%; max-height:100%;" src="../media/echo-hereweare.mp4" type="video/mp4" id="player1"
36 controls="controls" preload="none"&gt;&lt;/video&gt;
37 </pre></code>
38
39 <div class="video-container">
40 <video style="max-width:100%; max-height:100%;" src="../media/echo-hereweare.mp4" type="video/mp4" id="player1"
41 controls="controls" preload="none"></video>
42 </div>
43
44 <script>
45 $('video').mediaelementplayer({
46 mode: 'shim',
47 enableAutosize: false,
48 plugins: ['flash'],
49 success: function(player, node) {
50 $('#' + node.id + '-mode').html('mode: ' + player.pluginType);
51 }
52 });
53 </script>
54
55
56 </body>
57 </html>