在像 YouTube 一样的 Facebook 共享中嵌入视频播放器 html5 iframe [英] Embedding video player html5 iframe in facebook share like YouTube

查看:15
本文介绍了在像 YouTube 一样的 Facebook 共享中嵌入视频播放器 html5 iframe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当某些内容从 youtube 分享到 facebook 时,facebook 现在会显示 youtube html5 播放器.

如果您查找他们的网址之一 (

我能想到的是,Facebook 已经与 youtube 达成了某种协议,但目前还不是每个人都可以使用,但从那个错误中并不清楚这一点.

我们网站上的所有内容都通过 https 提供.

有谁知道这是怎么回事或让它正常工作吗?

我在 facebook 上的任何地方都找不到任何有关如何执行此操作的文档.

不久前,当我尝试使其正常工作时,我发布了一个类似的问题youtube 仍然只向 facebook 提供 Flash 播放器.

看起来其他人遇到了类似的问题这里.

解决方案

根据 WizKid 的说法,YouTube 目前正处于试用期,希望将来会向所有人推出.

When something is shared from youtube to facebook, facebook is now showing the youtube html5 player.

If you look up one of their urls (https://www.youtube.com/watch?v=uuS5ZyQhvsk) in the open graph debugger you can see that they are now providing open graph meta data for their html player as well as the flash one.

I also have a player that sits in an iframe, and am now including the same tags that youtube is, minus the flash ones as we don't have a flash player, but it isn't working and facebook is giving me this error which doesn't make sense:

Share has playable media but will not play inline because it would cause a mixed content warning if embedded. Add a secure_src or make the video src secure to fix this.

This is the information facebook is reading:

This is the url as an example that is generating that error: https://www.la1tv.co.uk/player/124/260

All I can think is that Facebook has made some kind of deal with youtube and this isn't available for everyone yet, but that isn't clear from that error.

All of the content on our site is served over https.

Anyone know what's going on or got this working?

I can't find any documentation anywhere on facebook how to do this.

I posted a similar question a while back when I was trying to get this working but at this time youtube was still only providing the flash player to facebook.

It looks like someone else was having a similar issue here.

解决方案

According to WizKid this is currently in a trial period for YouTube and hopefully will be rolled out to everyone at a future date.

这篇关于在像 YouTube 一样的 Facebook 共享中嵌入视频播放器 html5 iframe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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