(window.webpackJsonp=window.webpackJsonp||[]).push([[42],{284:function(e,i,t){"use strict";t.r(i);var n=t(470),o=t(400);for(var r in o)"default"!==r&&function(e){t.d(i,e,(function(){return o[e]}))}(r);var d=t(7),l=Object(d.a)(o.default,n.a,n.b,!1,null,"002b22f6",null);l.options.__file="src/pages/player/live/live.vue",i.default=l.exports},400:function(e,i,t){"use strict";t.r(i);var n=t(401),o=t.n(n);for(var r in n)"default"!==r&&function(e){t.d(i,e,(function(){return n[e]}))}(r);i.default=o.a},401:function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n,o=t(113),r=(n=o)&&n.__esModule?n:{default:n};i.default={props:{sid:{type:String,require:!1},cid:{type:String,require:!1},id:{type:String,require:!1}},data:function(){return{live:{},ccLive:null}},mounted:function(){this.loadAjax()},destroyed:function(){window.document.getElementById("switch-btn")&&(window.document.getElementById("switch-btn").style.display="block",window.document.getElementById("sys-help").style.display="none",window.document.getElementById("sys-callback").style.display="none"),this.ccLive&&this.ccLive.logout({success:function(e){},error:function(e){}})},methods:{loadAjax:function(){var e=this,i=this.$loading({lock:!0,text:"",spinner:"",background:"rgba(255, 255, 255, 0.9)"});r.default.Player.getChapterList(this.cid,this.sid,this.id).then((function(t){e.live=t.curJson&&t.curJson.live||{},e.live.id&&(e.live.record_id&&103===e.live.live_status?e.live.url="https://view.csslcloud.net/api/view/callback?recordid="+e.live.record_id+"&roomid="+e.live.room_id+"&userid="+e.live.user_id+"&autoLogin=true&viewername="+e.live.viewer_name+"&viewertoken="+e.live.viewer_token:(e.$emit("changeSideBar",""),setTimeout((function(){window.document.getElementById("switch-btn")&&(window.document.getElementById("switch-btn").style.display="none",window.document.getElementById("sys-help").style.display="block",window.document.getElementById("sys-callback").style.display="block")}),1e3),e.live.viewer_name=window.G.UserInfo.student_info.personal_name||window.G.UserInfo.nickname,e.live.url="https://view.csslcloud.net/api/view/index?roomid="+e.live.room_id+"&userid="+e.live.user_id+"&autoLogin=true&viewername="+e.live.viewer_name+"&viewertoken="+e.live.viewer_token),e.CCLiveInit(e.live)),i.close()})).catch((function(i){e.$message.error(i.message)})).finally((function(){}))},CCLiveInit:function(e){window.DWLive.init({userid:e.user_id,roomid:e.room_id,viewername:e.viewer_name,viewertoken:e.viewer_token}),this.ccLive=window.DWLive}},watch:{id:{handler:function(){this.loadAjax()}}}}},470:function(e,i,t){"use strict";t.d(i,"a",(function(){return n})),t.d(i,"b",(function(){return o}));var n=function(){var e=this.$createElement;return(this._self._c||e)("iframe",{attrs:{id:"myIframe",src:this.live.url,frameborder:"0",width:"100%",height:"100%",allow:"autoplay;geolocation;microphone;camera;midi;encrypted-media;"}})},o=[];n._withStripped=!0}}]);