Youtube embed not working in Chrome

与世无争的帅哥 提交于 2019-12-08 09:18:21

问题


I have this site:

http://www.israelsport.co.il

I'm embedding a YouTube video on one of the articles (look under the strip of commercials).

For some reason the video is not embedded properly on Chrome (Can't click to activate, shows the controls) While it does embed perfectly on Firefox.

The code I'm using for embedding is:

<iframe width="315" height="180" src="//www.youtube.com/embed/gDUUc-D75SQ?controls=0&showinfo=0&rel=0" frameborder="0" allowfullscreen></iframe>

Can someone help me solve the problem?

Thanks.


回答1:


ran into the same problem. try:

src="http://www.youtube.com...

instead of:

src="//www.youtube.com...


来源:https://stackoverflow.com/questions/21375678/youtube-embed-not-working-in-chrome

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!