我们如何在dailymotion播放器新的测试版中播放youtube视频 [英] how can we play youtube videos in dailymotion player new beta version

查看:305
本文介绍了我们如何在dailymotion播放器新的测试版中播放youtube视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

So far this is what I have:

添加玩家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 '

so i need the player to play this video 'https://youtu.be/hXI8RQYC36Q?list=PLFgquLnL59akA2PflFpeQG9L01VFg90wS'

推荐答案

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

You can't. The dailymotion player can only read dailymotion videos just as the youtube player only allows you to play youtube videos.

这篇关于我们如何在dailymotion播放器新的测试版中播放youtube视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆