System.register(["./chunk-legacy-BIshA-mD.js","./chunk-legacy-CQt0kJlv.js","./souav-legacy-ptBXoxNy.js"],function(e){"use strict";var t,o,i;return{setters:[e=>{t=e.D},e=>{o=e.H},e=>{i=e.C}],execute:function(r,s){class a{static initPlayer(e,r){let s;const l={theme:"#f21c11",loop:!1,lang:"zh-cn",screenshot:!1,hotkey:!0,preload:"auto",volume:.7,mutex:!0,container:document.getElementById(e),autoplay:!1,video:{url:r,type:"hls"}};s=new t(l);const n=s.video;try{const e=!!window.MediaSource;if(o.isSupported()&&e||i.isQQBrowser()||i.isSogouBrowser()){const e=new o({maxBufferLength:60,maxMaxRetry:5,maxRetry:3,retryDelay:1e3,maxRetryDelay:5e3,backoff:"exponential"});e.loadSource(r),e.attachMedia(n)}else n.canPlayType("application/vnd.apple.mpegurl")&&(n.src=r);a.updateVideoControls(n)}catch(e){n.canPlayType("application/vnd.apple.mpegurl")&&(n.src=r,a.updateVideoControls(n))}return s}static updateVideoControls(e){a.setVideoAttrs(e),a.hideVideoControls(".dplayer-notice-list"),a.hideVideoControls(".dplayer-comment"),a.hideVideoControls(".dplayer-setting-danunlimit"),a.hideVideoControls(".dplayer-setting-showdan"),a.hideVideoControls(".dplayer-setting-danmaku")}static setVideoAttrs(e){e.muted=!0,e.setAttribute("raw-controls",""),e.setAttribute("preload",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("playsinline",""),e.setAttribute("x5-playsinline",""),e.setAttribute("x5-video-player-fullscreen",""),e.setAttribute("x5-video-player-type","h5-page"),e.setAttribute("x5-video-player-orientation","portrait"),e.setAttribute("t7-video-player-type","inline"),e.setAttribute("disablepictureinpicture",""),e.setAttribute("controlslist","nodownload"),e.setAttribute("x-webkit-airplay","allow"),e.setAttribute("preload","metadata"),e.setAttribute("controls360","no")}static hideVideoControls(e){let t=document.querySelector(e);t&&(t.style.display="none")}static showVideoControls(e){let t=document.querySelector(e);t&&(t.style.display="block")}}e("D",a)}}});
