<<<<<<<< HEAD:dist/assets/index-legacy.df60b932.js !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function t(t){for(var i=1;ie.length)&&(t=e.length);for(var n=0,i=new Array(t);n must be a child component of .")}}),C=(e("a",p(w)),e("S",p(j)),"_video-container_ga7yz_1"),A="_video_ga7yz_1",I="_loadingVideo_ga7yz_35";e("O",a({name:"o-video",props:{setting:{type:Object,default:function(){}},controls:Boolean,height:String,src:{type:String,default:""},poster:{type:String,default:""},styleValue:{type:Object,default:function(){return{}}},preload:{type:String,default:"auto"},currentTime:{type:Boolean,default:!0},playsinline:{type:Boolean,default:!0},onPlay:{type:Function,default:function(){}}},emits:["exitfullscreen"],data:function(){return{player:null,loading:!0}},mounted:function(){this._init()},methods:{_init:function(){var e=this,n=["play-large","play","progress","captions","fullscreen"];this.currentTime&&n.push("current-time");var i=t(t({controls:n},this.setting),{},{invertTime:!1});v().iPhone&&(i.fullscreen={enabled:!0,fallback:"force",iosNative:!0}),this.player=new h(this.$refs.video,i),this.player.elements.container&&(this.player.elements.container.style.height=this.height||"210px"),"none"===this.preload&&(this.loading=!1),this.player.on("loadedmetadata",(function(){e.loading=!1,e.domPlayVisibility(!1)})),this.player.on("play",(function(){e.onPlay&&e.onPlay(e.player)})),this.player.on("enterfullscreen",(function(){console.log("fullscreen");var t=document.createElement("i");t.id="fullscreen-back",t.className="van-icon van-icon-arrow-left video-back",t.addEventListener("click",(function(){e.player.fullscreen.exit()})),console.log(document.getElementsByClassName("plyr")),document.getElementsByClassName("plyr")[0].appendChild(t)})),this.player.on("exitfullscreen",(function(){console.log("exitfullscreen");var t=document.getElementById("fullscreen-back");t&&t.remove(),e.$emit("exitfullscreen")}))},domPlayVisibility:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=document.querySelector(".plyr__controls"),n=document.querySelector(".plyr__control--overlaid");e?(null==t||t.setAttribute("style","display:none"),null==n||n.setAttribute("style","display:none")):(null==t||t.removeAttribute("style"),setTimeout((function(){null==n||n.removeAttribute("style")}),200))},onReplay:function(){this.player.restart(),this.player.play(),this.domPlayVisibility(!1)},onStop:function(){this.player.stop()}},unmounted:function(){var e;null===(e=this.player)||void 0===e||e.destroy()},render:function(){return s("div",{class:C},[s("video",{ref:"video",class:A,src:this.src,playsinline:this.playsinline,poster:this.poster,preload:this.preload,style:t({},this.styleValue)},null),this.loading&&s("div",{class:I,style:{height:this.height||"210px"}},[s(g,{size:36,color:"#FF8057",vertical:!0,style:{height:"100%",justifyContent:"center"}},{default:function(){return[m("加载中...")]}})])])}}))}}}))}(); ======== !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function t(t){for(var i=1;ie.length)&&(t=e.length);for(var n=0,i=new Array(t);n0&&void 0!==arguments[0])||arguments[0],t=document.querySelector(".plyr__controls"),n=document.querySelector(".plyr__control--overlaid");e?(null==t||t.setAttribute("style","display:none"),null==n||n.setAttribute("style","display:none")):(null==t||t.removeAttribute("style"),setTimeout((function(){null==n||n.removeAttribute("style")}),200))},onReplay:function(){this.player.restart(),this.player.play(),this.domPlayVisibility(!1)},onStop:function(){this.player.stop()}},unmounted:function(){var e;null===(e=this.player)||void 0===e||e.destroy()},render:function(){return s("div",{class:C},[s("video",{ref:"video",class:A,src:this.src,playsinline:this.playsinline,poster:this.poster,preload:this.preload,style:t({},this.styleValue)},null),this.loading&&s("div",{class:I,style:{height:this.height||"210px"}},[s(g,{size:36,color:"#FF8057",vertical:!0,style:{height:"100%",justifyContent:"center"}},{default:function(){return[m("加载中...")]}})])])}}))}}}))}(); >>>>>>>> online:dist/assets/index-legacy.5f4e326e.js