YouTube embeds on iOS safari just stopped working for me yesterday

不打扰是莪最后的温柔 提交于 2021-01-28 21:04:47

问题


LATER NOTE... Problem went away after about 24 hours. Reported by many customers.


My website has embedded youtube videos. They have worked fine for years.

Beginning on Jan 29, 2020, my customers began to report the embedded videos not working on mobile Safari. I tried to play them on Safari on iOS 12.1.4 with the same result... they fail to play. Works fine on desktop Chrome browser.

The following test embed code is copied from youtube with no modifications.

I've tried it at several domains with the same result:
Plays fine on desktop Chrome, fails to play on iOS Safari.

Out of the blue... Can anyone else reproduce this?

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    </head>
    <body>
        <iframe width="560" height="315" src="https://www.youtube.com/embed/9YffrCViTVk" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
    </body>
</html>

https://jsfiddle.net/sg2enahL/

来源:https://stackoverflow.com/questions/59988720/youtube-embeds-on-ios-safari-just-stopped-working-for-me-yesterday

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