(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{297:function(e,i,t){"use strict";t.r(i);var n=t(516),o=t(411);for(var r in o)"default"!==r&&function(e){t.d(i,e,function(){return o[e]})}(r);var d=t(0),l=Object(d.a)(o.default,n.a,n.b,!1,null,"52d1ddcc",null);i.default=l.exports},411:function(e,i,t){"use strict";t.r(i);var n=t(412),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},412:function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n,o=t(48),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 i=this,t=this.$loading({lock:!0,text:"",spinner:"",background:"rgba(255, 255, 255, 0.9)"});r.default.chapterAction.getChapterList(this.cid,this.sid,this.id).then(function(e){i.live=e.curJson&&e.curJson.live||{},i.live.id&&(i.live.record_id&&103===i.live.live_status?i.live.url="https://view.csslcloud.net/api/view/callback?recordid="+i.live.record_id+"&roomid="+i.live.room_id+"&userid="+i.live.user_id+"&autoLogin=true&viewername="+i.live.viewer_name+"&viewertoken="+i.live.viewer_token:(i.$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),i.live.viewer_name=window.G.UserInfo.student_info.personal_name||window.G.UserInfo.nickname,i.live.url="https://view.csslcloud.net/api/view/index?roomid="+i.live.room_id+"&userid="+i.live.user_id+"&autoLogin=true&viewername="+i.live.viewer_name+"&viewertoken="+i.live.viewer_token),i.CCLiveInit(i.live)),t.close()}).catch(function(e){i.$message.error(e.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()}}}}},516:function(e,i,t){"use strict";function n(){var e=this,i=e.$createElement;return(e._self._c||i)("iframe",{attrs:{id:"myIframe",src:e.live.url,frameborder:"0",width:"100%",height:"100%",allow:"autoplay;geolocation;microphone;camera;midi;encrypted-media;"}})}var o=[];t.d(i,"a",function(){return n}),t.d(i,"b",function(){return o})}}]);