【发布时间】:2018-03-08 17:11:44
【问题描述】:
自上次 Safari 更新到版本 11 后,一些视频停止播放。 最糟糕的是,有时,比如五次尝试一次,它会起作用。 我认为原因是我的 JS 脚本集成了 Vimeo Player API,但结果是即使 Vimeo 的嵌入链接根本不起作用。
因此,当您在 Safari 11 中打开嵌入视频时,它不会启动并且会完全阻塞。您可以通过打开即看到它 https://player.vimeo.com/video/XXXXXXXX?autoplay=1
在控制台日志中你可以得到类似的东西:
Unhandled Promise Rejection: NotAllowedError (DOM Exception 35): The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.
【问题讨论】:
标签: video safari vimeo autoplay