How to set up a custom player to play Dailymotion video?

I created a custom Youtube player using VideoJS. But I did not know how to create a custom player for playing Dailymotion video?

I read everything here, but did not get any help. https://developer.dailymotion.com/player

I tried video.js-dailymotion as @misterben suggests, but the problem still exists.

My code

<!DOCTYPE html>
<html>
<head>
<title>Video.js | Dailymotion HTML5 Video Player</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<link href="http://vjs.zencdn.net/5.0/video-js.min.css" rel="stylesheet">
<script src="http://vjs.zencdn.net/5.0/video.min.js"></script>
<script src="dailymotion.js"></script>
</head>
<body>
<video id="vid1" class="video-js vjs-default-skin" controls preload="auto" width="640" height="360"
       data-setup='{ "techOrder": ["dailymotion"], "dmControls" : "1", "src": "http://www.dailymotion.com/video/xg3b7m_meetbuck_creation" }'></video>
</body>
</html>

Error in console

TypeError: videojs.MediaTechController undefined

videojs.Dailymotion = videojs.MediaTechController.extend ({

+4
source share
1 answer

video.js Dailymotion , You Tube, . , video.js 4, 5.

https://github.com/benjipott/video.js-dailymotion

+5

Source: https://habr.com/ru/post/1616011/


All Articles