iOS 上带有 Cloudfront 的 JW Player 无法正常工作

发布于 2024-10-16 01:27:01 字数 1239 浏览 3 评论 0原文

我在将 JW Player 5.4 与 Amazon Cloudfront 结合使用时遇到问题。我正在使用 JW Player Javascript Embed 方法回退到 iOS 上的 HTML5 播放器。这非常有效,只是有时视频无法从 Cloudfront 正确加载。播放器显示时带有禁用的播放按钮。

奇怪的是,这种情况似乎偶尔发生。现在我们几乎得到了 50/50 的机会。我设置了一个页面,其中有两个播放器加载完全相同的视频文件。顶部从本地服务器加载,底部从 Cloudfront 加载。

http://dj.jomrx.com/video/

如果您在 iPhone 上查看此页面 (4在我的测试中),顶级玩家总是可以正常工作。然而底部存在上述问题。如果你刷新很多次,你就会(希望)看到我所经历的。

有人建议视频元数据的加载超时。不过,我认为 Cloudfront 应该像 CDN 一样快,并且不会出现超时/延迟问题。关于可能导致该问题的原因还有其他想法吗?我搜索了又搜索,但还没有找到任何好的结果。

非常感谢!

更多信息(JW Player 支持主题):http://www.longtailvideo.com/support/forums/jw-player/setup-issues-and-embedding/17781/video-on-iphone -issue-flash-player-with-html5-fallback/

更新:看起来这可能不是 JW Player 的问题。硬编码 HTML5 视频标签也存在同样的问题。 http://dj.jomrx.com/video/index2.php

更新2:在 AWS Premium Support 提供一些帮助后,问题似乎出在 HTTPS 上。我不知道很多技术细节,也不知道为什么,但显然 AWS 表示 Mobile Safari“有时”拒绝由 Cloudfront 提供的 SSL 证书。我们改用普通 HTTP,现在一切都很好。

I'm having an issue using JW Player 5.4 with Amazon Cloudfront. I am using the JW Player Javascript Embed method to fall back to an HTML5 player on iOS. This is working great, except sometimes the videos don't load properly from Cloudfront. The player appears with a disabled play button.

The strange thing is that this seems to happen sporadically. We are almost getting a 50/50 chance now. I've set up a page where I have two players loading the exact same video file. The top is loading from the local server, while the bottom from Cloudfront.

http://dj.jomrx.com/video/

If you view this page on an iPhone (4 in my tests), the top player always works correctly. However the bottom has the issue described above. If you refresh a bunch of times you'll (hopefully) see what I am experiencing.

Someone suggested that the loading of the video metadata is timing out. However I thought Cloudfront was supposed to be fast as a CDN and wouldn't expect a timeout / latency issue. Any other ideas on what might be causing the issue? I've searched and searched but haven't found any good results yet.

Thanks a bunch!

More info (JW Player support topic): http://www.longtailvideo.com/support/forums/jw-player/setup-issues-and-embedding/17781/video-on-iphone-issue-flash-player-with-html5-fallback/

Update: Looks like this might not be an issue with JW Player. Same issue with hard-coded HTML5 video tags. http://dj.jomrx.com/video/index2.php

Update 2: After some help from AWS Premium Support, it looks like the issue was HTTPS. I don't know many of the technical details and I'm not sure why, but apparently AWS says that Mobile Safari is "sometimes" rejecting the SSL certificated served by Cloudfront. We switched to just regular HTTP and everything is fine now.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文