-1

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

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

4

1 回答 1

2

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

于 2015-04-07T07:55:23.167 回答