| 1 |
<!DOCTYPE html> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 5 |
<title>HTML5 MediaElement - Responsive</title> |
| 6 |
|
| 7 |
<script src="../build/jquery.js"></script> |
| 8 |
<script src="../build/mediaelement-and-player.min.js"></script> |
| 9 |
<script src="testforfiles.js"></script> |
| 10 |
<link rel="stylesheet" href="../build/mediaelementplayer.min.css" /> |
| 11 |
|
| 12 |
<style> |
| 13 |
.wrapper { |
| 14 |
width: 50%; |
| 15 |
} |
| 16 |
</style> |
| 17 |
|
| 18 |
</head> |
| 19 |
<body> |
| 20 |
|
| 21 |
<h1>MediaElementPlayer.js</h1> |
| 22 |
|
| 23 |
<h2>Responsive Demo</h2> |
| 24 |
|
| 25 |
<code><pre> |
| 26 |
<video width="640" height="360" style="width: 100%; height: 100%;" id="player1" preload="none"> |
| 27 |
|
| 28 |
<!-- Pseudo HTML5 --> |
| 29 |
<source type="video/youtube" src="http://www.youtube.com/watch?v=nOEw9iiopwI" /> |
| 30 |
|
| 31 |
</video> |
| 32 |
</pre></code> |
| 33 |
|
| 34 |
<div class="wrapper"> |
| 35 |
<video width="640" height="360" style="width: 100%; height: 100%;" id="player1"> |
| 36 |
|
| 37 |
<!-- Pseudo HTML5 --> |
| 38 |
<source type="video/youtube" src="http://www.youtube.com/watch?v=nOEw9iiopwI" /> |
| 39 |
|
| 40 |
</video> |
| 41 |
</div> |
| 42 |
|
| 43 |
<span id="player1-mode"></span> |
| 44 |
|
| 45 |
<script> |
| 46 |
|
| 47 |
$('video').mediaelementplayer({ |
| 48 |
success: function(media, node, player) { |
| 49 |
$('#' + node.id + '-mode').html('mode: ' + media.pluginType); |
| 50 |
} |
| 51 |
}); |
| 52 |
|
| 53 |
</script> |
| 54 |
|
| 55 |
</body> |
| 56 |
</html> |