Files
learning-system-mobile/unpackage/dist/build/h5/static/js/pages-study-videoTest.47b4f767.js
2025-08-28 17:18:33 +08:00

1 line
30 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-study-videoTest"],{1461:function(e,t,i){"use strict";i.r(t);var n=i("dcfc"),o=i("19bb");for(var r in o)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return o[e]}))}(r);i("17579");var a=i("828b"),s=Object(a["a"])(o["default"],n["b"],n["c"],!1,null,"7c3de4d0",null,!1,n["a"],void 0);t["default"]=s.exports},17579:function(e,t,i){"use strict";var n=i("5c5d"),o=i.n(n);o.a},1950:function(e,t,i){"use strict";var n=i("66b3"),o=i.n(n);o.a},"19bb":function(e,t,i){"use strict";i.r(t);var n=i("5399"),o=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(r);t["default"]=o.a},2038:function(e,t,i){"use strict";(function(e){i("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{show:!1,fileUrl:"",initTime:0,title:"",author:""}},mounted:function(){this.loadVideo()},methods:{loadVideo:function(){this.fileUrl="/static/temp/test.mp4",this.title="标题内容111",this.initTime=40,this.show=!0},changeSrc:function(){this.fileUrl="/static/temp/video.mp4",this.title="标题内容221",this.initTime=20},videoPlay:function(){e.log("videoPlay")},videoEnd:function(){e.log("videoEnd")},videoPause:function(){e.log("videoPause")},videoPlaying:function(){e.log("videoPlaying")},videoScreen:function(t){e.log("全屏",t)}}};t.default=n}).call(this,i("ba7c")["default"])},"2a47":function(e,t,i){"use strict";(function(e){i("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("64aa");var n={setVideoSpeed:function(e){uni.setStorageSync("xus_video_speed",e)},getVideoSpeed:function(){var e=uni.getStorageSync("xus_video_speed");return e?Number(e):1},getStudyDuration:function(){var e=uni.getStorageSync("xus_duration");return e?Number(e):0},setStudyDuration:function(t){e.log(t,"设置时长"),uni.setStorageSync("xus_duration",t)},clearStudyDuration:function(){uni.setStorageSync("xus_duration",0)},appendStudyDuration:function(e){var t=uni.getStorageSync("xus_duration");t?localStorage.setStorageSync("xus_duration",Number(t)+e):localStorage.setStorageSync("xus_duration",e)}};t.default=n}).call(this,i("ba7c")["default"])},"3bf8":function(e,t,i){"use strict";i.r(t);var n=i("9370a"),o=i("6ec9");for(var r in o)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return o[e]}))}(r);i("1950");var a=i("828b"),s=Object(a["a"])(o["default"],n["b"],n["c"],!1,null,"09ee584e",null,!1,n["a"],void 0);t["default"]=s.exports},"3dfa":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAGKADAAQAAAABAAAAGAAAAADiNXWtAAABg0lEQVRIDdWVv0oDQRDG70TsrUJMp/gegq2K2voEmlIsfAhrTesD+AeLEBECPoOgCKZU8A1E4fx93s2xd66y2S3EgS+zNzfzzcze7iTL/psURdFNqhmCLTAGa20ibAvgBgxBR+9n2k4Bz4v4rIAl11fkPB+DVfAGXkFUAsU1BPIeBpFvgEuwl+d5gc5m9ZMiDvk6PEb+bJwxW2SxWYv8ghe7VF6TyzElwTzxJ0CVnwNtyws6Tah6H0geS1WcoX88minfYJlSH8At2CaJW/mEboauIXgNkXVQNeBVIyOM6UDBc+DDSDz6yWy5Lahjk3Xj8tg7R49o/c55Dl+SYOxttmk8DGcsPd0tOsKk4+aKjuIO0AeV/LYtpUfoL4X3wFXVwH2lD0Ljzc970USOg2aLJqa6GoAo+ZbAIbcb2of5PYqdoEYCyG3k2uDqp17/OoGHXIMrebZ8nSLIu3RzCvRnYSM3mRyucouqSrXPRt4Yudgn4BrUN5T1dEIXHVDf7Omi/9D7E+kV63xnS8D9AAAAAElFTkSuQmCC"},"50cb":function(e,t,i){var n=i("c86c");t=n(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.video-box[data-v-7c3de4d0]{width:100%;height:100%;position:relative}.video-box-error[data-v-7c3de4d0]{width:100%;height:110px;padding:55px 0;background:#000;text-align:center;display:flex;align-items:center;flex-wrap:wrap}.video-full-screen[data-v-7c3de4d0]{position:fixed;width:100vw;height:100vh;background:#000;z-index:9999999;display:flex;align-items:center}.video-scree-rotate[data-v-7c3de4d0]{-webkit-transform:rotate(90deg);transform:rotate(90deg);position:fixed}.screen[data-v-7c3de4d0]{position:relative}.screen-full[data-v-7c3de4d0]{position:static}.process-container[data-v-7c3de4d0]{width:100%;padding:1% 2% 1% 2%;height:%?60?%;max-height:%?60?%;position:absolute;bottom:%?0?%;color:#fff;left:0;right:0;z-index:9999;display:flex;align-items:center;background:rgba(59,57,57,.2)}.process-container uni-image[data-v-7c3de4d0]{max-width:%?30?%;max-height:%?30?%;text-align:center}.slider-container[data-v-7c3de4d0]{z-index:13;height:%?60?%;margin-bottom:%?10?%;flex:6;max-width:50%}.slider-container.new-bar[data-v-7c3de4d0]{margin:7px 10px 10px 10px}.controller-play[data-v-7c3de4d0]{width:8%}.currtime[data-v-7c3de4d0]{color:#fff;font-size:%?22?%;width:11%;height:100%;line-height:%?60?%;text-align:center}.druationTime[data-v-7c3de4d0]{color:#fff;font-size:%?22?%;width:12%;height:100%;line-height:%?60?%;text-align:center}.player-speed[data-v-7c3de4d0]{position:relative;color:#e5e5e5;padding:0 .4rem;transition:color .3s;height:22px}.speed-control[data-v-7c3de4d0]{position:absolute;transition:visibility .3s;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.speed-control .speed-control-list[data-v-7c3de4d0]{list-style:none;color:#e5e5e5;width:50px;font-size:12px;text-align:left;padding:0 0 0 5px;margin:0;overflow:hidden;border-radius:4px;background:rgba(21,21,21,.8)}.speed-control .speed-control-list .li[data-v-7c3de4d0]{position:relative;display:block;height:25px;line-height:25px}.speed-control .speed-control-list .li[data-v-7c3de4d0]:hover{color:#fff;background:rgba(99,99,99,.8)}.speed-control .speed-control-list .li.current[data-v-7c3de4d0]{color:var(--primaryColor)}',""]),e.exports=t},5171:function(e,t,i){"use strict";var n=i("744c"),o=i.n(n);o.a},5399:function(e,t,i){"use strict";(function(e){i("6a54");var n=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(i("9b1b"));i("5ef2"),i("64aa"),i("5c47"),i("2c10"),i("e966"),i("e838"),i("d4b5"),i("c223");var r=n(i("3bf8")),a=i("8f59"),s=n(i("2a47")),d=n(i("9169"));function l(){var e=!1,t=navigator.userAgent;return-1!=t.indexOf("XiaoMi")&&(e=!0),e}var u={components:{progressBar:r.default},props:{url:{type:String,require:!0},blobId:{type:String,default:null},watermark:{type:Boolean,default:!0},name:{type:String,default:""},drag:{type:Boolean,default:!0},inittime:{type:Number,default:0}},data:function(){return{xvideoBool:l(),contrlShow:!1,contrlShowTimeout:null,videoContext:null,fullScreenFlag:!1,currtime:"00:00",druationTime:"00:00",initPlayingTime:0,sliderValue:0,updateState:!0,playing:!1,curVideo:{duration:0,currentTime:0},touchNum:0,speedListShow:!1,speedList:["2.0","1.5","1.25","1.0","0.75","0.5"],videoSpeed:1,isMousedownProgress:!1,historyTime:0,videoFullHeight:190,videoPageWidth:0,videoPageHeight:0,mobileVideoDragSwitch:"",mobileVideoDragText:"",currtimeText:0,currentTimeFormat:"00:00",fullTimeFormat:"00:00",iosCurrentTime:0}},computed:(0,o.default)({},(0,a.mapGetters)(["userInfo"])),watch:{url:function(e,t){this.videoContext.stop(),this.playing=!1,this.curVideo.currentTime=0,this.iosCurrentTime=0,this.sliderValue=0,this.videoSpeed=1,this.currtime="00:00",document.getElementsByTagName("video")[0].load(),setTimeout((function(){document.getElementsByTagName("video")[0].play()}),100)},inittime:function(e,t){this.initPlayingTime=e}},mounted:function(){var e=this,t=this;this.initPlayingTime=this.inittime,this.videoContext=uni.createVideoContext("xvideoPlayer",this),uni.getSystemInfo({success:function(e){t.videoPageWidth=e.windowWidth,t.videoPageHeight=e.windowHeight}}),this.xvideoBool&&this.dictCode(),setInterval((function(){e.playing&&!e.isMousedownProgress&&(e.iosCurrentTime=e.iosCurrentTime+1),e.updateProgressText()}),1e3),window.addEventListener("touchstart",(function(t){e.speedListShow&&!t.target.closest(".speed-control")&&(e.speedListShow=!1)}),{passive:!1})},methods:{xvideoBoolFun:function(){this.xvideoBool=!1},dictCode:function(){var e=this;d.default.getDictCode("mobile_video_switch").then((function(t){200==t.code&&t.data[0]&&(e.mobileVideoDragText=t.data[0].name,e.mobileVideoDragSwitch=t.data[0].value)}))},updateProgressByClickBar:function(e,t){var i=this.curVideo.duration,n=Math.round(t*i);this.curVideo.currentTime=n,this.sliderValue=100*t,this.druationTime=this.formatSeconds(i),this.currtime=this.formatSeconds(n),this.iosCurrentTime=n,i&&("start"===e&&(this.updateState=!1),"end"===e&&(this.videoContext.seek(n),this.curVideo.currentTime=n,this.updateState=!0))},getMouseDownStatusOfProgressBar:function(e){this.isMousedownProgress=e},fullScreen:function(){var t=navigator.userAgent,i=(navigator.appVersion,!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/));i&&this.$refs["videoPlayer"].webkitEnterFullscreen();var n=this;this.fullScreenFlag?(this.fullScreenFlag=!1,this.videoFullHeight=190):(this.fullScreenFlag=!0,document.documentElement.requestFullscreen,uni.getSystemInfo({success:function(e){n.videoFullHeight=e.windowHeight/2+130}})),e.log("full screen"),!i&&this.$listeners["fullscreenchange"](this.fullScreenFlag)},formatSeconds:function(e){var t=parseInt(e/3600),i=parseInt((e-3600*t)/60);i<10&&(i="0"+i);var n=parseInt((e-3600*t)%60);n<10&&(n="0"+n),t<10&&(t=0==t?"":"0".concat(t,":"));var o=t+i+":"+n;return e>=0?o:"00:00"},changeSpeed:function(e){var t=e;this.videoSpeed=Number(t),this.videoContext.playbackRate(this.videoSpeed),s.default.setVideoSpeed(this.videoSpeed),this.speedListShow=!1},showSpeedCtrl:function(){this.speedListShow?this.speedListShow=!1:this.speedListShow=!0},videoOpreation:function(){this.playing?this.videoContext.pause():this.videoContext.play(),this.playing=!this.playing},videoUpdate:function(e){this.historyTime=e.detail.currentTime;var t=this.curVideo.duration,i=e.detail.currentTime/t*100,n=i/100*t;if(this.updateState&&(this.sliderValue=i),this.druationTime=this.formatSeconds(t),this.currtime=this.formatSeconds(n),this.iosCurrentTime=n,!this.drag){var o=localStorage.getItem("videoProgressData"),r=o&&JSON.parse(o)||{};(r[this.blobId]<this.sliderValue/100||!r[this.blobId])&&(r[this.blobId]=parseFloat((this.sliderValue/100).toFixed(8)),r[this.blobId]&&localStorage.setItem("videoProgressData",JSON.stringify(r)))}},sliderChanging:function(e){this.updateState=!1},sliderChange:function(e){var t=this.curVideo.duration,i=e.detail.value/100*t;t&&(this.videoContext.seek(i),this.sliderValue=e.detail.value,this.updateState=!0,this.druationTime=this.formatSeconds(t),this.currtime=this.formatSeconds(i))},onFullScreen:function(e){this.fullScreenFlag=e.detail.fullScreen;var t=e.detail.fullScreen,i=document.getElementById("xvideoPlayer-box"),n=document.getElementById("xplayer-control"),o=this;setTimeout((function(){var e=document.getElementById("xvideoPlayer"),r=e.firstChild;if(t){if(o.watermark){var a=document.createElement("div");a.id="videowatermark",a.setAttribute("class","fullmark"),a.innerHTML="";for(var s=0;s<4;s++)a.innerHTML+='<div style="color:#ffffff;width: 40%;height: 155px;padding-left:60px;padding-top:50px; display: flex;justify-content: center; transform: rotate(-36deg);font-size:20px;">'+o.userInfo.name+o.userInfo.code+"</div>";a.style.cssText="position:absolute;pointer-events: none; width: 100%;height: 100%;top:0;left:0;bottom: 0;right: 0; display: flex;justify-content: center;flex-wrap: wrap;overflow: hidden; opacity:0.3;padding-top:10px",r.appendChild(a)}r.appendChild(n)}else{var d=r.querySelector("#xplayer-control");if(d&&i.appendChild(d),o.watermark){var l=r.querySelector("#videowatermark");l&&r.removeChild(l)}}}),200),this.$emit("fullscreenchange",e)},error:function(t){e.log(t,"播放错误"),this.$emit("error",t)},onTouchend:function(e){null!=this.contrlShowTimeout&&window.clearTimeout(this.contrlShowTimeout),this.fullScreenFlag?this.contrlShow||(this.contrlShow=!0):this.contrlShow=!this.contrlShow},onLoad:function(e){this.contrlShow=!1,this.$emit("loadeddata",e)},onMetaLoad:function(e){this.curVideo.duration=Number(e.detail.duration),this.druationTime=this.formatSeconds(this.curVideo.duration),this.contrlShow=!0,this.$emit("loadedmetadata",e)},onControlsToggle:function(t){e.log(t,"ControlsToggle")},onPlay:function(){this.videoContext.play(),this.playing=!0;var e=this;this.contrlShow&&(this.contrlShowTimeout=window.setTimeout((function(){e.contrlShow=!1}),5e3)),this.$emit("play")},onTimeUpdate:function(e){this.currtimeText=this.currtimeText+1,this.videoUpdate(e),this.$emit("timeupdate",e)},updateProgressText:function(){this.currentTimeFormat=this.secondTimeFormat(this.iosCurrentTime),this.fullTimeFormat=this.secondTimeFormat(this.curVideo.duration)},secondTimeFormat:function(e){e<0&&(e=0);var t=parseInt(e),i=(Math.floor(t/3600)<10?Math.floor(t/3600):Math.floor(t/3600),Math.floor(t/60%60)<10?"0"+Math.floor(t/60%60):Math.floor(t/60%60)),n=Math.floor(t%60)<10?"0"+Math.floor(t%60):Math.floor(t%60);return t="".concat(i,":").concat(n),t},onPause:function(){this.playing=!1,this.$emit("pause")},onEnded:function(){this.playing=!1,this.fullScreenFlag&&this.fullScreen(),this.$emit("ended")}}};t.default=u}).call(this,i("ba7c")["default"])},"5c5d":function(e,t,i){var n=i("50cb");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var o=i("967d").default;o("5084b546",n,!0,{sourceMap:!1,shadowMode:!1})},"66b3":function(e,t,i){var n=i("91ed");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var o=i("967d").default;o("55f7cbf1",n,!0,{sourceMap:!1,shadowMode:!1})},"6ec9":function(e,t,i){"use strict";i.r(t);var n=i("f573"),o=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(r);t["default"]=o.a},"744c":function(e,t,i){var n=i("8243");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var o=i("967d").default;o("7e393795",n,!0,{sourceMap:!1,shadowMode:!1})},8243:function(e,t,i){var n=i("c86c");t=n(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */',""]),e.exports=t},9169:function(e,t,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(i("ca67")),r=n(i("5cab")),a=r.default.manageApiBaseUrl,s={getTaskNum:function(){return o.default.get(a+"/todoTask/queryTodoTaskCounts")},userTaskList:function(e){return o.default.postJson(a+"/todoTask/queryTodoTaskDetail",e)},userDeleteStudy:function(e){return o.default.postJson(a,"/stu/project/stuCancelEnrollment",e)},getDictCode:function(e){return o.default.get(a+"/dict?code="+e)}};t.default=s},"91ed":function(e,t,i){var n=i("c86c");t=n(!1),t.push([e.i,'.progress-bar[data-v-09ee584e]{position:relative;cursor:pointer;padding:2px 0;margin:0;transition:height .2s\r\n /*overflow: hidden;*/}.progress-bar:hover .progress-full[data-v-09ee584e]{height:2px!important}.progress-full[data-v-09ee584e]{position:relative;display:inline-block;width:100%;background:#c9c9c9;transition:height .3s}.progress-current[data-v-09ee584e]{position:absolute;left:0;top:0;height:inherit;width:0;display:inline-block;background-color:var(--primaryColor)}.progress-current[data-v-09ee584e]::after{content:"";position:absolute;display:inline-block;right:0;top:50%;bottom:50%;width:12px;height:12px;border-radius:100%;background:#fff;-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%);opacity:1;transition:opacity .3s}.progress-bar:hover .progress-current[data-v-09ee584e]::after{opacity:1}',""]),e.exports=t},"9370a":function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"progress-bar",style:{width:e.width},on:{touchstart:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:(arguments[0]=t=e.$handleEvent(t),void e.start.apply(void 0,arguments))},touchmove:function(t){arguments[0]=t=e.$handleEvent(t),e.move.apply(void 0,arguments)},touchend:function(t){arguments[0]=t=e.$handleEvent(t),e.up.apply(void 0,arguments)}}},[i("div",{staticClass:"progress-full",style:{height:e.height}},[i("div",{staticClass:"progress-current",style:{width:e.currentProgress+"%"}})])])},o=[]},a6bc:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAcCAYAAAB75n/uAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAGKADAAQAAAABAAAAHAAAAAAXtdNtAAAA60lEQVRIDe2WPQoCMRCFE38bCwvBVi9hYSF4AK/jZbyFWNtYiEewsHK7LRRWUFCMX1iyDCFLGivNwCMzb97sZB9brFI/E8aYETiAN7iAZezl0MzACdjIwKJ2hubGqrwY1g7QQHv29PZizeAMjcIT23ISFJcP7wb0lurLmYYoeiJ3adslgTN8U6VaUisXSP5reVoQtTJZlCyKOhAVpK8oWRR1ICr476/IRP1BIC3KAgNFgHPU0yXe+ZC1XLCSDfIcHD2uKrXWL4p1RZTJHv4mOS0Lfjmm1GNwBzvEdkltoO/QnIMBuIItM3a2ig8GGZnbe7gGwQAAAABJRU5ErkJggg=="},b68b:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAGKADAAQAAAABAAAAGAAAAADiNXWtAAABcElEQVRIDe2UPUpDQRDHs1EsPEJKz5DCE4gxTRAi2AW0s7LzANrGBCxExE7QQJq0qbyAlZ1g5Rn8jHn+JtkN89YNeet7YOPAn5mdnfeb/UpKpX8r+gSSJLlEWawnvctFL0DxVlWcP2RLLTRSWytuB0APWOIVWkK3erm5jwj4EcAzCz3E93WDXDHwY3skX/h9geGbNjc5ol81AGBQ14I+8bsORJxqsOwmsnoAcqwXaA+9ox1jzAAftOgGUORCBf6CGsCH+Lk2u2RWdo1e0fbc6unEOe4GbSyCpziAe0ismZqwA/LraCU0p3PUlKUOTU5ntgNd5McU18ndob770K9xY3Y1Rh9oJLmFDQBuUSdvW1b/6D4kjjNAP45I4OgNiZ3GEb1qAKkGjGvIwTteefxQNyDeVPBuPC3whWpwUiTcuF7SgFie6BjJ5T+hB+Rbm4uWF5XJQr9k97LWIIh8i/oT0zuoQqr4tMD4nh08B/J/k/oGUNUxKAiMWkQAAAAASUVORK5CYII="},ba36:function(e,t,i){"use strict";i.d(t,"b",(function(){return o})),i.d(t,"c",(function(){return r})),i.d(t,"a",(function(){return n}));var n={videoPlayer:i("1461").default},o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",[e.show?i("v-uni-view",[i("video-player",{attrs:{url:e.fileUrl,name:e.title,inittime:e.initTime,drag:!0},on:{play:function(t){arguments[0]=t=e.$handleEvent(t),e.videoPlay.apply(void 0,arguments)},pause:function(t){arguments[0]=t=e.$handleEvent(t),e.videoPause.apply(void 0,arguments)},timeupdate:function(t){arguments[0]=t=e.$handleEvent(t),e.videoPlaying.apply(void 0,arguments)},ended:function(t){arguments[0]=t=e.$handleEvent(t),e.videoEnd.apply(void 0,arguments)},fullscreenchange:function(t){arguments[0]=t=e.$handleEvent(t),e.videoScreen.apply(void 0,arguments)}}})],1):e._e(),i("v-uni-view",{staticStyle:{"padding-top":"30px",display:"flex","justify-content":"center"}},[i("v-uni-button",{attrs:{type:"default"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.loadVideo()}}},[e._v("加载")]),i("v-uni-button",{attrs:{type:"primary"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.changeSrc()}}},[e._v("切换测试")])],1),i("v-uni-view",[i("v-uni-video",{staticStyle:{width:"100%"},attrs:{src:e.fileUrl,controls:!0},on:{fullscreenchange:function(t){arguments[0]=t=e.$handleEvent(t),e.videoScreen.apply(void 0,arguments)}}})],1)],1)},r=[]},ca67:function(e,t,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("bf0f"),i("9db6");var o=n(i("5cab")),r=i("ca00"),a=i("a8f6"),s=n(i("9b0d")),d=function(e){return e},l=function(e,t,i){var n=(0,a.getToken)();n||(n="");var r={"content-type":"application/x-www-form-urlencoded",token:n},s=d(t);return new Promise((function(t,n){uni.request({url:s,method:e,data:i,xhrFields:{withCredentials:!0},dataType:"json",header:r,success:function(e,i){if(200==e.statusCode)if(1e3==e.data.code){(0,a.removeToken)();var r=o.default.loginPath;if(r.startsWith("http")){var s=window.location.protocol+"//"+window.location.host+o.default.context;location.href=o.default.loginPath+"?returnUrl="+encodeURIComponent(s+"/pages/login/loading")}else uni.redirectTo({url:r})}else t(e.data);else n("API请求错误")},fail:function(e){n(e)}})}))},u=function(e,t,i){var n=(0,a.getToken)();n||(n="");var o={token:n},s=d(t);return new Promise((function(t,n){uni.request({url:s,method:e,data:i,xhrFields:{withCredentials:!0},dataType:"json",header:o,success:function(e,i){200==e.statusCode?1e3==e.data.code?((0,a.removeToken)(),(0,r.toLogin)(s)):t(e.data):n("API请求错误")},fail:function(e){n(e)}})}))},c={get:function(e){return l("GET",e,"")},post:function(e,t){return t&&(t=s.default.stringify(t)),l("POST",e,t)},postJson:function(e,t){return u("POST",e,t)},put:function(e,t){return t&&(t=s.default.stringify(t)),l("PUT",e,t)},putJson:function(e,t){return u("PUT",e,t)},patch:function(e,t){return t&&(t=s.default.stringify(t)),l("PATCH",e,t)},patchJson:function(e,t){return u("PATCH",e,t)},del:function(e,t){return t&&(t=s.default.stringify(t)),l("DELETE",e,t)}};t.default=c},d438:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAcCAYAAAB75n/uAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAGKADAAQAAAABAAAAHAAAAAAXtdNtAAABfklEQVRIDd2WMShFYRTH3xVSyqBYLJJeqTcqWWTBRhn0Ngu9WGRQMlhtZDNKlmdjY5KB1FteRFlYLDJZsLh+R506ruu+73vvszj17zvf+c73+99zb71eLvcvIo7jMbSE+oIPBLSINN5J1lFLMCNg+0o36xX5UAiTJiCtKaACtXNMtlB7yrl7CcAByop7Dsfdid87ZYJa0UvDMSa7qLNWc/LcxUDvzJLcYjKjBZfVx0B43aiMySHq+QsDZU6S3GBSQpEW01bfCSyjg80OOsUkbw9s3oiBckZIqpisomYt6hrCQFhtaANdYNIlBY1QBsobJFnWjayhDSz7Kw9tUIG6aV1CGbwBXUPDURQ9W4MfX90eOuZn9M0Dvkvrb2SCF4ALaPQ3uBjWO8ERdxcBPwokK3wneAJWBDzlAhdjH4M9+gcAl+Wia7i8ogdgJcAnrlDblzXBB43bqFAvXIxkgldJEnHNfg7wZaLuv+XHaRpphP/bIo8EfQKtoH7/R8y+8Qkm/soscOt+8gAAAABJRU5ErkJggg=="},dc93:function(e,t,i){"use strict";i.r(t);var n=i("2038"),o=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(r);t["default"]=o.a},dcfc:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",[!e.xvideoBool||e.xvideoBool&&e.drag?n("v-uni-view",{class:e.fullScreenFlag?"video-box video-full-screen":"video-box",attrs:{id:"xvideoPlayer-box"}},[n("v-uni-video",{ref:"videoPlayer",class:e.fullScreenFlag?"video-scree-rotate":"",style:{width:e.fullScreenFlag?e.videoPageHeight+"px":"100%",height:e.fullScreenFlag?e.videoPageWidth+"px":"","margin-left":e.fullScreenFlag?-1*(e.videoPageHeight-e.videoPageWidth)/2+"px":""},attrs:{id:"xvideoPlayer",src:e.url,controls:!1,"enable-play-gesture":!1,"enable-progress-gesture":!1,"initial-time":e.initPlayingTime},on:{error:function(t){arguments[0]=t=e.$handleEvent(t),e.error.apply(void 0,arguments)},touchend:function(t){arguments[0]=t=e.$handleEvent(t),e.onTouchend.apply(void 0,arguments)},play:function(t){arguments[0]=t=e.$handleEvent(t),e.onPlay.apply(void 0,arguments)},pause:function(t){arguments[0]=t=e.$handleEvent(t),e.onPause.apply(void 0,arguments)},ended:function(t){arguments[0]=t=e.$handleEvent(t),e.onEnded.apply(void 0,arguments)},timeupdate:function(t){arguments[0]=t=e.$handleEvent(t),e.onTimeUpdate.apply(void 0,arguments)},fullscreenchange:function(t){arguments[0]=t=e.$handleEvent(t),e.onFullScreen.apply(void 0,arguments)},loadeddata:function(t){arguments[0]=t=e.$handleEvent(t),e.onLoad.apply(void 0,arguments)},loadedmetadata:function(t){arguments[0]=t=e.$handleEvent(t),e.onMetaLoad.apply(void 0,arguments)},controlstoggle:function(t){arguments[0]=t=e.$handleEvent(t),e.onControlsToggle.apply(void 0,arguments)}}}),n("v-uni-view",{attrs:{id:"xplayer-control"}},[e.contrlShow?n("v-uni-view",{staticClass:"process-container",class:e.fullScreenFlag?"video-scree-rotate":"",style:{width:e.fullScreenFlag?.98*e.videoPageHeight+"px":"96%","margin-top":-1*e.videoPageHeight*.02+"px","margin-left":e.fullScreenFlag?-1*(e.videoPageHeight-e.videoPageWidth)/2-174-(e.videoPageWidth-375)/2+"px":"",bottom:e.fullScreenFlag?"auto":"0px"}},[n("v-uni-view",{staticClass:"controller-play"},[n("v-uni-image",{attrs:{src:i(e.playing?"a6bc":"d438")},on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.videoOpreation.apply(void 0,arguments)}}})],1),n("v-uni-view",{staticClass:"currtime"},[e._v(e._s(e.currtime))]),n("v-uni-view",{staticClass:"slider-container new-bar"},[n("progressBar",{attrs:{currentProgress:e.sliderValue,blobId:e.blobId,fullScreenFlag:e.fullScreenFlag,isDrag:e.drag,width:"100%"},on:{updateProgress:function(t){arguments[0]=t=e.$handleEvent(t),e.updateProgressByClickBar.apply(void 0,arguments)},getMouseDownStatus:function(t){arguments[0]=t=e.$handleEvent(t),e.getMouseDownStatusOfProgressBar.apply(void 0,arguments)}}})],1),n("v-uni-view",{staticClass:"druationTime"},[e._v(e._s(e.druationTime))]),n("v-uni-view",{staticClass:"druationTime"},[n("v-uni-view",{staticClass:"player-speed btn-speed",attrs:{id:"myVideoSpeed"}},[n("v-uni-view",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.showSpeedCtrl.apply(void 0,arguments)}}},[e._v(e._s(1===e.videoSpeed?"倍速":e.videoSpeed+"x"))]),e.speedListShow?n("v-uni-view",{staticClass:"speed-control"},[n("v-uni-view",{staticClass:"speed-control-list"},e._l(e.speedList,(function(t){return n("v-uni-view",{key:t,staticClass:"li",class:{current:e.videoSpeed===Number(t)},attrs:{"data-value":t},on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.changeSpeed(t)}}},[e._v(e._s(t)+"x")])})),1)],1):e._e()],1)],1),n("v-uni-view",{staticClass:"controller-screen"},[n("v-uni-image",{attrs:{src:i(e.fullScreenFlag?"3dfa":"b68b")},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.fullScreen.apply(void 0,arguments)}}})],1)],1):e._e()],1)],1):e._e(),e.xvideoBool&&!e.drag?n("v-uni-view",{staticClass:"video-box-error"},[n("v-uni-view",{staticStyle:{color:"#ffffff",padding:"0px 50px 0px","font-size":"16px"}},[e._v(e._s(e.mobileVideoDragText))]),"true"==e.mobileVideoDragSwitch?n("v-uni-button",{staticStyle:{display:"inline-block","font-size":"14px",padding:"0px 10px","line-height":"28px"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.xvideoBoolFun.apply(void 0,arguments)}}},[e._v("仍要使用此浏览器观看")]):e._e()],1):e._e()],1)},o=[]},df6d:function(e,t,i){"use strict";i.r(t);var n=i("ba36"),o=i("dc93");for(var r in o)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return o[e]}))}(r);i("5171");var a=i("828b"),s=Object(a["a"])(o["default"],n["b"],n["c"],!1,null,"eac64472",null,!1,n["a"],void 0);t["default"]=s.exports},f573:function(e,t,i){"use strict";i("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("64aa");var n={name:"progress-bar",props:{width:{type:String,default:"100%"},height:{type:String,default:"4px"},fullScreenFlag:{type:Boolean,default:!1},currentProgress:{type:Number,default:0},isDrag:{type:Boolean,default:!0},blobId:{type:String}},data:function(){return{is_mousedown_progress:!1,current_width_px:0,current_height_px:0,init_clientX:0,init_clientY:0,dom_full:null}},mounted:function(){var e=this,t=this.$el.getElementsByClassName("progress-full")[0];this.dom_full=t,window.addEventListener("touchmove",(function(t){e.is_mousedown_progress&&(e.move(t),t.preventDefault())}),{passive:!1}),window.addEventListener("touchend",(function(t){e.up(t)}))},beforeDestroy:function(){},methods:{start:function(e){if(this.$emit("getMouseDownStatus",!0),this.is_mousedown_progress=!0,this.fullScreenFlag){var t=this.dom_full.getBoundingClientRect().top;this.current_height_px=e.touches[0].clientY-t;var i=(e.touches[0].clientY-t)/this.dom_full.clientWidth;i>1&&(i=1),i<0&&(i=0);var n=localStorage.getItem("videoProgressData"),o=n&&JSON.parse(n)||{};if(!this.isDrag&&n&&o[this.blobId]<i)return;this.$emit("updateProgress","start",i)}else{var r=this.dom_full.getBoundingClientRect().left;this.current_width_px=e.touches[0].clientX-r;var a=(e.touches[0].clientX-r)/this.dom_full.clientWidth;a>1&&(a=1),a<0&&(a=0);n=localStorage.getItem("videoProgressData"),o=n&&JSON.parse(n)||{};if(!this.isDrag&&n&&o[this.blobId]<a)return;this.$emit("updateProgress","start",a)}},move:function(e){if(this.is_mousedown_progress)if(this.fullScreenFlag){var t=this.dom_full.getBoundingClientRect().top;this.current_height_px=e.touches[0].clientY-t;var i=(e.touches[0].clientY-t)/this.dom_full.clientWidth;i>1&&(i=1),i<0&&(i=0);var n=localStorage.getItem("videoProgressData"),o=n&&JSON.parse(n)||{};if(!this.isDrag&&n&&o[this.blobId]<i)return;this.$emit("updateProgress","move",i)}else{var r=this.dom_full.getBoundingClientRect().left;this.current_width_px=e.touches[0].clientX-r;var a=(e.touches[0].clientX-r)/this.dom_full.clientWidth;a>1&&(a=1),a<0&&(a=0);n=localStorage.getItem("videoProgressData"),o=n&&JSON.parse(n)||{};if(!this.isDrag&&n&&o[this.blobId]<a)return;this.$emit("updateProgress","move",a)}},up:function(){if(this.is_mousedown_progress)if(this.is_mousedown_progress=!1,this.$emit("getMouseDownStatus",!1),this.fullScreenFlag){var e=this.current_height_px/this.dom_full.clientWidth;e>1&&(e=1),e<0&&(e=0);var t=localStorage.getItem("videoProgressData"),i=t&&JSON.parse(t)||{};if(!this.isDrag&&t&&i[this.blobId]<e)return;this.$emit("updateProgress","end",e)}else{var n=this.current_width_px/this.dom_full.clientWidth;n>1&&(n=1),n<0&&(n=0);t=localStorage.getItem("videoProgressData"),i=t&&JSON.parse(t)||{};if(!this.isDrag&&t&&i[this.blobId]<n)return;this.$emit("updateProgress","end",n)}}}};t.default=n}}]);