Youtube embed not working in firefox

前端 未结 2 737
天命终不由人
天命终不由人 2021-01-11 22:59

I have Embedded three Youtube videos, they work perfectly in ALL BROWSERS except Firefox.

Tried clearing cache on server side, cleared cookies & cache locally, t

相关标签:
2条回答
  • 2021-01-11 23:40

    Check the parent element to see if a CSS3 transform is applied. Our videos quit working in FireFox 24-26 until we pulled the following code off of a parent wrapping element:

     transform: translate3d(0,0,0); 
    

    In this specific case, the 3d transform was applied to make things look better in Chrome, (hence the (0,0,0), but if you do a search through your CSS for transform and find an entry, try pulling it. Or testing in FireBug first.

    0 讨论(0)
  • 2021-01-11 23:57

    Found this on a website hope it helps:

    Seems that the problem occurs only when youtube shows the flash version of video, while with html5 it works. You can force YT to serve the html5 version of the video adding this to the iframe embed code: html5=1

    <iframe src="http://www.youtube.com/embed/_VIDEO_ID_?html5=1" [...]></iframe>
    

    Consider also that if the html5 version of the video for Firefox is not present, YT serves however the flash video as fallback. So the issue is surely related with flash.

    //edit changed &html5=1 to ?html5=1

    0 讨论(0)
提交回复
热议问题