FastBee/docker/data/nginx/vue/static/js/chunk-24c338f0.5322e4e6.js

1 line
6.4 KiB
JavaScript
Raw Permalink Normal View History

2025-07-07 09:21:15 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-24c338f0"],{"2cf42":function(e,n,t){},"3b3a":function(e,n,t){"use strict";t.r(n);var o=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{ref:"container",staticStyle:{width:"100%",height:"100%","background-color":"#000000",margin:"0 auto"},on:{dblclick:e.fullscreenSwich}},[t("div",{staticClass:"buttons-box",attrs:{id:"buttonsBox"}},[t("div",{staticClass:"buttons-box-left"},[e.playing?e._e():t("i",{staticClass:"iconfont icon-play jessibuca-btn",on:{click:e.playBtnClick}}),e.playing?t("i",{staticClass:"iconfont icon-pause jessibuca-btn",on:{click:e.pause}}):e._e(),t("i",{staticClass:"iconfont icon-stop jessibuca-btn",on:{click:e.destroy}}),e.isNotMute?t("i",{staticClass:"iconfont icon-audio-high jessibuca-btn",on:{click:function(n){return e.mute()}}}):e._e(),e.isNotMute?e._e():t("i",{staticClass:"iconfont icon-audio-mute jessibuca-btn",on:{click:function(n){return e.cancelMute()}}})]),t("div",{staticClass:"buttons-box-right"},[t("span",{staticClass:"jessibuca-btn"},[e._v(e._s(e.kBps)+" kb/s")]),t("i",{staticClass:"iconfont icon-camera1196054easyiconnet jessibuca-btn",staticStyle:{"font-size":"1rem !important"},on:{click:e.screenshot}}),t("i",{staticClass:"iconfont icon-shuaxin11 jessibuca-btn",on:{click:e.playBtnClick}}),e.fullscreen?e._e():t("i",{staticClass:"iconfont icon-weibiaoti10 jessibuca-btn",on:{click:e.fullscreenSwich}}),e.fullscreen?t("i",{staticClass:"iconfont icon-weibiaoti11 jessibuca-btn",on:{click:e.fullscreenSwich}}):e._e()])])])},i=[],s=t("c7eb"),c=t("1da1"),u={},a={name:"jessibuca",data:function(){return{playing:!1,isNotMute:!1,quieting:!1,fullscreen:!1,loaded:!1,speed:0,performance:"",kBps:0,btnDom:null,videoInfo:null,volume:1,rotate:0,vod:!0,forceNoOffscreen:!1}},props:["videoUrl","error","hasAudio","height"],mounted:function(){var e=this;window.onerror=function(e){},console.log(this._uid);var n=decodeURIComponent(this.$route.params.url);this.$nextTick((function(){e.updatePlayerDomSize(),window.onresize=function(){e.updatePlayerDomSize()},"undefined"==typeof e.videoUrl&&(e.videoUrl=n),e.btnDom=document.getElementById("buttonsBox"),console.log("初始化时的地址为: "+e.videoUrl),e.play(e.videoUrl)}))},watch:{videoUrl:function(e,n){this.play(e)},immediate:!0},methods:{updatePlayerDomSize:function(){var e=this.$refs.container,n=e.parentNode.clientWidth,t=9/16*n,o=Math.min(document.body.clientHeight,document.documentElement.clientHeight);t>o&&(t=o,n=16/9*t),e.style.width=n+"px",e.style.height=t+"px"},create:function(){var e={};console.log("hasAudio "+this.hasAudio),u[this._uid]=new window.JessibucaPro(Object.assign({container:this.$refs.container,autoWasm:!0,background:"",controlAutoHide:!1,debug:!1,decoder:"/js/jessibuca-pro/decoder-pro.js",forceNoOffscreen:!0,hasAudio:"undefined"==typeof this.hasAudio||this.hasAudio,hasVideo:!0,heartTimeout:5,heartTimeoutReplay:!0,heartTimeoutReplayTimes:3,hiddenAutoPause:!1,hotKey:!1,isFlv:!1,isFullResize:!1,isNotMute:this.isNotMute,isResize:!1,keepScreenOn:!1,loadingText:"请稍等, 视频加载中......",loadingTimeout:10,loadingTimeoutReplay:!0,loadingTimeoutReplayTimes:3,openWebglAlignment:!1,operateBtns:{fullscreen:!1,screenshot:!1,play:!1,audio:!1,record:!1},recordType:"webm",rotate:0,showBandwidth:!1,supportDblclickFullscreen:!1,timeout:10,useMSE:"localhost"!==location.hostname&&"https:"!==location.protocol,useOffscreen:!1,useWCS:"localhost"===location.hostname||"https"===location.protocol,useWebFullScreen:!1,videoBuffer:0,wasmDecodeAudioSyncVideo:!0,wasmDecodeErrorReplay:!0,wcsUseVideoRender:!0},e));var n=u[this._uid],t=this;n.on("load",(function(){console.log("on load init")})),n.on("log",(function(e){console.log("on log",e)})),n.on("record",(function(e){console.log("on record:",e)})),n.on("pause",(function(){t.playing=!1})),n.on("play",(function(){t.playing=!0})),n.on("fullscreen",(function(e){console.log("on fullscreen",e),t.fullscreen=e})),n.on("mute",(function(e){console.log("on mute",e),t.isNotMute=!e})),n.on("audioInfo",(function(e){console.log("audioInfo",e)}))