Skip to content
代码片段 群组 项目
提交 419cd7a3 编辑于 作者: Hunlongyu's avatar Hunlongyu
浏览文件

fix

上级 c79bc87a
No related branches found
No related tags found
无相关合并请求
......@@ -4,4 +4,4 @@
hm.src = "//hm.baidu.com/hm.js?f5e2b6388a44b87d43fbe2574315c718";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();</script><link href=/css/app.0353c864.css rel=preload as=style><link href=/css/chunk-vendors.84ff09fe.css rel=preload as=style><link href=/js/app.d9f8c979.js rel=preload as=script><link href=/js/chunk-vendors.9462f29e.js rel=preload as=script><link href=/css/chunk-vendors.84ff09fe.css rel=stylesheet><link href=/css/app.0353c864.css rel=stylesheet></head><body><noscript><strong>We're sorry but m3u8_player doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.9462f29e.js></script><script src=/js/app.d9f8c979.js></script></body></html>
\ No newline at end of file
})();</script><link href=/css/app.0353c864.css rel=preload as=style><link href=/css/chunk-vendors.84ff09fe.css rel=preload as=style><link href=/js/app.a9c5bc9f.js rel=preload as=script><link href=/js/chunk-vendors.9462f29e.js rel=preload as=script><link href=/css/chunk-vendors.84ff09fe.css rel=stylesheet><link href=/css/app.0353c864.css rel=stylesheet></head><body><noscript><strong>We're sorry but m3u8_player doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.9462f29e.js></script><script src=/js/app.a9c5bc9f.js></script></body></html>
\ No newline at end of file
(function(t){function e(e){for(var i,l,a=e[0],o=e[1],u=e[2],p=0,v=[];p<a.length;p++)l=a[p],r[l]&&v.push(r[l][0]),r[l]=0;for(i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i]);c&&c(e);while(v.length)v.shift()();return s.push.apply(s,u||[]),n()}function n(){for(var t,e=0;e<s.length;e++){for(var n=s[e],i=!0,a=1;a<n.length;a++){var o=n[a];0!==r[o]&&(i=!1)}i&&(s.splice(e--,1),t=l(l.s=n[0]))}return t}var i={},r={app:0},s=[];function l(e){if(i[e])return i[e].exports;var n=i[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,l),n.l=!0,n.exports}l.m=t,l.c=i,l.d=function(t,e,n){l.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},l.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},l.t=function(t,e){if(1&e&&(t=l(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(l.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)l.d(n,i,function(e){return t[e]}.bind(null,i));return n},l.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return l.d(e,"a",e),e},l.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},l.p="/";var a=window["webpackJsonp"]=window["webpackJsonp"]||[],o=a.push.bind(a);a.push=e,a=a.slice();for(var u=0;u<a.length;u++)e(a[u]);var c=o;s.push([0,"chunk-vendors"]),n()})({0:function(t,e,n){t.exports=n("56d7")},"56d7":function(t,e,n){"use strict";n.r(e);n("cadf"),n("551c"),n("f751"),n("097d");var i=n("2b0e"),r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("vs-row",{attrs:{id:"app","vs-w":"12"}},[n("vs-col",{attrs:{"vs-type":"flex","vs-justify":"center","vs-lg":"1","vs-sm":"1","vs-xs":"1"}},[n("span",{staticClass:"menu",on:{click:function(e){t.sideActive=!t.sideActive}}},[n("vs-icon",{attrs:{icon:"menu"}})],1)]),n("vs-sidebar",{staticClass:"sidebarx",attrs:{parent:"body","default-index":"1",color:"primary",spacer:""},model:{value:t.sideActive,callback:function(e){t.sideActive=e},expression:"sideActive"}},[n("h3",[t._v("资源播放器")]),n("p",[t._v("一个极简的资源播放器,支持 m3u8、mp4 两种格式的视频资源。操作简单,无广告,自适应移动端。")]),n("h4",[t._v("资源网站:")]),n("p",{staticClass:"alink"},[n("a",{attrs:{href:"http://zuidazy.net/"}},[t._v("最大资源网")])]),n("p",{staticClass:"alink"},[n("a",{attrs:{href:"http://www.okzyw.com/"}},[t._v("OK资源网")])]),n("p",{staticClass:"alink"},[n("a",{attrs:{href:"http://www.172zy.net/"}},[t._v("172资源网")])]),n("p",{staticClass:"alink"},[n("a",{attrs:{href:"http://www.1977zy.com/"}},[t._v("1977资源网")])]),n("h4",[t._v("使用说明:")]),n("p",[t._v("方式一:直接在输入框内,粘贴正确的视频资源链接,敲击回车键,即可自动缓冲播放。")]),n("p",[t._v("方式二:配合 "),n("a",{attrs:{href:"https://greasyfork.org/zh-CN/scripts/383642-%E5%B0%8F%E5%8A%A9%E6%89%8B-%E8%B5%84%E6%BA%90%E6%92%AD%E6%94%BE"}},[t._v("『小助手』 资源播放")]),t._v(" 脚本使用。该方法需要安装 "),n("a",{attrs:{href:"https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo"}},[t._v(" Tampermonkey ")]),t._v("浏览器插件(插件和脚本安装方法自行百度)。推荐使用这种方式!")]),n("h4",[t._v("免责声明:")]),n("p",[t._v("该网站只提供播放功能,仅用于技术交流学习。")])]),n("vs-col",{attrs:{id:"search","vs-type":"flex","vs-justify":"center","vs-align":"center","vs-lg":"10","vs-sm":"10","vs-xs":"10"}},[n("vs-row",[n("vs-col",{class:!0===t.playing?"ani-top":"ani-center",attrs:{"vs-w":"12"}},[n("vs-input",{attrs:{size:"large","label-placeholder":t.Nombre},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.enterEvent(e)}},model:{value:t.url,callback:function(e){t.url=e},expression:"url"}})],1),n("vs-col",{ref:"playBox",class:!0===t.playing?"ani-in":"ani-out",attrs:{"vs-w":"12"}},[n("p",{directives:[{name:"show",rawName:"v-show",value:null!==t.title&&!0===t.playing,expression:"title !== null && playing === true"}],staticClass:"title"},[t._v(t._s(t.title))]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.playing,expression:"playing"}],attrs:{id:"xg"}})])],1)],1),n("vs-col",{attrs:{"vs-type":"flex","vs-justify":"center","vs-lg":"1","vs-sm":"1","vs-xs":"1"}},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.playing,expression:"playing"}],staticClass:"inclusive",on:{click:t.switchEvent}},[n("vs-icon",{attrs:{icon:"all_inclusive"}})],1)])],1)},s=[],l=(n("386d"),n("4917"),n("3b2b"),n("5392")),a=n.n(l),o=n("9000"),u=n.n(o),c={name:"app",data:function(){return{sideActive:!1,Nombre:"粘贴资源链接后,按回车键播放!",xg:null,url:null,title:null,playing:!1,config:{id:"xg",url:null,fluid:!0,autoplay:!0,keyShortcut:"on",defaultPlaybackRate:1,playbackRate:[.5,.75,1,1.5,2]}}},methods:{getParam:function(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)","i"),n=window.location.search.substr(1).match(e);return null!==n?decodeURI(n[2]):null},getInfo:function(){this.url=this.getParam("url"),this.title=this.getParam("title"),this.url&&this.playUrl(this.url)},enterEvent:function(){if(null===this.url)return this.$vs.notify({time:6e3,title:"请输入资源链接",text:"请注意资源格式,目前该网站支持 m3u8 和 mp4 格式的视频资源。",color:"warning"}),!1;-1!==this.url.indexOf(".m3u8")||-1!==this.url.indexOf(".mp4")?(this.playUrl(this.url),this.url=null,this.$vs.notify({time:6e3,title:"读取资源成功",text:"请耐心等待资源加载,缓冲成功后自动播放。若无法自动播放,请手动点击播放。如果播放失败,可能是资源失效了,换个资源试试。",color:"success"})):this.$vs.notify({time:6e3,title:"链接错误",text:"请检查资源格式是否正确,目前该网站支持 m3u8 和 mp4 格式的视频资源。",color:"danger"})},playUrl:function(t){this.config.url=this.url,this.playing=!0,-1!==t.indexOf("mp4")&&(this.xg=new a.a(this.config)),-1!==t.indexOf("m3u8")&&(this.xg=new u.a(this.config)),_hmt.push(["_trackEvent","video","play",this.title,t])},switchEvent:function(){var t=this;if(this.xg){this.xg.destroy();var e=setTimeout(function(){t.xg=null;var n=document.createElement("div");n.id="xg",t.$refs.playBox.appendChild(n),t.playUrl(t.url),t.url=null,t.title=null,clearTimeout(e)},10)}this.playing=!this.playing}},mounted:function(){this.getInfo()}},p=c,v=(n("5c0b"),n("2877")),f=Object(v["a"])(p,r,s,!1,null,null,null),h=f.exports,d=n("fb9a"),y=n.n(d);n("04f2"),n("c789");i["default"].use(y.a),i["default"].config.productionTip=!1,new i["default"]({render:function(t){return t(h)}}).$mount("#app")},"5c0b":function(t,e,n){"use strict";var i=n("5e27"),r=n.n(i);r.a},"5e27":function(t,e,n){}});
\ No newline at end of file
(function(t){function e(e){for(var i,l,a=e[0],o=e[1],u=e[2],p=0,f=[];p<a.length;p++)l=a[p],s[l]&&f.push(s[l][0]),s[l]=0;for(i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i]);c&&c(e);while(f.length)f.shift()();return r.push.apply(r,u||[]),n()}function n(){for(var t,e=0;e<r.length;e++){for(var n=r[e],i=!0,a=1;a<n.length;a++){var o=n[a];0!==s[o]&&(i=!1)}i&&(r.splice(e--,1),t=l(l.s=n[0]))}return t}var i={},s={app:0},r=[];function l(e){if(i[e])return i[e].exports;var n=i[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,l),n.l=!0,n.exports}l.m=t,l.c=i,l.d=function(t,e,n){l.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},l.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},l.t=function(t,e){if(1&e&&(t=l(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(l.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)l.d(n,i,function(e){return t[e]}.bind(null,i));return n},l.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return l.d(e,"a",e),e},l.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},l.p="/";var a=window["webpackJsonp"]=window["webpackJsonp"]||[],o=a.push.bind(a);a.push=e,a=a.slice();for(var u=0;u<a.length;u++)e(a[u]);var c=o;r.push([0,"chunk-vendors"]),n()})({0:function(t,e,n){t.exports=n("56d7")},"56d7":function(t,e,n){"use strict";n.r(e);n("cadf"),n("551c"),n("f751"),n("097d");var i=n("2b0e"),s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("vs-row",{attrs:{id:"app","vs-w":"12"}},[n("vs-col",{attrs:{"vs-type":"flex","vs-justify":"center","vs-lg":"1","vs-sm":"1","vs-xs":"1"}},[n("span",{staticClass:"menu",on:{click:function(e){t.sideActive=!t.sideActive}}},[n("vs-icon",{attrs:{icon:"menu"}})],1)]),n("vs-sidebar",{staticClass:"sidebarx",attrs:{parent:"body","default-index":"1",color:"primary",spacer:""},model:{value:t.sideActive,callback:function(e){t.sideActive=e},expression:"sideActive"}},[n("h3",[t._v("资源播放器")]),n("p",[t._v("一个极简的资源播放器,支持 m3u8、mp4 两种格式的视频资源。操作简单,无广告,自适应移动端。")]),n("h4",[t._v("资源网站:")]),n("p",{staticClass:"alink"},[n("a",{attrs:{href:"http://zuidazy.net/"}},[t._v("最大资源网")])]),n("p",{staticClass:"alink"},[n("a",{attrs:{href:"http://www.okzyw.com/"}},[t._v("OK资源网")])]),n("p",{staticClass:"alink"},[n("a",{attrs:{href:"http://www.172zy.net/"}},[t._v("172资源网")])]),n("p",{staticClass:"alink"},[n("a",{attrs:{href:"http://www.1977zy.com/"}},[t._v("1977资源网")])]),n("h4",[t._v("使用说明:")]),n("p",[t._v("方式一:直接在输入框内,粘贴正确的视频资源链接,敲击回车键,即可自动缓冲播放。")]),n("p",[t._v("方式二:配合 "),n("a",{attrs:{href:"https://greasyfork.org/zh-CN/scripts/383642-%E5%B0%8F%E5%8A%A9%E6%89%8B-%E8%B5%84%E6%BA%90%E6%92%AD%E6%94%BE"}},[t._v("『小助手』 资源播放")]),t._v(" 脚本使用。该方法需要安装 "),n("a",{attrs:{href:"https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo"}},[t._v(" Tampermonkey ")]),t._v("浏览器插件(插件和脚本安装方法自行百度)。推荐使用这种方式!")]),n("h4",[t._v("免责声明:")]),n("p",[t._v("该网站只提供播放功能,仅用于技术交流学习。")])]),n("vs-col",{attrs:{id:"search","vs-type":"flex","vs-justify":"center","vs-align":"center","vs-lg":"10","vs-sm":"10","vs-xs":"10"}},[n("vs-row",[n("vs-col",{class:!0===t.playing?"ani-top":"ani-center",attrs:{"vs-w":"12"}},[n("vs-input",{attrs:{size:"large","label-placeholder":t.Nombre},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.enterEvent(e)}},model:{value:t.url,callback:function(e){t.url=e},expression:"url"}})],1),n("vs-col",{ref:"playBox",class:!0===t.playing?"ani-in":"ani-out",attrs:{"vs-w":"12"}},[n("p",{directives:[{name:"show",rawName:"v-show",value:null!==t.title&&!0===t.playing,expression:"title !== null && playing === true"}],staticClass:"title"},[t._v(t._s(t.title))]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.playing,expression:"playing"}],attrs:{id:"xg"}})])],1)],1),n("vs-col",{attrs:{"vs-type":"flex","vs-justify":"center","vs-lg":"1","vs-sm":"1","vs-xs":"1"}},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.playing,expression:"playing"}],staticClass:"inclusive",on:{click:t.switchEvent}},[n("vs-icon",{attrs:{icon:"all_inclusive"}})],1)])],1)},r=[],l=(n("386d"),n("4917"),n("3b2b"),n("5392")),a=n.n(l),o=n("9000"),u=n.n(o),c={name:"app",data:function(){return{sideActive:!1,Nombre:"粘贴资源链接后,按回车键播放!",xg:null,url:null,title:null,playing:!1,config:{id:"xg",url:null,fluid:!0,autoplay:!0,keyShortcut:"on",defaultPlaybackRate:1,playbackRate:[.5,.75,1,1.5,2]}}},methods:{getParam:function(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)","i"),n=window.location.search.substr(1).match(e);return null!==n?decodeURI(n[2]):null},getInfo:function(){this.url=this.getParam("url"),this.title=this.getParam("title"),this.url&&this.playUrl(this.url)},enterEvent:function(){if(null===this.url)return this.$vs.notify({time:6e3,title:"请输入资源链接",text:"请注意资源格式,目前该网站支持 m3u8 和 mp4 格式的视频资源。",color:"warning"}),!1;-1!==this.url.indexOf(".m3u8")||-1!==this.url.indexOf(".mp4")?(this.playUrl(this.url),this.url=null,this.$vs.notify({time:6e3,title:"读取资源成功",text:"请耐心等待资源加载,缓冲成功后自动播放。若无法自动播放,请手动点击播放。如果播放失败,可能是资源失效了,换个资源试试。",color:"success"})):this.$vs.notify({time:6e3,title:"链接错误",text:"请检查资源格式是否正确,目前该网站支持 m3u8 和 mp4 格式的视频资源。",color:"danger"})},playUrl:function(t){this.config.url=this.url,this.playing=!0,-1!==t.indexOf("mp4")&&(this.xg=new a.a(this.config)),-1!==t.indexOf("m3u8")&&(this.xg=new u.a(this.config)),_hmt.push(["_trackEvent","video","play",this.title,t])},switchEvent:function(){var t=this;if(this.xg){this.playing=!this.playing,this.xg.destroy();var e=setTimeout(function(){t.xg=null,t.url=null,t.title=null,clearTimeout(e)},10)}}},mounted:function(){this.getInfo()}},p=c,f=(n("5c0b"),n("2877")),v=Object(f["a"])(p,s,r,!1,null,null,null),h=v.exports,d=n("fb9a"),y=n.n(d);n("04f2"),n("c789");i["default"].use(y.a),i["default"].config.productionTip=!1,new i["default"]({render:function(t){return t(h)}}).$mount("#app")},"5c0b":function(t,e,n){"use strict";var i=n("5e27"),s=n.n(i);s.a},"5e27":function(t,e,n){}});
\ No newline at end of file
......@@ -116,19 +116,15 @@ export default {
},
switchEvent () {
if (this.xg) {
this.playing = !this.playing
this.xg.destroy()
let timer = setTimeout(() => {
this.xg = null
let div = document.createElement('div')
div.id = 'xg'
this.$refs.playBox.appendChild(div)
this.playUrl(this.url)
this.url = null
this.title = null
clearTimeout(timer)
}, 10)
}
this.playing = !this.playing
}
},
mounted () {
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册