优酷、腾讯视频播放器插件

news/2024/11/28 15:56:30/

优酷、腾讯视频播放器插件

js文件

/*** playVideo 1.0.4* https://github.com/zhouxitian/playVideo* author:zhouxitian@163.com*/
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('!4(a){l d,b=/^#([\\w-]+|\\w+)$/,c=4(a){s p c.z.F(a)};c.z=c.12={T:4(a){l b;s("17"==(b=Y a)?1n==a&&"1n"||2E.12.2D.2C(a).2F(8,-1):b).2G()},E:4(a){l b=9[0]||{};s 1j 0===a&&1===b.1r?b.1k:("1z"==Y a?b.1k=a:a&&1===a.1r&&(b.1k="",b.1K(a)),1j 0)},13:4(a,b){1l(l d 1B b)"1t"==c.z.T(b[d])||"17"==c.z.T(b[d])?(a[d]="1t"==c.z.T(b[d])?[]:{},2H.2B(a[d],b[d])):a[d]=b[d];s a},D:4(a){s 9[0].2A(a)},A:4(){s 9[0].2v},y:4(){s 9[0].2u},q:4(a,b){l c=r.11("2t");c.t="2w/2x",c.1a?c.1H=4(){("2z"==c.1a||"2y"==c.1a)&&(c.1H=1n,b&&b())}:c.2V=4(){b&&b()},c.1g=a,r.2U.1K(c)}},c.z.F=4(a){s a?("1z"==Y a&&(N=b.2Z(a),N&&N[1]&&N[1]&&(10=r.2Y(N[1]),10&&10.2S&&(9.1J=1,9[0]=10,9.2N=a))),1j 0):9},d=p 1L("F","13","E","D","A","y","q");1l(i 1B d)c[d[i]]=c.z[d[i]];c.F.12=c.z,16=4(a){9.F(a)},2P=4(a){l d,e,f,g,h,i,b={6:"1A",k:!1,K:!1,M:!1,J:!1,C:""};c.13(b,a),"17"==Y b.C?(d=b.C.1D,e=b.C.5,f=b.C.7,g=b.C.o,h=b.C.1C):(H=c("#"+b.6),d=H.D("1D"),e=H.D("5"),f=H.D("7"),g=H.D("o"),h=H.D("1C")),i={6:b.6,J:b.J,t:d,1f:h,M:b.M,K:b.K,5:e,7:f,o:g,k:0==b.k?!1:!0},p 16(i)},16.12={F:4(a){l b=9;b.3||(b.3={6:"1A",t:"U",M:!1,5:"",7:"",1f:"",K:!1,o:"",J:!1,k:!1}),c.13(b.3,a),b.1y()},1y:4(){l d,b=9;b.3.5&&(c("#"+b.3.6).E(""),"1m"==b.3.t?a.1I?b.1i():c.q?c.q("m://S.1m.n/25",4(){b.1i()}):R.X("优酷接口文件未加载"):"U"==b.3.t?a.L?b.1c():c.q?c.q("m://14.24.27/1Y/L/I/L.1Z.I",4(){b.1c()}):R.X("腾讯接口文件未加载"):"18"==b.3.t?!a.1v&&r.W?c.q?c.q("m://1b.V.1d.n/1e/19/S/15.22.I?20=1.21",4(){b.1o()}):R.X("搜狐接口文件未加载"):b.1o():"1F"==b.3.t&&(b.3.K?(d=r.11("2r"),d.j("1g","m://2m.1F.n/2k/2n/2o.E?7="+b.3.7+"&1T="+b.3.5+"&2q=2.2p&2j=2i&2d=2c&y=P%&A=P%"),d.j("2b",0),d.j("1W",!0),d.j("A","P%"),d.j("y","P%"),c("#"+b.3.6).E(d)):!a.Q&&r.W?c.q?c.q("m://1b.V.1d.n/1e/19/S/2h.2.15.I",4(){a.Q=a.Q||{},Q.u=Q.u||{},Q.u.B={},Q.u.B.31="2g",Q.u.B.1S=b.3.5,Q.u.B.7=b.3.7,Q.u.B.1V=b.3.5,b.1h()}):R.X("爱奇艺接口文件未加载"):b.1h()))},1i:4(){l a=9,b=4(){l d,a=3L.3K,b=p 1L("3O","3Q","3P","3J 3I","3C","3B"),c=!0;1l(d=0;d<b.1J;d++)3E(a.3S(b[d])>0){c=!1;3H}s c}();b?a.Z("m://V.1m.n/3F.0.3R/v/G/3W.G","44="+a.3.5+"&1p="+a.3.k+"&42=41&43=&3Z=&40=1x&3U="):p 1I.1u(a.3.6,{3V:"1x",7:a.3.5,3Y:!1,k:a.3.k})},1c:4(){l g,a=9,b=c("#"+a.3.6).A(),d=c("#"+a.3.6).y(),e=p L.3y,f={A:b,y:d,O:e,k:a.3.k?1:0,1R:0,3c:{3z:0},3d:"m://14.U.n/1N/1G/1M/1s/3e.G",o:a.3.o&&"3g"!=a.3.o?a.3.o:"",3f:a.3.J?"m://14.U.n/1N/1G/1M/1s/35.G":"",36:a.3.6};a.3.M?(e.37(a.3.5),f.t=1,f.3h=0):(e.3i(a.3.5),e.3t("7"),e.3s(a.3.1f||""),f.3v=0,f.3x=0,f.3w=0),g=p L.1u,g.3r(f)},1o:4(){l b,d,a=9;r.W?(b=c("#"+a.3.6).A(),d=c("#"+a.3.6).y(),p 1v(a.3.6,{7:a.3.5,1p:a.3.k,1O:a.3.o||"",A:b,y:d,1X:0,1E:0,1q:0,1w:0},"")):a.Z("m://3m.3n.18.n/"+a.3.5+"/v.G","1w=0&k="+a.3.k+"&7="+a.3.5+"&1q=0&1E=0&1X=0&3o=1&3p=m://1P.18.n/")},1h:4(){l d,e,b=9;r.W&&3j.3k.3l?(a.3q=(p 1U).1Q(),d=r.11("O"),e=b.3.6+(p 1U).1Q(),d.6=e,b.3.k||(d.j("1R",!0),d.j("3u","38"),d.j("32",!0)),d.j("1O",b.3.o),c("#"+b.3.6).E(d),Q.u.B.6=e,Q.u.B.k=b.3.k,33.39("m://1b.V.1d.n/1e/19/S/3a.15.I",4(){Q.O.3X({1V:b.3.5,3T:b.3.5,1S:b.3.5,7:b.3.7,3G:"",3D:0,3A:!0,3N:"0",3M:"",3b:1})})):b.Z("m://2R.O.2f.n/2e/2a.G","7="+b.3.7+"&1T="+b.3.5+"&29="+b.3.o+"&26=&28=&23=1")},Z:4(a,b){l d=9,e=r.11("2l");e.j("30",b),e.j("1g",a),e.j("1W",!0),e.j("2Q","2s"),e.j("2O","2L"),e.j("2M","m://1P.2T.n/2X/2W"),e.j("t","2K/x-2J-2I"),c("#"+d.3.6).E(e)}}}(34);',62,253,'|||options|function|sid|id|vid||this||||||||||setAttribute|autoplay|var|http|com|pic|new|getScript|document|return|type|PageInfo||||height|fn|width|playInfo|multiple|attr|html|init|swf|obj|js|minWin|isIframe|tvp|qqchannel|match|video|100||console|player|getType|qq|static|addEventListener|log|typeof|setEmbed|elem|createElement|prototype|extend|imgcache|min|playVideo|object|sohu|jsCommon|readyState|img01|playQQ|appgame|libs|title|src|playIqiyi|playYouku|void|innerHTML|for|youku|null|playSohu|isAutoPlay|downloadBtn|nodeType|skins|array|Player|SohuMobilePlayer|miniWinBtn|1a0718786643b0ef|play|string|playvideo|in|vtitle|typeid|shareBtn|iqiyi|vd|onreadystatechange|YKU|length|appendChild|Array|res|minivideo_v1|poster|www|getTime|controls|qipuId|tvId|Date|aid|allowfullscreen|topBarNor|tencentvideo_v1|player_v2|ver|01|sohu_player|bd|gtimg|jsapi|coop|cn|cid|apic|shareplayer|frameborder|1368|appId|disp|qiyi|mp4|sea1|3955c3425820435e86d0f4cdfe56f5e7|appKey|developer|embed|open|player_js|coopPlayerIndex|f22860a2479ad60d8da7697274de9346|accessToken|iframe|transparent|script|offsetHeight|offsetWidth|text|javascript|complete|loaded|getAttribute|callee|call|toString|Object|slice|toLowerCase|arguments|flash|shockwave|application|high|pluginspage|selector|quality|createVideo|wmode|dispatcher|parentNode|macromedia|body|onload|getflashplayer|go|getElementById|exec|flashvars|videoFormat|autobuffer|seajs|window|TencentPlayerMiniSkin|modId|setChannelId|metadata|use|miniplayer|rate|vodFlashExtVars|loadingSwf|web_small_loading|vodFlashSkin|undefined|isLiveFlashShowCfg|setVid|Zepto|os|phone|share|vrs|adClose|pageurl|__page_start|create|setTitle|setCoverId|preload|isVodFlashShowCfg|isVodFlashShowEnd|isVodFlashShowSearchBar|VideoInfo|bullet|isUGC|iPod|iPad|publicLevel|if|v1|vfrm|break|Phone|Windows|userAgent|navigator|ADPlayerID|duration|Android|SymbianOS|iPhone|0590|indexOf|tvid|vext|client_id|loader|load|show_related|wd|partnerid|BDskin|winType|embedid|VideoIDS'.split('|'),0,{}))

html文件

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title></title>
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="js/play-video.1.0.6.min.js"></script>
<style type="text/css">.part1 #playvideo{display: block;width:750px;height:400px; margin:0 auto;
}
</style>
</head>
<body>
<div class="wfx_wrapper"><div class="part1" style="background-image:url(/images/gzh/wfx_eleven/wfx_eleven_index3.jpg);"><div id="playvideo" typeid="qq" sid="m0512rrhq7u" pic="http://www.appgame.com/wp-content/uploads/2015/06/poker-forth.jpg"></div></div>
</div>
<script type="text/javascript">$(function(){var playvideo=document.getElementById("playvideo");createVideo({id:"playvideo",autoplay:false,multiple:{typeid:$("#playvideo").attr("typeid"),sid:$("#playvideo").attr("sid"),vid:playvideo.getAttribute("vid"),pic:$("#playvideo").attr("pic")}});
});
</script>
</body>
</html>


sid 视频在优酷或腾讯上的idhttps://v.qq.com/x/page/m0512rrhq7u.html)中的m0512rrhq7u
参考文件:https://github.com/zhouxitian/playVideo


http://www.ppmy.cn/news/559739.html

相关文章

使用苹果原生视频播放器MPMoviePlayerController播放来自优酷等网页的视频

没有自己的流媒体服务器&#xff0c;又想在app中用原生视频播放器MPMoviePlayerController将视频插入到界面&#xff0c;在界面可以直接播放&#xff0c;或者全屏播放&#xff0c;可以通过以下方法实现 先创建原生播放器 _moviePlayer [[MPMoviePlayerController alloc] init…

优酷、腾讯视频播放器接口参数说明

优酷: 优酷的视频播放器接口连接为&#xff1a;http://open.youku.com/tools/ 里面已经有教详细的说明了。 在这里也做一些说明吧&#xff1a;导入js文件&#xff1a; 1 <script type"text/javascript" src"http://player.youku.com/jsapi"> 调用&…

PotPlayer 播放器美化设置

PotPlayer 播放器美化设置 测试软件&#xff1a;PotPlayer 播放器 测试时间&#xff1a;2022年2月21日 测试平台&#xff1a;Windows 10 PotPlayer 播放器 ​ PotPlayer播放器作为一款自带专业的编解码器&#xff0c;方便快捷&#xff0c;安装后可观看任何格式视频文件&am…

PotPlayer 高逼格无边框的本地播放器

PotPlayer 安装以及设置 可以在官网下载安装包&#xff1a;http://potplayer.daum.net 然后安装……运行…… 嗯&#xff0c;是的&#xff0c;PotPlayer的官方皮肤界面就是这么样貌平平&#xff0c;一点都不逼格。其实&#xff0c;如果你之前还用更早的版本&#xff0c;大概现…

优酷 html flash播放器,优酷播放器提示没有安装flash插件的解决办法

优酷播放器在使用中弹出“没有安装flash”的提示&#xff0c;其他的播放器用起来都没问题&#xff0c;优酷是怎么了&#xff1f;今天给大家讲解一下遇到优酷播放器提示没有安装flash的时候的解决办法&#xff0c;希望能帮助你们。 优酷播放器提示没有安装flash的解决方法&#…

Potplayer提升画质攻略

这篇文章与代码无关&#xff0c;为电影发烧友提供一款优质播放器 一&#xff0c;下载安装 宝藏播放器——PotPlayer 下载地址如下&#xff1a; https://daumpotplayer.com/download/用迅雷下载快&#xff0c;不知为什么我安装的时候过了2分钟才弹出安装界面 安装勾选&…

ijkplayer播放器

播放器系列 android播放器&#xff1a;MediaPlayer ExoPlayer ijkplayer_步基的博客-CSDN博客_mediacodec流程 一 概述 IJKPlayer是一款基于ffmpeg/ffplay的开源播放器&#xff0c;可支持rtmp/rtsp/hls等多种媒体协议&#xff0c;支持Android/IOS等移动平台。项目地址&#xff…

拓扑排序:神经网络

题目链接 神经网络 题目大意 在兰兰的模型中&#xff0c;神经网络就是一张有向图&#xff0c;图中的节点称为神经元&#xff0c;而且两个神经 元之间至多有一条边相连&#xff0c;下图是一个神经元的例子&#xff1a; 图中&#xff0c; X 1 — X 3 X_1—X_3 X1​—X3​是信…