Home > OS >  How to embed dailymotion video in desktop website?
How to embed dailymotion video in desktop website?

Time:06-09

I am using DailyMotion SDK to embed video in editing website but the code did not working. Anyone from the team look into this? Thanks

CodePudding user response:

apply this method to your web, it will resolve your issue:

Embed Player var lnk = "https://www.dailymotion.com/services/oembed?url=https://www.dailymotion.com/video/x5s90td"; $.ajax({ url: lnk, type: 'GET', crossDomain: true, dataType: 'jsonp', success: function (out) { $('#page').append('

Title: ' out.title '

'); $('#page').append('

Description: ' out.description '

'); $('#page').append(' Author: ' out.author_name ''); $('#page').append('Thumbnail:
'); $('#page').append('Video: ' out.html); }, error: function (err) { console.log(err) } });

CodePudding user response:

There are more than one ways to embed video from Dailymotion to Wordpress site. I will show you the simplest way to do so.

Log in to your site backend. go to the page you want to embed video and click on edit with elementary. create a new section of one and drag and drop video widget present on the left-hand side. once the video widget is dragged and dropped content section will be available to edit. Click on the dropdown next to the source and select Dailymotion. copy the URL of the video on Dailymotion and paste it in the link section and click on update.

if your website on wordpress try this one:

  • Related