-1

So far this is what I have: so i need the player to play this video '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>

any suggestions

2 Answers2

0

First, you need to know what video formats Dailymotion player supports. Then you have to download this YouTube video before you can play it back.

Deditos
  • 1,385
  • 1
  • 13
  • 23
cooper MY
  • 9
  • 1
0

already answered at how can we play youtube videos in dailymotion player new beta version

The Dailymotion player can only read videos hosted on Dailymotion just as the Youtube player only allows you to play Youtube videos.

Community
  • 1
  • 1
dailymotion
  • 1,546
  • 1
  • 9
  • 11