提交 ddf24ddb authored 作者: GOD_ZYX's avatar GOD_ZYX

updagte

上级 29a1a5e5
...@@ -15,4 +15,4 @@ ...@@ -15,4 +15,4 @@
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/console-polyfill.js"></script> <script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/console-polyfill.js"></script>
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/html5shiv.min.js"></script> <script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/html5shiv.min.js"></script>
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/respond.min.js"></script> <script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/respond.min.js"></script>
<![endif]--><script type="text/javascript" src="https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/resources/manifest.58f19306.js"></script><script type="text/javascript" src="https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/resources/vendor.90efc743.js"></script><script type="text/javascript" src="https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/resources/app.e2c723a9.js"></script></body></html> <![endif]--><script type="text/javascript" src="https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/resources/manifest.8c611617.js"></script><script type="text/javascript" src="https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/resources/vendor.90efc743.js"></script><script type="text/javascript" src="https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/resources/app.e2c723a9.js"></script></body></html>
\ No newline at end of file \ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{269:function(e,t,i){"use strict";i.r(t);var s=i(456),a=i(356);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var r=i(1),o=Object(r.a)(a.default,s.a,s.b,!1,null,null,null);o.options.__file="chapterVideo.vue",t.default=o.exports},356:function(e,t,i){"use strict";i.r(t);var s=i(357),a=i.n(s);for(var n in s)"default"!==n&&function(e){i.d(t,e,function(){return s[e]})}(n);t.default=a.a},357:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=n(i(415)),a=n(i(417)),p=n(i(74));function n(e){return e&&e.__esModule?e:{default:e}}var r=1e4;t.default={components:{eVideo:s.default,ePpt:a.default},props:{chapterId:{type:String,require:!1},chapterName:{type:String,require:!1},chapterVideo:{type:Object,require:!1},ppts:{type:Array,require:!1,default:[]},sid:{type:String,require:!1},cid:{type:String,require:!1},id:{type:String,require:!1}},data:function(){return{state:{pptIndex:0,pptBoxOnly:!1,pptBoxShow:!1,skipBegin:/skip=1/.test(document.cookie),calculatedSize:!1},videoFlash:{lastTime:null,speed:1,isSeek:!1,isFinish:!1,queueFrames:[],mapFrames:[],videoWidth:550,videoHeight:360,username:window.G.UserInfo&&window.G.UserInfo.username||""},resizeVideo:null,hearBeat:null,_rProgress:{},isPlaying:!1}},mounted:function(){var e=this.getCalculateSize();e.video.w&&(this.videoFlash.videoWidth=e.video.w,this.videoFlash.videoHeight=e.video.h),this.resizeVideo||(this.resizeVideo=p.default.debounce(this.jdugeSize.bind(this),200)),setTimeout(this.jdugeSize,300),window.addEventListener("resize",this.resizeVideo),this.createHeartTime(r)},destroyed:function(){window.removeEventListener("resize",this.resizeVideo),this.destroyHeartTime(),this.hearBeatFunc(r)},watch:{id:{handler:function(){this.id&&(this.state.pptBoxShow=!1,this.state.pptBoxOnly=!1,this._rProgress={},setTimeout(this.jdugeSize,0))}}},methods:{togglePptBox:function(){this.state.pptBoxShow=!this.state.pptBoxShow,this.state.pptBoxOnly=!1,setTimeout(this.jdugeSize,0)},togglePptBoxOnly:function(){this.state.pptBoxOnly=!this.state.pptBoxOnly,setTimeout(this.jdugeSize,0)},toggleSkipBegin:function(){var e=!this.state.skipBegin,t=new Date;t.setMonth(t.getMonth()+1),document.cookie="skip="+ +e+";path=/;domain=.ezijing.com;expires="+t.toGMTString(),e&&this.$refs.video&&this.$refs.video.skipBegin(),this.state.skipBegin=e},onVideoTimeChange:function(e){var t=e.time;this.videoFlash.speed=parseFloat(e.quality.split(" ")[1]||1),this.videoFlash.isSeek=e.isSeek,this.videoFlash.lastTime!==t&&(this.videoFlash.lastTime=t,this.isPlaying=!0,e.isSeek||this.videoFlash.queueFrames.push(t),this.setPptIndexByTime(t),this.$emit("handlePlayTime",t))},onVideoPlayFinish:function(e){if(this.chapterVideo){if(this._rProgress&&this._rProgress.id);else{this._rProgress=p.default.assignIn({},this.chapterVideo.progress);for(var t=[],i=this.chapterVideo.video_length||1,s=0;s<i;s++)t.push(0);this.videoFlash.mapFrames=this._rProgress.map.length?this._rProgress.map:t,this._rProgress.map=this.videoFlash.mapFrames}this._rProgress.pt+10*this.videoFlash.speed>=e.time&&(this.isPlaying=!0,this.hearBeatFunc(r))}},setPptIndexByTime:function(e){for(var t=this.ppts||[],i=0;i<t.length&&!(e<t[i].ppt_point);i++);this.state.pptIndex!==i-1&&(this.state.pptIndex=i-1)},setVideoTime:function(e){this.$refs.video&&this.$refs.video.setTimeTo(e)},jdugeSize:function(){var e=this.$refs.box,t=this.getCalculateSize(),i=0,s=0;this.state.pptBoxOnly?(s=t.ppt.w,i=t.ppt.h,this.$refs.ppt&&this.$refs.ppt.setSize(s,i)):this.state.pptBoxShow?(this.$refs.ppt&&this.$refs.ppt.setSize(t.ppt.w,t.ppt.h),this.$refs.video&&this.$refs.video.setSize(t.video.w,t.video.h),s=t.ppt.w+t.video.w,i=t.video.h):(s=t.video.w,i=t.video.h,this.$refs.video&&this.$refs.video.setSize(s,i)),this.state.calculatedSize=!0,e.style.paddingLeft=(t.space.w-s)/2+15+"px",e.style.paddingTop=(t.space.h-i)/2+10+"px"},getCalculateSize:function(){var e=this.$refs.container,t=e.offsetWidth-30,i=e.offsetHeight-53-20,s=550/363,a=336/236,n={space:{w:t,h:i},video:{w:0,h:0},ppt:{w:0,h:0}};if(this.state.pptBoxOnly)n.ppt.w=t<i*a?t:i*a,n.ppt.h=i<t/a?i:t/a;else if(this.state.pptBoxShow){var r=t/2,o=r<i*s?r:i*s,l=i<r/s?i:r/s,p=l,d=p*a;n.video.w=o,n.video.h=l,n.ppt.w=d,n.ppt.h=p}else n.video.w=t<i*s?t:i*s,n.video.h=i<t/s?i:t/s;return n},hearBeatFunc:function(e){if(this.chapterVideo&&this.isPlaying){if(this._rProgress&&this._rProgress.id);else{this._rProgress=p.default.assignIn({},this.chapterVideo.progress);for(var t=[],i=this.chapterVideo.video_length||1,s=0;s<i;s++)t.push(0);this.videoFlash.mapFrames=this._rProgress.map.length?this._rProgress.map:t,this._rProgress.map=this.videoFlash.mapFrames}var a=this._rProgress,n=this.videoFlash.lastTime,r=this.videoFlash.speed,o=this.videoFlash.isSeek,l=this.videoFlash.queueFrames;0===a.cpt&&0===a.mpt&&0===a.pt&&/skip=1/.test(document.cookie)&&(a.pt=7),o||(a.pt+=e/1e3*r,a.cpt=n,a.mpt=n>a.mpt?n:a.mpt,a.ps=l,this.$emit("updateProgress",this._rProgress)),this.isPlaying=!1}},createHeartTime:function(e){var t=this,i=e||1e4;this.destroyHeartTime(),this.hearBeat=setInterval(function(){t.hearBeatFunc(i)},i)},destroyHeartTime:function(){this.hearBeat&&clearInterval(this.hearBeat)}}}},358:function(e,t,i){"use strict";i.r(t);var s=i(359),a=i.n(s);for(var n in s)"default"!==n&&function(e){i.d(t,e,function(){return s[e]})}(n);t.default=a.a},359:function(e,n,r){"use strict";(function(s){Object.defineProperty(n,"__esModule",{value:!0});var e,t=r(270),p=(e=t)&&e.__esModule?e:{default:e};var a="playerWrap",i=0;n.default={props:{lastTime:{type:Number,require:!1},videoId:{type:String,require:!1},width:{type:Number,require:!1},height:{type:Number,require:!1},username:{type:String,require:!1},videoSrt:{type:String,require:!1},autoPlay:{type:Boolean,require:!1,default:!0},chapterVideo:{type:Object,require:!1}},mounted:function(){this.definWindowFun()},watch:{videoId:{handler:function(){this.videoId&&(i=this.lastTime||0,this.renderPlayer("player",this.videoId,this.autoPlay,this.videoSrt,this.username,this.width,this.height))}}},methods:{definWindowFun:function(){var t=this;window._playerStart=function(){/skip=1/.test(document.cookie)?t.getPlayer().callAction("setCurrentTime",Math.max(i,7)):i&&t.getPlayer().callAction("setCurrentTime",i)},window._playerIng=function(e){s("#"+a).trigger("player.time",{time:e,quality:t.getPlayer().callAction("getQuality"),isSeek:!1})},window._playerSeek=function(){s("#"+a).trigger("player.seek",{time:t.getPlayer().callAction("getCurrentTime"),quality:t.getPlayer().callAction("getQuality"),isSeek:!0})},window._playerFinish=function(){t.$emit("handlePlayfinish",{time:t.getPlayer().callAction("getDuration")})},window._playerCallback=function(){var e=t.getPlayer();e&&(e.callAction("register","onCanplay","_playerStart"),e.callAction("register","onPlaying","_playerIng"),e.callAction("register","onSeekComplete","_playerSeek"),e.callAction("register","onEnded","_playerFinish"))}},renderPlayer:function(e,t,i,s,a,n,r){var o={autoStart:i=void 0===i?1:i-0,vid:t,isShowSpeeder:1,videoType:1,callback:"_playerCallback"};s&&(o.srtUrl=s),a&&(o.username=a);var l={id:e,name:e,align:"middle",wmode:"opaque"};p.default.embedSWF("/static/videoJs/swf/Player1705192.swf",e,parseInt(n),parseInt(r),"11.1.0","playerProductInstall.swf",o,{quality:"high",bgcolor:"#000000",allowscriptaccess:"always",allowfullscreen:"true"},l),this.listenPlayerEvents()},listenPlayerEvents:function(){var i=this;s("#"+a).off("player.time player.seek").on("player.time player.seek",function(e,t){i.$emit("handlePlayTime",t)})},getPlayer:function(){return document.getElementById("player")},getTime:function(){var e=this.getPlayer();return e?e.callAction("getCurrentTime"):0},setTimeTo:function(e){var t=this.getPlayer();t&&t.callAction("setCurrentTime",e+2)},skipBegin:function(){var e=this.getPlayer();e&&e.callAction("getCurrentTime")<7&&e.callAction("setCurrentTime",7)},setSize:function(e,t){var i=this.getPlayer();i&&(i.width=e,i.height=t)}}}}).call(this,r(390))},360:function(e,t,i){},361:function(e,t,i){"use strict";i.r(t);var s=i(362),a=i.n(s);for(var n in s)"default"!==n&&function(e){i.d(t,e,function(){return s[e]})}(n);t.default=a.a},362:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{ppts:{type:Array,require:!1},currentIndex:{type:Number,require:!1,default:0}},data:function(){return{state:{index:this.currentIndex,sync:!0}}},watch:{currentIndex:{handler:function(){this.state.sync&&(this.state.index=this.currentIndex)}}},methods:{gotoIndex:function(e){this.state.index=e},getIndex:function(e){return Math.min(this.ppts.length-1,Math.max(0,e))},prev:function(e){this.state.index=this.getIndex(this.state.index-1),this.state.sync=!1},next:function(e){this.state.index=this.getIndex(this.state.index+1),this.state.sync=!1},onToggleSync:function(e){this.state.sync=!this.state.sync,this.state.index=this.state.sync?this.currentIndex:this.state.index},onSetVideoTime:function(e){this.$emit("onVideoSyncTime",this.ppts[this.state.index].ppt_point)},setSize:function(e,t){this.$refs.wrap.style.width=e+"px",this.$refs.wrap.style.height=t+"px",this.$refs.preview.style.lineHeight=t-44+"px"}}}},415:function(e,t,i){"use strict";i.r(t);var s=i(457),a=i(358);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);i(416);var r=i(1),o=Object(r.a)(a.default,s.a,s.b,!1,null,"dced0884",null);o.options.__file="video.vue",t.default=o.exports},416:function(e,t,i){"use strict";var s=i(360);i.n(s).a},417:function(e,t,i){"use strict";i.r(t);var s=i(461),a=i(361);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var r=i(1),o=Object(r.a)(a.default,s.a,s.b,!1,null,null,null);o.options.__file="ppt.vue",t.default=o.exports},456:function(e,t,i){"use strict";var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"container",staticClass:"play-content-video"},[i("div",{ref:"box",staticClass:"play-center"},[e.chapterVideo?[i("div",{class:["play-video",e.state.pptBoxOnly?"play-video-hide":"",e.state.calculatedSize?"":"play-video-init-center"]},[i("e-video",{ref:"video",attrs:{lastTime:parseFloat(e.chapterVideo.progress&&e.chapterVideo.progress.pt||0),width:e.videoFlash.videoWidth,height:e.videoFlash.videoHeight,username:e.videoFlash.username,videoId:e.chapterVideo.video_origionalID,videoSrt:e.chapterVideo.video_subtitle||"",chapterVideo:e.chapterVideo},on:{handlePlayTime:e.onVideoTimeChange,handlePlayfinish:e.onVideoPlayFinish}})],1),e._v(" "),i("div",{class:["play-jiangyi",e.state.pptBoxShow?"":"hide"]},[e.ppts.length?[i("e-ppt",{ref:"ppt",attrs:{ppts:e.ppts,currentIndex:e.state.pptIndex},on:{onVideoSyncTime:e.setVideoTime,onPptOnly:e.togglePptBoxOnly,onClose:e.togglePptBox}})]:e._e()],2)]:[i("p",[e._v("课程视频数据不存在")])]],2),e._v(" "),i("div",{staticClass:"play-footer"},[i("div",{staticClass:"fl"}),e._v(" "),i("div",{staticClass:"fr"},[e.chapterVideo.pdf?[i("em",{staticClass:"play-state play-state-ppt"},[i("a",{attrs:{href:e.chapterVideo.pdf,target:"_blank"}},[e._v("下载PPT")])])]:e._e(),e._v(" "),e.ppts.length?[i("em",{class:["play-state","play-state-ppt"+(e.state.pptBoxShow?"-active":"")],on:{click:e.togglePptBox}},[e._v("同步显示PPT")])]:e._e(),e._v(" "),i("em",{class:["play-state","play-state-check"+(e.state.skipBegin?"-active":"")],on:{click:e.toggleSkipBegin}},[e._v("始终跳过片头")])],2)])])},a=[];i.d(t,"a",function(){return s}),i.d(t,"b",function(){return a})},457:function(e,t,i){"use strict";var s=function(){var e=this.$createElement;this._self._c;return this._m(0)},a=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"playerWrap"}},[t("div",{attrs:{id:"player"}},[t("p",[this._v("您还没有安装flash播放器,请 "),t("a",{attrs:{href:"http://www.adobe.com/go/getflash",target:"_blank"}},[this._v("点击这里安装")])])])])}];i.d(t,"a",function(){return s}),i.d(t,"b",function(){return a})},461:function(e,t,i){"use strict";var s=function(){var e=this,t=this,i=t.$createElement,s=t._self._c||i;return s("div",{ref:"wrap",staticClass:"play-ppt"},[t.ppts.length?[s("div",{ref:"preview",staticClass:"play-preview"},[t.ppts[t.state.index]&&t.ppts[t.state.index].ppt_url?[s("img",{staticClass:"play-ppt-img",staticStyle:{"vertical-align":"middle"},attrs:{src:t.ppts[t.state.index].ppt_url}})]:t._e()],2),t._v(" "),s("div",{staticClass:"play-controls cl"},[s("div",{staticStyle:{float:"left"}},[0<=t.state.index?[s("a",{staticStyle:{margin:"0 20px 0 0",color:"#fff"},attrs:{href:"#"},on:{click:t.prev}},[s("i",{staticClass:"el-icon-arrow-left"})])]:t._e(),t._v(" "),t.state.index+1<t.ppts.length?[s("a",{attrs:{href:"#"},on:{click:t.next}},[s("i",{staticClass:"el-icon-arrow-right",staticStyle:{color:"#fff"}})])]:t._e()],2),t._v(" "),s("div",{staticClass:"play-page"},[s("span",{staticClass:"play-now"},[t._v(t._s(t.state.index+1))]),t._v("\n /\n "),s("span",{staticClass:"play-total"},[t._v(t._s(t.ppts.length))]),t._v("页\n ")]),t._v(" "),s("div",{staticClass:"play-amazing"},[s("i",{class:["el-icon-self-xuexiao",t.state.sync?"active":""],on:{click:t.onToggleSync}}),t._v(" "),s("i",{staticClass:"el-icon-self-quanping",on:{click:function(){e.$emit("onPptOnly")}}}),t._v(" "),s("i",{staticClass:"el-icon-self-shipin",on:{click:t.onSetVideoTime}}),t._v(" "),s("i",{staticClass:"el-icon-self-guanbi",on:{click:function(){e.$emit("onClose")}}})])])]:t._e()],2)},a=[];i.d(t,"a",function(){return s}),i.d(t,"b",function(){return a})}}]); (window.webpackJsonp=window.webpackJsonp||[]).push([[11],{269:function(e,t,i){"use strict";i.r(t);var s=i(456),a=i(356);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var r=i(1),o=Object(r.a)(a.default,s.a,s.b,!1,null,null,null);o.options.__file="chapterVideo.vue",t.default=o.exports},356:function(e,t,i){"use strict";i.r(t);var s=i(357),a=i.n(s);for(var n in s)"default"!==n&&function(e){i.d(t,e,function(){return s[e]})}(n);t.default=a.a},357:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=n(i(415)),a=n(i(417)),p=n(i(74));function n(e){return e&&e.__esModule?e:{default:e}}var r=1e4;t.default={components:{eVideo:s.default,ePpt:a.default},props:{chapterId:{type:String,require:!1},chapterName:{type:String,require:!1},chapterVideo:{type:Object,require:!1},ppts:{type:Array,require:!1,default:[]},sid:{type:String,require:!1},cid:{type:String,require:!1},id:{type:String,require:!1}},data:function(){return{state:{pptIndex:0,pptBoxOnly:!1,pptBoxShow:!1,skipBegin:/skip=1/.test(document.cookie),calculatedSize:!1},videoFlash:{lastTime:null,speed:1,isSeek:!1,isFinish:!1,queueFrames:[],mapFrames:[],videoWidth:550,videoHeight:360,username:window.G.UserInfo&&window.G.UserInfo.username||""},resizeVideo:null,hearBeat:null,_rProgress:{},isPlaying:!1}},mounted:function(){var e=this.getCalculateSize();e.video.w&&(this.videoFlash.videoWidth=e.video.w,this.videoFlash.videoHeight=e.video.h),this.resizeVideo||(this.resizeVideo=p.default.debounce(this.jdugeSize.bind(this),200)),setTimeout(this.jdugeSize,600),window.addEventListener("resize",this.resizeVideo),this.createHeartTime(r)},destroyed:function(){window.removeEventListener("resize",this.resizeVideo),this.destroyHeartTime(),this.hearBeatFunc(r)},watch:{id:{handler:function(){this.id&&(this.state.pptBoxShow=!1,this.state.pptBoxOnly=!1,this._rProgress={},setTimeout(this.jdugeSize,0))}}},methods:{togglePptBox:function(){this.state.pptBoxShow=!this.state.pptBoxShow,this.state.pptBoxOnly=!1,setTimeout(this.jdugeSize,0)},togglePptBoxOnly:function(){this.state.pptBoxOnly=!this.state.pptBoxOnly,setTimeout(this.jdugeSize,0)},toggleSkipBegin:function(){var e=!this.state.skipBegin,t=new Date;t.setMonth(t.getMonth()+1),document.cookie="skip="+ +e+";path=/;domain=.ezijing.com;expires="+t.toGMTString(),e&&this.$refs.video&&this.$refs.video.skipBegin(),this.state.skipBegin=e},onVideoTimeChange:function(e){var t=e.time;this.videoFlash.speed=parseFloat(e.quality.split(" ")[1]||1),this.videoFlash.isSeek=e.isSeek,this.videoFlash.lastTime!==t&&(this.videoFlash.lastTime=t,this.isPlaying=!0,e.isSeek||this.videoFlash.queueFrames.push(t),this.setPptIndexByTime(t),this.$emit("handlePlayTime",t))},onVideoPlayFinish:function(e){if(this.chapterVideo){if(this._rProgress&&this._rProgress.id);else{this._rProgress=p.default.assignIn({},this.chapterVideo.progress);for(var t=[],i=this.chapterVideo.video_length||1,s=0;s<i;s++)t.push(0);this.videoFlash.mapFrames=this._rProgress.map.length?this._rProgress.map:t,this._rProgress.map=this.videoFlash.mapFrames}this._rProgress.pt+10*this.videoFlash.speed>=e.time&&(this.isPlaying=!0,this.hearBeatFunc(r))}},setPptIndexByTime:function(e){for(var t=this.ppts||[],i=0;i<t.length&&!(e<t[i].ppt_point);i++);this.state.pptIndex!==i-1&&(this.state.pptIndex=i-1)},setVideoTime:function(e){this.$refs.video&&this.$refs.video.setTimeTo(e)},jdugeSize:function(){var e=this.$refs.box,t=this.getCalculateSize(),i=0,s=0;this.state.pptBoxOnly?(s=t.ppt.w,i=t.ppt.h,this.$refs.ppt&&this.$refs.ppt.setSize(s,i)):this.state.pptBoxShow?(this.$refs.ppt&&this.$refs.ppt.setSize(t.ppt.w,t.ppt.h),this.$refs.video&&this.$refs.video.setSize(t.video.w,t.video.h),s=t.ppt.w+t.video.w,i=t.video.h):(s=t.video.w,i=t.video.h,this.$refs.video&&this.$refs.video.setSize(s,i)),this.state.calculatedSize=!0,e.style.paddingLeft=(t.space.w-s)/2+15+"px",e.style.paddingTop=(t.space.h-i)/2+10+"px"},getCalculateSize:function(){var e=this.$refs.container,t=e.offsetWidth-30,i=e.offsetHeight-53-20,s=550/363,a=336/236,n={space:{w:t,h:i},video:{w:0,h:0},ppt:{w:0,h:0}};if(this.state.pptBoxOnly)n.ppt.w=t<i*a?t:i*a,n.ppt.h=i<t/a?i:t/a;else if(this.state.pptBoxShow){var r=t/2,o=r<i*s?r:i*s,l=i<r/s?i:r/s,p=l,d=p*a;n.video.w=o,n.video.h=l,n.ppt.w=d,n.ppt.h=p}else n.video.w=t<i*s?t:i*s,n.video.h=i<t/s?i:t/s;return n},hearBeatFunc:function(e){if(this.chapterVideo&&this.isPlaying){if(this._rProgress&&this._rProgress.id);else{this._rProgress=p.default.assignIn({},this.chapterVideo.progress);for(var t=[],i=this.chapterVideo.video_length||1,s=0;s<i;s++)t.push(0);this.videoFlash.mapFrames=this._rProgress.map.length?this._rProgress.map:t,this._rProgress.map=this.videoFlash.mapFrames}var a=this._rProgress,n=this.videoFlash.lastTime,r=this.videoFlash.speed,o=this.videoFlash.isSeek,l=this.videoFlash.queueFrames;0===a.cpt&&0===a.mpt&&0===a.pt&&/skip=1/.test(document.cookie)&&(a.pt=7),o||(a.pt+=e/1e3*r,a.cpt=n,a.mpt=n>a.mpt?n:a.mpt,a.ps=l,this.$emit("updateProgress",this._rProgress)),this.isPlaying=!1}},createHeartTime:function(e){var t=this,i=e||1e4;this.destroyHeartTime(),this.hearBeat=setInterval(function(){t.hearBeatFunc(i)},i)},destroyHeartTime:function(){this.hearBeat&&clearInterval(this.hearBeat)}}}},358:function(e,t,i){"use strict";i.r(t);var s=i(359),a=i.n(s);for(var n in s)"default"!==n&&function(e){i.d(t,e,function(){return s[e]})}(n);t.default=a.a},359:function(e,n,r){"use strict";(function(s){Object.defineProperty(n,"__esModule",{value:!0});var e,t=r(270),p=(e=t)&&e.__esModule?e:{default:e};var a="playerWrap",i=0;n.default={props:{lastTime:{type:Number,require:!1},videoId:{type:String,require:!1},width:{type:Number,require:!1},height:{type:Number,require:!1},username:{type:String,require:!1},videoSrt:{type:String,require:!1},autoPlay:{type:Boolean,require:!1,default:!0},chapterVideo:{type:Object,require:!1}},mounted:function(){this.definWindowFun()},watch:{videoId:{handler:function(){this.videoId&&(i=this.lastTime||0,this.renderPlayer("player",this.videoId,this.autoPlay,this.videoSrt,this.username,this.width,this.height))}}},methods:{definWindowFun:function(){var t=this;window._playerStart=function(){/skip=1/.test(document.cookie)?t.getPlayer().callAction("setCurrentTime",Math.max(i,7)):i&&t.getPlayer().callAction("setCurrentTime",i)},window._playerIng=function(e){s("#"+a).trigger("player.time",{time:e,quality:t.getPlayer().callAction("getQuality"),isSeek:!1})},window._playerSeek=function(){s("#"+a).trigger("player.seek",{time:t.getPlayer().callAction("getCurrentTime"),quality:t.getPlayer().callAction("getQuality"),isSeek:!0})},window._playerFinish=function(){t.$emit("handlePlayfinish",{time:t.getPlayer().callAction("getDuration")})},window._playerCallback=function(){var e=t.getPlayer();e&&(e.callAction("register","onCanplay","_playerStart"),e.callAction("register","onPlaying","_playerIng"),e.callAction("register","onSeekComplete","_playerSeek"),e.callAction("register","onEnded","_playerFinish"))}},renderPlayer:function(e,t,i,s,a,n,r){var o={autoStart:i=void 0===i?1:i-0,vid:t,isShowSpeeder:1,videoType:1,callback:"_playerCallback"};s&&(o.srtUrl=s),a&&(o.username=a);var l={id:e,name:e,align:"middle",wmode:"opaque"};p.default.embedSWF("/static/videoJs/swf/Player1705192.swf",e,parseInt(n),parseInt(r),"11.1.0","playerProductInstall.swf",o,{quality:"high",bgcolor:"#000000",allowscriptaccess:"always",allowfullscreen:"true"},l),this.listenPlayerEvents()},listenPlayerEvents:function(){var i=this;s("#"+a).off("player.time player.seek").on("player.time player.seek",function(e,t){i.$emit("handlePlayTime",t)})},getPlayer:function(){return document.getElementById("player")},getTime:function(){var e=this.getPlayer();return e?e.callAction("getCurrentTime"):0},setTimeTo:function(e){var t=this.getPlayer();t&&t.callAction("setCurrentTime",e+2)},skipBegin:function(){var e=this.getPlayer();e&&e.callAction("getCurrentTime")<7&&e.callAction("setCurrentTime",7)},setSize:function(e,t){var i=this.getPlayer();i&&(i.width=e,i.height=t)}}}}).call(this,r(390))},360:function(e,t,i){},361:function(e,t,i){"use strict";i.r(t);var s=i(362),a=i.n(s);for(var n in s)"default"!==n&&function(e){i.d(t,e,function(){return s[e]})}(n);t.default=a.a},362:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{ppts:{type:Array,require:!1},currentIndex:{type:Number,require:!1,default:0}},data:function(){return{state:{index:this.currentIndex,sync:!0}}},watch:{currentIndex:{handler:function(){this.state.sync&&(this.state.index=this.currentIndex)}}},methods:{gotoIndex:function(e){this.state.index=e},getIndex:function(e){return Math.min(this.ppts.length-1,Math.max(0,e))},prev:function(e){this.state.index=this.getIndex(this.state.index-1),this.state.sync=!1},next:function(e){this.state.index=this.getIndex(this.state.index+1),this.state.sync=!1},onToggleSync:function(e){this.state.sync=!this.state.sync,this.state.index=this.state.sync?this.currentIndex:this.state.index},onSetVideoTime:function(e){this.$emit("onVideoSyncTime",this.ppts[this.state.index].ppt_point)},setSize:function(e,t){this.$refs.wrap.style.width=e+"px",this.$refs.wrap.style.height=t+"px",this.$refs.preview.style.lineHeight=t-44+"px"}}}},415:function(e,t,i){"use strict";i.r(t);var s=i(457),a=i(358);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);i(416);var r=i(1),o=Object(r.a)(a.default,s.a,s.b,!1,null,"dced0884",null);o.options.__file="video.vue",t.default=o.exports},416:function(e,t,i){"use strict";var s=i(360);i.n(s).a},417:function(e,t,i){"use strict";i.r(t);var s=i(461),a=i(361);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var r=i(1),o=Object(r.a)(a.default,s.a,s.b,!1,null,null,null);o.options.__file="ppt.vue",t.default=o.exports},456:function(e,t,i){"use strict";var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"container",staticClass:"play-content-video"},[i("div",{ref:"box",staticClass:"play-center"},[e.chapterVideo?[i("div",{class:["play-video",e.state.pptBoxOnly?"play-video-hide":"",e.state.calculatedSize?"":"play-video-init-center"]},[i("e-video",{ref:"video",attrs:{lastTime:parseFloat(e.chapterVideo.progress&&e.chapterVideo.progress.pt||0),width:e.videoFlash.videoWidth,height:e.videoFlash.videoHeight,username:e.videoFlash.username,videoId:e.chapterVideo.video_origionalID,videoSrt:e.chapterVideo.video_subtitle||"",chapterVideo:e.chapterVideo},on:{handlePlayTime:e.onVideoTimeChange,handlePlayfinish:e.onVideoPlayFinish}})],1),e._v(" "),i("div",{class:["play-jiangyi",e.state.pptBoxShow?"":"hide"]},[e.ppts.length?[i("e-ppt",{ref:"ppt",attrs:{ppts:e.ppts,currentIndex:e.state.pptIndex},on:{onVideoSyncTime:e.setVideoTime,onPptOnly:e.togglePptBoxOnly,onClose:e.togglePptBox}})]:e._e()],2)]:[i("p",[e._v("课程视频数据不存在")])]],2),e._v(" "),i("div",{staticClass:"play-footer"},[i("div",{staticClass:"fl"}),e._v(" "),i("div",{staticClass:"fr"},[e.chapterVideo.pdf?[i("em",{staticClass:"play-state play-state-ppt"},[i("a",{attrs:{href:e.chapterVideo.pdf,target:"_blank"}},[e._v("下载PPT")])])]:e._e(),e._v(" "),e.ppts.length?[i("em",{class:["play-state","play-state-ppt"+(e.state.pptBoxShow?"-active":"")],on:{click:e.togglePptBox}},[e._v("同步显示PPT")])]:e._e(),e._v(" "),i("em",{class:["play-state","play-state-check"+(e.state.skipBegin?"-active":"")],on:{click:e.toggleSkipBegin}},[e._v("始终跳过片头")])],2)])])},a=[];i.d(t,"a",function(){return s}),i.d(t,"b",function(){return a})},457:function(e,t,i){"use strict";var s=function(){var e=this.$createElement;this._self._c;return this._m(0)},a=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"playerWrap"}},[t("div",{attrs:{id:"player"}},[t("p",[this._v("您还没有安装flash播放器,请 "),t("a",{attrs:{href:"http://www.adobe.com/go/getflash",target:"_blank"}},[this._v("点击这里安装")])])])])}];i.d(t,"a",function(){return s}),i.d(t,"b",function(){return a})},461:function(e,t,i){"use strict";var s=function(){var e=this,t=this,i=t.$createElement,s=t._self._c||i;return s("div",{ref:"wrap",staticClass:"play-ppt"},[t.ppts.length?[s("div",{ref:"preview",staticClass:"play-preview"},[t.ppts[t.state.index]&&t.ppts[t.state.index].ppt_url?[s("img",{staticClass:"play-ppt-img",staticStyle:{"vertical-align":"middle"},attrs:{src:t.ppts[t.state.index].ppt_url}})]:t._e()],2),t._v(" "),s("div",{staticClass:"play-controls cl"},[s("div",{staticStyle:{float:"left"}},[0<=t.state.index?[s("a",{staticStyle:{margin:"0 20px 0 0",color:"#fff"},attrs:{href:"#"},on:{click:t.prev}},[s("i",{staticClass:"el-icon-arrow-left"})])]:t._e(),t._v(" "),t.state.index+1<t.ppts.length?[s("a",{attrs:{href:"#"},on:{click:t.next}},[s("i",{staticClass:"el-icon-arrow-right",staticStyle:{color:"#fff"}})])]:t._e()],2),t._v(" "),s("div",{staticClass:"play-page"},[s("span",{staticClass:"play-now"},[t._v(t._s(t.state.index+1))]),t._v("\n /\n "),s("span",{staticClass:"play-total"},[t._v(t._s(t.ppts.length))]),t._v("页\n ")]),t._v(" "),s("div",{staticClass:"play-amazing"},[s("i",{class:["el-icon-self-xuexiao",t.state.sync?"active":""],on:{click:t.onToggleSync}}),t._v(" "),s("i",{staticClass:"el-icon-self-quanping",on:{click:function(){e.$emit("onPptOnly")}}}),t._v(" "),s("i",{staticClass:"el-icon-self-shipin",on:{click:t.onSetVideoTime}}),t._v(" "),s("i",{staticClass:"el-icon-self-guanbi",on:{click:function(){e.$emit("onClose")}}})])])]:t._e()],2)},a=[];i.d(t,"a",function(){return s}),i.d(t,"b",function(){return a})}}]);
\ No newline at end of file \ No newline at end of file
!function(d){function e(e){for(var t,r,n=e[0],a=e[1],c=e[2],o=0,f=[];o<n.length;o++)r=n[o],b[r]&&f.push(b[r][0]),b[r]=0;for(t in a)Object.prototype.hasOwnProperty.call(a,t)&&(d[t]=a[t]);for(p&&p(e);f.length;)f.shift()();return i.push.apply(i,c||[]),u()}function u(){for(var e,t=0;t<i.length;t++){for(var r=i[t],n=!0,a=1;a<r.length;a++){var c=r[a];0!==b[c]&&(n=!1)}n&&(i.splice(t--,1),e=s(s.s=r[0]))}return e}var r={},l={3:0},b={3:0},i=[];function s(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return d[e].call(t.exports,t,t.exports,s),t.l=!0,t.exports}s.e=function(i){var e=[];l[i]?e.push(l[i]):0!==l[i]&&{0:1,5:1,6:1,7:1,8:1,9:1,10:1,11:1,12:1,13:1,14:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1}[i]&&e.push(l[i]=new Promise(function(e,n){for(var t="resources/"+({}[i]||i)+"."+{0:"7e9c19881242",1:"31d6cfe0d16a",5:"b6a10460f085",6:"a61eeadc0781",7:"b7a3b3beb3de",8:"edadd3d1dece",9:"2b76410db4d0",10:"30b36ab56f09",11:"7275abdd54ff",12:"eeb0f72f9597",13:"03a7345988fb",14:"7bd34c9db226",15:"fc688477e0f2",16:"9c95c5430f41",17:"081b63b62922",18:"53c51a584a84",19:"4b2c45ab9433",20:"641889583a71",21:"abf993cecc16",22:"db6edaa9662f",23:"5ba1b1bc7480",24:"43ee51cf782c",25:"12c536f6abaf",26:"31d6cfe0d16a",27:"31d6cfe0d16a",28:"31d6cfe0d16a",29:"31d6cfe0d16a",30:"31d6cfe0d16a",31:"31d6cfe0d16a",32:"31d6cfe0d16a",33:"31d6cfe0d16a"}[i]+".css",a=s.p+t,r=document.getElementsByTagName("link"),c=0;c<r.length;c++){var o=(d=r[c]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(o===t||o===a))return e()}var f=document.getElementsByTagName("style");for(c=0;c<f.length;c++){var d;if((o=(d=f[c]).getAttribute("data-href"))===t||o===a)return e()}var u=document.createElement("link");u.rel="stylesheet",u.type="text/css",u.onload=e,u.onerror=function(e){var t=e&&e.target&&e.target.src||a,r=new Error("Loading CSS chunk "+i+" failed.\n("+t+")");r.request=t,delete l[i],u.parentNode.removeChild(u),n(r)},u.href=a,document.getElementsByTagName("head")[0].appendChild(u)}).then(function(){l[i]=0}));var t,r=b[i];if(0!==r)if(r)e.push(r[2]);else{var n=new Promise(function(e,t){r=b[i]=[e,t]});e.push(r[2]=n);var a,c=document.getElementsByTagName("head")[0],o=document.createElement("script");o.charset="utf-8",o.timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.src=s.p+"resources/"+({}[t=i]||t)+"."+{0:"ce816893",1:"46d7f9f3",5:"838bc7b4",6:"bb949c0e",7:"91ffbfb3",8:"8069cfef",9:"fb4debab",10:"79cec249",11:"ab2ede65",12:"548c02eb",13:"ccf7cf48",14:"46fd8cda",15:"c478c99e",16:"c5e6147d",17:"83f61edd",18:"232243a4",19:"3454611c",20:"63c8f020",21:"b3bed3b3",22:"9bf4b6ec",23:"9808c0a1",24:"a7d17575",25:"00dcbb9d",26:"6c9facdb",27:"c4252e04",28:"02e3da72",29:"ca65a5d7",30:"afe88874",31:"89910775",32:"3c83e649",33:"912ce55b"}[t]+".js",a=function(e){o.onerror=o.onload=null,clearTimeout(f);var t=b[i];if(0!==t){if(t){var r=e&&("load"===e.type?"missing":e.type),n=e&&e.target&&e.target.src,a=new Error("Loading chunk "+i+" failed.\n("+r+": "+n+")");a.type=r,a.request=n,t[1](a)}b[i]=void 0}};var f=setTimeout(function(){a({type:"timeout",target:o})},12e4);o.onerror=o.onload=a,c.appendChild(o)}return Promise.all(e)},s.m=d,s.c=r,s.d=function(e,t,r){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)s.d(r,n,function(e){return t[e]}.bind(null,n));return r},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/",s.oe=function(e){throw console.error(e),e};var t=window.webpackJsonp=window.webpackJsonp||[],n=t.push.bind(t);t.push=e,t=t.slice();for(var a=0;a<t.length;a++)e(t[a]);var p=n;u()}([]); !function(d){function e(e){for(var t,r,n=e[0],a=e[1],c=e[2],o=0,f=[];o<n.length;o++)r=n[o],b[r]&&f.push(b[r][0]),b[r]=0;for(t in a)Object.prototype.hasOwnProperty.call(a,t)&&(d[t]=a[t]);for(p&&p(e);f.length;)f.shift()();return i.push.apply(i,c||[]),u()}function u(){for(var e,t=0;t<i.length;t++){for(var r=i[t],n=!0,a=1;a<r.length;a++){var c=r[a];0!==b[c]&&(n=!1)}n&&(i.splice(t--,1),e=s(s.s=r[0]))}return e}var r={},l={3:0},b={3:0},i=[];function s(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return d[e].call(t.exports,t,t.exports,s),t.l=!0,t.exports}s.e=function(i){var e=[];l[i]?e.push(l[i]):0!==l[i]&&{0:1,5:1,6:1,7:1,8:1,9:1,10:1,11:1,12:1,13:1,14:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1}[i]&&e.push(l[i]=new Promise(function(e,n){for(var t="resources/"+({}[i]||i)+"."+{0:"7e9c19881242",1:"31d6cfe0d16a",5:"b6a10460f085",6:"a61eeadc0781",7:"b7a3b3beb3de",8:"edadd3d1dece",9:"2b76410db4d0",10:"30b36ab56f09",11:"7275abdd54ff",12:"eeb0f72f9597",13:"03a7345988fb",14:"7bd34c9db226",15:"fc688477e0f2",16:"9c95c5430f41",17:"081b63b62922",18:"53c51a584a84",19:"4b2c45ab9433",20:"641889583a71",21:"abf993cecc16",22:"db6edaa9662f",23:"5ba1b1bc7480",24:"43ee51cf782c",25:"12c536f6abaf",26:"31d6cfe0d16a",27:"31d6cfe0d16a",28:"31d6cfe0d16a",29:"31d6cfe0d16a",30:"31d6cfe0d16a",31:"31d6cfe0d16a",32:"31d6cfe0d16a",33:"31d6cfe0d16a"}[i]+".css",a=s.p+t,r=document.getElementsByTagName("link"),c=0;c<r.length;c++){var o=(d=r[c]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(o===t||o===a))return e()}var f=document.getElementsByTagName("style");for(c=0;c<f.length;c++){var d;if((o=(d=f[c]).getAttribute("data-href"))===t||o===a)return e()}var u=document.createElement("link");u.rel="stylesheet",u.type="text/css",u.onload=e,u.onerror=function(e){var t=e&&e.target&&e.target.src||a,r=new Error("Loading CSS chunk "+i+" failed.\n("+t+")");r.request=t,delete l[i],u.parentNode.removeChild(u),n(r)},u.href=a,document.getElementsByTagName("head")[0].appendChild(u)}).then(function(){l[i]=0}));var t,r=b[i];if(0!==r)if(r)e.push(r[2]);else{var n=new Promise(function(e,t){r=b[i]=[e,t]});e.push(r[2]=n);var a,c=document.getElementsByTagName("head")[0],o=document.createElement("script");o.charset="utf-8",o.timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.src=s.p+"resources/"+({}[t=i]||t)+"."+{0:"ce816893",1:"46d7f9f3",5:"838bc7b4",6:"bb949c0e",7:"91ffbfb3",8:"8069cfef",9:"fb4debab",10:"79cec249",11:"8760138f",12:"548c02eb",13:"ccf7cf48",14:"46fd8cda",15:"c478c99e",16:"c5e6147d",17:"83f61edd",18:"232243a4",19:"3454611c",20:"63c8f020",21:"b3bed3b3",22:"9bf4b6ec",23:"9808c0a1",24:"a7d17575",25:"00dcbb9d",26:"6c9facdb",27:"c4252e04",28:"02e3da72",29:"ca65a5d7",30:"afe88874",31:"89910775",32:"3c83e649",33:"912ce55b"}[t]+".js",a=function(e){o.onerror=o.onload=null,clearTimeout(f);var t=b[i];if(0!==t){if(t){var r=e&&("load"===e.type?"missing":e.type),n=e&&e.target&&e.target.src,a=new Error("Loading chunk "+i+" failed.\n("+r+": "+n+")");a.type=r,a.request=n,t[1](a)}b[i]=void 0}};var f=setTimeout(function(){a({type:"timeout",target:o})},12e4);o.onerror=o.onload=a,c.appendChild(o)}return Promise.all(e)},s.m=d,s.c=r,s.d=function(e,t,r){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)s.d(r,n,function(e){return t[e]}.bind(null,n));return r},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/",s.oe=function(e){throw console.error(e),e};var t=window.webpackJsonp=window.webpackJsonp||[],n=t.push.bind(t);t.push=e,t=t.slice();for(var a=0;a<t.length;a++)e(t[a]);var p=n;u()}([]);
\ No newline at end of file \ No newline at end of file
...@@ -120,7 +120,7 @@ export default { ...@@ -120,7 +120,7 @@ export default {
this.resizeVideo = _.debounce(this.jdugeSize.bind(this), 200) this.resizeVideo = _.debounce(this.jdugeSize.bind(this), 200)
} }
/* 延迟计算尺寸,因flash初始化需要时间 */ /* 延迟计算尺寸,因flash初始化需要时间 */
setTimeout(this.jdugeSize, 300) setTimeout(this.jdugeSize, 600)
/* 窗口resize,重置大小 */ /* 窗口resize,重置大小 */
window.addEventListener('resize', this.resizeVideo) window.addEventListener('resize', this.resizeVideo)
/* 增加 心跳 记录 视频学习时间 */ /* 增加 心跳 记录 视频学习时间 */
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论