You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
42 KiB
1 line
42 KiB
11 months ago
|
function createRTCSessionDescription(t){return new RTCSessionDescription(t)}var gStrH5SPlayerVersion="h5splayer r12.0.0807";function H5sPlayerWS(t){this.sourceBuffer,this.buffer=[],this.t,this.video,this.s,this.i,this.o,this.h=0,this.l=0,this.u=0,this.S=!1,this.v=!1,this.C=!1,this.H,this.P=1,this.p=!0,void 0!==t.consolelog&&"false"===t.consolelog&&(this.p=!1),this.R=t,!0===this.p&&console.log("[WS] Websocket Conf:",t),this.k=t.videoid,this.T=t.pbconf,this.W=t.token,void 0===this.k?(this.m=t.videodom,!0===this.p&&console.log("[WS] use dom directly",t.token)):(this.m=document.getElementById(this.k),!0===this.p&&console.log("[WS] use videoid",t.token)),this.video=this.m,this.A,void 0!=this.T&&"false"==this.T.showposter||(this.A=this.R.protocol+"//"+this.R.host+this.R.rootpath+"api/v1/GetImage?token="+this.W+"&session="+this.R.session,!0===this.p&&console.log("[WS] connect src",t.token),this.m.setAttribute("poster",this.A))}function H5sPlayerRTC(t){this.s,this.o,this.S=!1,this.v=!1,this.p=!0,void 0!==t.consolelog&&"false"===t.consolelog&&(this.p=!1),this.R=t,this.k=t.videoid,this.T=t.pbconf,this.W=t.token,this.P=1,void 0===this.k?(this.m=t.videodom,!0===this.p&&console.log("[RTC] use dom directly",t.token)):(this.m=document.getElementById(this.k),!0===this.p&&console.log("[RTC] use videoid",t.token)),this.video=this.m,this.I=null,this.U={optional:[{DtlsSrtpKeyAgreement:!0}]},this.O={mandatory:{offerToReceiveAudio:!0,offerToReceiveVideo:!0}},this.M={iceServers:[]},this.N=[],this.A,void 0!=this.T&&"false"==this.T.showposter||(this.A=this.R.protocol+"//"+this.R.host+this.R.rootpath+"api/v1/GetImage?token="+this.W+"&session="+this.R.session,!0===this.p&&console.log("[WS] connect src",t.token),this.m.setAttribute("poster",this.A))}function H5sPlayerHls(t){this.s,this.o,this.R=t,this.k=t.videoid,this.W=t.token,this.g,this.J=t.hlsver,this.p=!0,void 0!==t.consolelog&&"false"===t.consolelog&&(this.p=!1),void 0===this.k?(this.m=t.videodom,!0===this.p&&console.log("[HLS] use dom directly",t.token)):(this.m=document.getElementById(this.k),!0===this.p&&console.log("[HLS] use videoid",t.token)),this.F=this.m,this.F.type="application/x-mpegURL",this.D=0,this._=0;var s=this.R.protocol+"//"+window.location.host+"/api/v1/GetImage?token="+this.W+"&session="+this.R.session;this.m.setAttribute("poster",s)}function H5sPlayerAudio(t){this.buffer=[],this.s,this.S=!1,this.v=!1,this.R=t,this.p=!0,void 0!==t.consolelog&&"false"===t.consolelog&&(this.p=!1),!0===this.p&&console.log("[AUD] Aduio Player Conf:",t),this.W=t.token,this.L=new AudioContext}function H5sPlayerAudBack(t){this.buffer=[],this.s,this.S=!1,this.v=!1,this.R=t,this.B=0,this.K=48e3,this.V=!1,this.p=!0,void 0!==t.consolelog&&"false"===t.consolelog&&(this.p=!1),!0===this.p&&console.log("[AUDBACK] Aduio Back Conf:",t),this.W=t.token,this.L=new AudioContext,!0===this.p&&console.log("[AUDBACK] sampleRate",this.L.sampleRate),this.G()}function float32ToInt16(t){for(var s=t.length,i=new Int16Array(s);s--;)i[s]=32767*Math.min(1,t[s]);return i}function H5sConference(t){this.s,this.o,this.S=!1,this.v=!1,this.j=!1,this.q,this.X,this.Y=!1,this.Z=!1,this.$,this.tt,this.st=[],this.it=[],this.p=!0,void 0!==t.consolelog&&"false"===t.consolelog&&(this.p=!1),void 0!==t.et&&"true"===t.et&&(this.Y=!0),void 0!==t.ot&&"true"===t.ot&&(this.Z=!0),this.R=t,void 0===t.localvideoid?(this.nt=t.localvideodom,!0===this.p&&console.log(t.token,"[CFE] local use dom directly")):(this.nt=document.getElementById(t.localvideoid),!0===this.p&&console.log(t.token,"[CFE] local use videoid")),void 0===t.remotevideoid?(this.ht=t.remotevideodom,!0===this.p&&console.log(t.token,"[CFE] remote use dom directly")):(this.ht=document.getElementById(t.remotevideoid),!0===this.p&&console.log(t.token,"[CFE] remote use videoid")),this.I=null,this.U={optional:[{DtlsSrtpKeyAgreement:!0}]},this.O={mandatory:{offerToReceiveAudio:!0,offerToReceiveVideo:!0,ct:!1}},this.M={iceServers:[]},this.N=[]}function makeLink(t,s,i){const e=new Blob(t,{type:"video/webm"}),o=window.URL.createObjectURL(e),n=document.createElement("a");n.style.display="none",
|