在 https 上嵌入 Facebook 墙上的视频无法播放
我们在页面上设置了开放图标签,以将视频嵌入到共享该页面的用户的 Facebook 墙上。
当在 http:// 上单击视频时,它将完美播放。 当在 https:// 上单击视频时(例如在隐私设置中设置),仅显示屏幕截图,并链接到共享页面。
可以通过共享以下 URL 来生成该情况: http://sizzer.nl/en /work/show/id/81/ 并在使用 http:// 和 https:// 时在墙上观看
Vimeo 和 YouTube 视频在 https 上观看时确实会播放
我们应该更改服务器上的标头还是Facebook 和 Youtube / Vimeo 之间存在合作关系,允许当用户墙显示在 https 上时,它们会显示视频吗?
We have set up the open graph tags on our pages to embed a video on the facebook wall of the user that shares the page.
When the video is clicked when on http:// it will play perfectly.
When the video is clicked when on https:// (e.g. set up in the privacy settings) only the screenshot is displayed, and links to the shared page.
The situation can be produced by sharing the following URL: http://sizzer.nl/en/work/show/id/81/ and watch it on your wall when using http:// and https://
Vimeo and YouTube videos do play when watched on https
Should we change the headers on our servers or is there a partnership between Facebook and Youtube / Vimeo that allows them show video when the users wall is shown on https?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
要为视频设置 HTTPS 源,您需要指定 og:video:secure_url 标签并将其指向视频的 HTTPS 源。
请参阅此处:https://developers.facebook.com/docs/opengraph/#audiovideo
昨天的博客文章中也宣布了这一点:https://developers.facebook.com/blog/post /602/
To set up a HTTPS source for the video you need to specify the
og:video:secure_url
tag and point it to the HTTPS source for the video.See here: https://developers.facebook.com/docs/opengraph/#audiovideo
It was announced in yesterdays blog post too: https://developers.facebook.com/blog/post/602/
secure_url 标签不起作用,Youtube 和 Vimeo 也不使用它。我只能通过 https 提供内容来解决这个问题
The secure_url tag does not work, nor do Youtube and Vimeo use it. I've only managed to resolve this by serving content over https
尝试
try
<meta property="og:video:secure_url" content="http://..." />