Facebook嵌入式视频:错误的协议和过时的闪存播放器



我想我遇到了几个问题。我正在尝试使用他们在这里的说明嵌入一个Facebook视频。

在Chrome中运行良好。当我在Safari中尝试时,占位符图像会加载良好,但当尝试播放视频时,它一直在旋转,我在控制台中出现了一系列错误:

Blocked a frame with origin "https://www.facebook.com" from accessing a frame with origin "http://localhost:4000".  The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http". Protocols must match.

显然,我不是在本地主机上运行https,而是为一个也是http的站点进行开发。

然后我在Firefox中尝试了一下,收到了一条警告,大意是"这个视频不能在过时的Adobe Flash播放器上播放。"当我安装新版本的Adobe Flash时,它可以在Safari和Firefox中播放。然而,我仍然在Safari中得到"协议"控制台错误,在Firefox中得到以下控制台错误:

- This site makes use of a SHA-1 Certificate; it's recommended you use certificates with signature algorithms that use hash functions stronger than SHA-1.
- Error: Permission denied to access property 'toString'

几个问题:

  1. 如何消除控制台错误
  2. 如何通知Safari用户Flash播放器已过期或不使用Flash?(我注意到它适用于没有Flash的iPhone。有没有办法告诉Facebook使用另一种视频格式?)
  1. 警告

对于错误:访问属性"toString"的权限被拒绝警告,您可以忽略它,无法对此执行任何操作。请阅读此答案,了解更多详细信息:https://stackoverflow.com/a/13101119/2389083

对于SHA-1证书警告,这是一个Firefox警告,请查看他们谈论它的博客文章:https://blog.mozilla.org/security/2014/09/23/phasing-out-certificates-with-sha-1-based-signature-algorithms/

  1. 过时的Flash播放器

每次你打开一个使用Adobe Flash播放器的网站,插件检测到你的版本已经过时时,都会提示你更新Flash版本。我认为你不需要担心。

最新更新