飞飞影视系统2.x整合jwplayer
时间:5年前 阅读:6874
编辑 /Lib/Conf/config.php 文件,找到
'play_player' =>array (
在最后一行插入:
'jwplayer'=> array('01','jwplayer')
然后在 /Public/player2.9 目录下新建 jwplayer.js 内容如下:
function $Showhtml(){ return '<iframe width="100%" height="'+Player.Height+'" src="/Public/player2.9/jwplayer.html" frameborder="0" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'; } Player.Show(); if(Player.Second){ $('buffer').style.height = Player.Height-28; $("buffer").style.display = "block"; setTimeout("Player.BufferHide();",Player.Second*1000); }
在同目录下新建 jwplayer.html 内容如下:
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>jwplayer</title> <script type="text/javascript" src="https://www.qiquanji.com/jwplayer/jwplayer.js"></script> </head> <body> <div id="myElement">Loading the player...</div> <script type="text/javascript"> var url = encodeURI(window.parent.frames.Player.Url); var h = window.parent.frames.Player.Height; jwplayer("myElement").setup({ flashplayer: "https://www.qiquanji.com/jwplayer/jwplayer.flash.swf", file: url, width: "100%", height: h, screencolor: "#BBBBBB", autostart: true, provider: "http", streamer: "start", stretching: "uniform", startparam: "start", primary: "html5", }); </script> </body> </html>
本站声明:网站内容来源于网络,如有侵权,请联系我们https://www.qiquanji.com,我们将及时处理。
微信扫码关注
更新实时通知
网友评论