@lawchihon/videojs-dailymotion
Version:
Dailymotion playback technology for Video.js
28 lines (26 loc) • 870 B
HTML
<html>
<head>
<link type="text/css" rel="stylesheet" href="../node_modules/video.js/dist/video-js.min.css" />
</head>
<body>
<video
id="vid1"
class="video-js vjs-default-skin"
controls
width="640" height="264"
data-setup='{ "techOrder": ["dailymotion"], "sources": [{ "type": "video/dailymotion", "src": "https://www.dailymotion.com/video/x7t3la2"}] }'
>
</video>
<script src="../node_modules/video.js/dist/video.js"></script>
<script src="../dist/Dailymotion.js"></script>
<script>
// An example of playing with the Video.js javascript API
// You can look at the doc there: http://docs.videojs.com/docs/guides/api.html
videojs('vid1').ready(function() {
var myPlayer = this;
myPlayer.src({ type: 'video/dailymotion', src: 'https://www.dailymotion.com/video/x7ya2i9' });
});
</script>
</body>
</html>