YouTube在iOS Safari中的嵌入功能昨天才停止为我工作 [英] YouTube embeds on iOS safari just stopped working for me yesterday

查看:61
本文介绍了YouTube在iOS Safari中的嵌入功能昨天才停止为我工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

注意事项...问题在大约24小时后消失了.有很多客户报道.

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

我的网站嵌入了youtube视频.他们已经工作好几年了.

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

从2020年1月29日开始,我的客户开始报告嵌入式视频无法在移动Safari上运行.我试图在iOS 12.1.4的Safari上播放它们,结果相同...它们无法播放.在桌面Chrome浏览器上可以正常工作.

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.

以下测试嵌入代码是从youtube复制而来的,未经修改.

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

我已经在多个域中尝试了相同的结果:
在台式机Chrome上播放正常,在iOS Safari上无法播放.

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/

推荐答案

只需转到Safari中的历史记录"即可.选择底部的清除历史记录以清除最后一个小时的cookie和网站数据.这应该可以解决问题.

Just go to History in Safari. Select clear History down the bottom to clear cookies and website data for the last hour. This should fix the problem.

这篇关于YouTube在iOS Safari中的嵌入功能昨天才停止为我工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆