您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

如何在youtube等Facebook上分享我网站上的视频

如何在youtube等Facebook上分享我网站上的视频

我有一个拥有HTML5视频播放器的网站。

您想找到一个好的SWF(*.SWF)视频播放器,该视频播放器可以将视频从url={video_Hot_link}(将URL参数传递给SWF播放器)

现在,当您准备好要播放流式视频的SWF播放器后,将Facebook Open Graph添加<head>标签中,如下所示:

<Meta property="og:type" content="video"> <!-- site/page type more information http://ogp.me/ -->
<Meta property="og:video:type" content="application/x-shockwave-flash"> <!-- you need this because your player is a SWF player -->
<Meta property="og:video:width" content="Width in Pixels"> <!-- player width -->
<Meta property="og:video:height" content="Height in Pixels"> <!-- player height -->
<Meta property="og:video" content="http://example.com/{path_to}/{swf_player}.swf?url={video_soure}"> <!-- You will need to echo/print the video source (*.mp4) with server-side code -->
<Meta property="og:video:secure_url" content="https://example.com/{path_to}/{swf_player}.swf?url={video_soure}"> <!-- required for users whom use SSL (actually Facebook forces everyone to use SSL so you're required to use og:video:secure_url) so get a one -->

另外,您需要将以下前缀添加<html>likeso

<html prefix="og: http://ogp.me/ns#">
其他 2022/1/1 18:17:44 有581人围观

撰写回答


你尚未登录,登录后可以

和开发者交流问题的细节

关注并接收问题和回答的更新提醒

参与内容的编辑和改进,让解决方法与时俱进

请先登录

推荐问题


联系我
置顶