如何在Facebook上贴上自定义的HTML5播放器? [英] How to embed custom HTML5 Player on Facebook post?

查看:148
本文介绍了如何在Facebook上贴上自定义的HTML5播放器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

感谢您阅读我的问题



我已经google了不够,想了解如何在Facebook上贴上自定义的HTML5播放器。我已经看过Youtube,Soundcloud(和最近的Sketchfab)..在Facebook上分享的链接,它将被转换成HTML5播放器。我知道如何嵌入自定义Flash播放器,但很难嵌入自定义HTML5播放器。



我试图使用他们(Youtube,Sketchfab)使用的所有OG标签,我买了SSL证书来拥有HTTPS网址,但是当在Facebook上分享时,我的链接不会转换为HTML5播放器...



也许只有选定的公司可以使用此功能?



非常感谢

解决方案

目前不允许这样做,有很好的理由。如果开放给开发人员,这可能是一个跨站点的脚本恶梦。他们自己也可能在内部编写解析器。你可能会暗示有什么图像应该显示在文章上,但是嵌入任何东西(在Facebook上运行Javascript),祝你好运,而不需要像Chrome的扩展程序。


Thanks for reading my question

I've googled enough to die, to find how to embed custom HTML5 Player on Facebook post. I've seen Youtube, Soundcloud, (and recently Sketchfab).. links when share on Facebook, it will be transformed into HTML5 player. I knew how to embed custom Flash player, but it's really hard to embed custom HTML5 player.

I've tried to use all OG tag they (Youtube, Sketchfab) used, I bought SSL certificate to have HTTPS url, ... but when share on Facebook, my link won't transform to HTML5 player...

Maybe only selected companies can use this feature?

Thanks a lot

解决方案

Facebook doesn't allow this at present, and for good reason. If it were opened up to developers it would likely be a cross-site scripting nightmare. They've likely written parsers in-house to do this themselves. You could probably do hinting for things like what image should be displayed on an article, but as for embedding anything (running Javascript on top of Facebook), good luck without something like a custom Chrome extension.

这篇关于如何在Facebook上贴上自定义的HTML5播放器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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