| | |
| | | <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;"> |
| | | 音量 : |
| | |
| | | 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(); |