(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["personnel~sandtable"],{"143d":function(e,t,s){"use strict";var n=s("f2bf");function o(e,t,s,o,a,c){return s.code?(Object(n["openBlock"])(),Object(n["createElementBlock"])("video",{key:0,class:"hlsVideo",ref:"hlsVideo",autoplay:"",muted:"",style:Object(n["normalizeStyle"])("width:"+s.width+";height:"+s.height)},null,4)):Object(n["createCommentVNode"])("",!0)}var a=s("a14f"),c=(s("4b88"),s("6b0d")),i=s.n(c);const r=i()(a["a"],[["render",o],["__scopeId","data-v-17b2c9ad"]]);t["a"]=r},1632:function(e,t,s){"use strict";var n=s("f2bf"),o={class:"com-panel-sand"},a={class:"com-panel-sand-header font-sm white"},c={class:"com-panel-sand-sub-title font-sm gray"},i={class:"com-panel-body"};function r(e,t,s,r,l,d){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",o,[Object(n["createElementVNode"])("div",a,[Object(n["createTextVNode"])(Object(n["toDisplayString"])(s.title),1),Object(n["createElementVNode"])("span",c,Object(n["toDisplayString"])(s.subTitle),1)]),Object(n["createElementVNode"])("div",i,[Object(n["renderSlot"])(e.$slots,"default")])])}var l={name:"com-panel-sand",componentName:"com-panel-sand",props:{title:{type:String,default:""},subTitle:{type:String,default:""}}},d=(s("62ca"),s("6b0d")),u=s.n(d);const _=u()(l,[["render",r]]);t["a"]=_},"2e31":function(e,t,s){},"42a6":function(e,t,s){},"4b88":function(e,t,s){"use strict";s("42a6")},"62ca":function(e,t,s){"use strict";s("2e31")},a14f:function(module,__webpack_exports__,__webpack_require__){"use strict";var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("e9c4"),core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_0__);__webpack_exports__["a"]={name:"Hls",components:{},props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"},code:{type:String,default:""}},emits:{},data:function(){return{socket:null,isReady:!1,devs:[],hls:null,currDevCode:null}},methods:{_play:function(){if(Hls.isSupported()){var e=this;e.$nextTick((function(){var t=e.$refs.hlsVideo;e.hls&&e.hls.destroy(),t.volume=1,e.hls=new Hls,e.hls.on(Hls.Events.MANIFEST_PARSED,(function(){e.$refs.video.play()})),e.hls.loadSource("http://192.168.1.18:1935/hls/".concat(e.code,"/index.m3u8")),e.hls.attachMedia(t)}))}},onReady:function(){this.send({action:"loadDevs"})},onDevChoosed:function(e){this.currDevCode=this.devs[e].code,this._play()},onMessage:function onMessage(data){var result=eval(data);"fail"===result.code?result.message?this.$message.error(result.message):this.$message.error("操作失败"):"loadDevs"==result.action&&(this.devs=result.object),console.log("result",result)},send:function(e){this.isReady?this.socket.send(JSON.stringify(e)):alert("this socket is not ready!")}},beforeCreate:function(){},created:function(){var e=this;window.WebSocket&&(e.socket=new WebSocket("ws://"+window.location.host+"/api.ws"),e.socket.onopen=function(){e.isReady=1==e.socket.readyState,e.onReady()},e.socket.onmessage=function(t){var s=JSON.parse(t.data);e.onMessage(s)},e.socket.onclose=function(t){e.isReady=!1},e._play())},beforeMount:function(){},mounted:function(){},beforeUpdate:function(){},updated:function(){},watch:{code:function(){this._play()}}}}}]); //# sourceMappingURL=personnel~sandtable.df5b9bef.js.map