当我们使用我的服务器视频网址在Facebook上分享视频时。我已经使用了在Facebook上分享视频所需的所有og标签。在我的服务器上播放视频,但是当我们在Facebook上分享视频网址并点击视频时,它会让我错误加载无法加载播放器。
<!DOCTYPE html>
<html>
<head>
<title>iPhone To Server Live bradcasting</title>
<meta property="og:url" content="https://belive.mobi/multitvfinal/videofb/player.html" />
<meta property="og:type" content="movie" />
<meta property="og:video:height" content="260" />
<meta property="og:video:width" content="420" />
<meta property="og:video:type" content="application/x-shockwave-flash" />
<meta property="og:title" content="Live stream testing by navjot singh" />
<meta property="og:description" content="Live stream description" />
<meta property="og:image" content="https://i.ytimg.com/vi/ZTUtP6pBZU8/maxresdefault.jpg" />
<meta property="og:video" content="https://belive.mobi/multitvfinal/jwplayer/jwplayer.flash.swf?file=https%3A%2F%2Fbelive.mobi%2Fmultitvfinal%2Fvideofb%2Fkinley.mp4" />
<script type='text/javascript' src='https://belive.mobi/multitvfinal/jwplayer/jquery-1.10.2.js'></script>
<script type="text/javascript" src="https://belive.mobi/multitvfinal/jwplayer/jwplayer.js"></script>
<script type="text/javascript">jwplayer.key="vxdWEF/4dRcCz9DVqhR3L6GDhNCprcASMR4YpA==";</script>
</head>
<body>
Live
<div id="player">
<!--<script type="text/javascript">
jwplayer("player").setup({primary:"flash",playlist:[{sources:[{file:"https://belive.mobi/multitvfinal/videofb/kinley.mp4"},],width:"480",height:"320",rtmp:{bufferlength:5},primary:"flash",accelerated:"true",border:"0",autoBuffering:"true",startparam:"ec_seek",androidhls:"true",stretching:"fill",}]});</script>
<script type="text/javascript">jwplayer("player").setup({primary:"flash",file:"https://belive.mobi/multitvfinal/videofb/kinley.mp4",height:360,width:640});</script>
-->
<script type="text/javascript">
var playerInstance = jwplayer("player");
playerInstance.setup({
file: "https://belive.mobi/multitvfinal/videofb/kinley.mp4",
image: "https://i.ytimg.com/vi/ZTUtP6pBZU8/maxresdefault.jpg",
width: 640,
height: 360
});
</script>
</div>
<div><br/></div>
</body>
</html>
答案 0 :(得分:1)
当前版本的JW Player无法嵌入Facebook。要做到这一点,你需要一个特殊的版本,只能直接从JW Player获得,并且仅适用于拥有&#34; Premium&#34;许可证或更好(甚至不是&#34; Pro&#34;许可证就足够了)。
http://support.jwplayer.com/customer/portal/articles/1826071-embedding-jw-player-onto-facebook