inleft
2022-08-25 c6793e5475b607e83cbb55b7d0ddfb9b81bd7774
src/components/mini/box15-videoPlayBox.vue
@@ -1,12 +1,12 @@
<template>
   <div>
      <div>
      <div v-if="!this.$attrs.showTar">
         正在播放: <span> {{playingVideoData.title}} </span>
      </div>
      <div class="myVideo fade">
         <div id="videoPlay" ref="myVdeoPlay"></div>
      </div>
      <div style="border-radius: 0 0 4px 4px;">
      <div style="border-radius: 0 0 4px 4px;" v-if="!this.$attrs.showTar">
         <div style="padding: 10px 0px;">
            音量 :
@@ -164,6 +164,13 @@
               return
            }
            if (videoData.url != null && videoData.urlL != "" && videoData.url.endsWith("m3u8")) {
               videoData.type = "customHls";
            } else {
               videoData.type = "normal";
            }
            //重要!!防止hls类型视频在切换后不停在后台缓存
            if (this.hls != null) {
               this.hls.destroy();