【问题标题】:how can we play youtube videos in dailymotion player new beta version我们如何在 dailymotion 播放器新测试版中播放 youtube 视频
【发布时间】:2015-04-09 04:52:11
【问题描述】:

到目前为止,这是我所拥有的:

添加播放器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>

所以我需要播放器来播放这个视频'https://youtu.be/hXI8RQYC36Q?list=PLFgquLnL59akA2PflFpeQG9L01VFg90wS'

【问题讨论】:

    标签: javascript dailymotion-api


    【解决方案1】:

    你不能。 dailymotion 播放器只能阅读 dailymotion 视频,就像 youtube 播放器只允许您播放 youtube 视频一样。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-05-01
      • 1970-01-01
      • 2015-08-21
      • 1970-01-01
      • 2012-10-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多