xdlumia / vue3-video-play

适用于 Vue3 的 hls.js 播放器组件,配置丰富,界面还算好看
https://codelife.cc/vue3-video-play/
581 stars 96 forks source link

problem change navigator #81

Open dbrab opened 1 year ago

dbrab commented 1 year ago

I had a problem with the player after changing the browser, for some reason the video and audio fragments were not loaded, apparently it was because of this line

  if (state.dVideo.canPlayType(props.type) || state.dVideo.canPlayType('application/vnd.apple.mpegurl')) {
    state.muted = props.autoPlay
    // state.dVideo.load();
  }

Currently I omitted the line, but I suggest putting a flag in the options to force loading with hls if required.