Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (32 sloc) 1020 Bytes
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>HTML5 MediaElement - YouTube</title>
<script src="../build/jquery.js"></script>
<script src="../build/mediaelement-and-player.min.js"></script>
<link rel="stylesheet" href="../build/mediaelementplayer.min.css" />
<h2>YouTube Wrapper</h2>
&lt;video width="640" height="360" id="player1" preload="none"&gt;
&lt;!-- Pseudo HTML5 --&gt;
&lt;source type="video/youtube" src="" /&gt;
<video width="640" height="360" id="player1">
<!-- Pseudo HTML5 -->
<source type="video/youtube" src="" />
<span id="player1-mode"></span>
success: function(media, node, player) {
$('#' + + '-mode').html('mode: ' + media.pluginType);
Something went wrong with that request. Please try again.