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

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

问题描述



如果您查看其中的一个网址(



所有我可以想到的是,Facebook已经与YouTube进行了某种交易,但这并不适合所有人,但是



我们网站上的所有内容均通过https提供。



任何人知道发生了什么,或者是这样工作?



我在Facebook上的任何地方找不到任何文档,如何做到这一点。


$ b $我发布了一个相似的问题,当我试图让这个工作,但在这个时候,YouTube仍然只提供flash播放器到Facebook。



看起来别人有类似的问题 here

解决方案

根据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.

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

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