How to embed DailyMotion video on local html page?

Yasser B. picture Yasser B. · May 6, 2015 · Viewed 8k times · Source

I'm looking on how to embed a DailyMotion video on local html page, it works on server, but not on local.

in my web application, I'm embedding both of DailyMotion and Youtube videos on this webapp , youtube videos are working but not DailyMotion videos

I'm using simple Iframe embed method :

<iframe frameborder="0" width="480" height="270" src="//www.dailymotion.com/embed/video/x2p99yn" ></iframe>

Answer

dailymotion picture dailymotion · May 11, 2015

You need to add the protocol to the source url: in your iframe, you have src="//www and you need to replace it by src="http://www for it to work in local