【问题标题】:is there any way play youtube videos in dailymotion player new beta version有没有办法在dailymotion播放器新测试版中播放youtube视频
【发布时间】:2015-11-02 22:30:45
【问题描述】:

到目前为止,这就是我所拥有的: 所以我需要播放器来播放这个视频'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>

任何建议

【问题讨论】:

    标签: javascript php dailymotion-api


    【解决方案1】:

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

    【讨论】:

    • 不确定我的编辑是否改变了你的意思;如果没有,请随时恢复它。
    【解决方案2】:

    已经回复how can we play youtube videos in dailymotion player new beta version

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-16
      • 2014-05-01
      • 2015-09-08
      • 1970-01-01
      • 2015-08-21
      • 2021-12-28
      相关资源
      最近更新 更多