Skip to content

Instantly share code, notes, and snippets.

@vibhi19
Created February 27, 2018 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vibhi19/0a0024e8fd32299de233d6f16ecd4caf to your computer and use it in GitHub Desktop.
Save vibhi19/0a0024e8fd32299de233d6f16ecd4caf to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>MediaElement.js 3.0 - audio/video unification library</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
<link rel="stylesheet" href="../build/mediaelementplayer.css">
</head>
<body>
<div id="container">
<section>
<h1>MediaElement.js</h1>
<div class="players" id="player1-container">
<h3>Video Player</h3>
<div class="media-wrapper">
<iframe id="player1" src="https://www.youtube.com/embed/QILiHiTD3uc" frameborder="0" allowfullscreen=""></iframe>
</div>
</div>
<script
src="https://code.jquery.com/jquery-2.2.4.min.js"
integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44="
crossorigin="anonymous"></script>
<script src="../build/mediaelement-and-player.js"></script>
<script src="../build/renderers/dailymotion.js"></script>
<script>
jQuery(function ($) {
$('video, audio, iframe[src*="youtube.com"], iframe[src*="dailymotion"]').mediaelementplayer({
stretching: 'responsive'
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment