-1

到目前为止,这就是我所拥有的:所以我需要播放器来播放这个视频' https://youtu.be/hXI8RQYC36Q?list=PLFgquLnL59akA2PflFpeQG9L01VFg90wS '

  adding player js
 <script src="http://api.dmcdn.net/all.js"></script>

    <script>
        DM.init({
          apiKey: 'my app key',
          status: true, // check login status
          cookie: true // enable cookies to allow the server to   access the session
    });


    // Append a div in the DOM, you may use a real <div> tag
    var div = document.createElement('div');
    document.body.appendChild(div);


    var videos = 'xdn8vw'; // this is the video id from dailymotions site now i want to play the any youtube video
    var player = DM.player(div, {video: videos });


</script>

有什么建议么

4

2 回答 2

0

首先,您需要了解 Dailymotion 播放器支持哪些视频格式。然后,您必须先下载此 YouTube 视频,然后才能播放。

于 2015-04-24T08:00:17.290 回答
0

已经回答了我们如何在dailymotion播放器新测试版中播放youtube视频

Dailymotion 播放器只能阅读 Dailymotion 上托管的视频,就像 Youtube 播放器只允许您播放 Youtube 视频一样。

于 2015-11-02T14:30:45.933 回答