diff --git a/src/views/fileManage/modules/fileview.vue b/src/views/fileManage/modules/fileview.vue index d23e785..5f8d98d 100644 --- a/src/views/fileManage/modules/fileview.vue +++ b/src/views/fileManage/modules/fileview.vue @@ -24,13 +24,11 @@ :class="['video-container', { 'unsupported': !isFormatSupported }]" > -
-

不支持 {{ ext.toUpperCase() }} 格式播放

@@ -113,28 +111,7 @@ import '@videojs/http-streaming'; if (!this.isFormatSupported) return; this.$nextTick(() => { - // HTML5原生视频 - if (!this.forceVideoJS) { - this.$refs.html5Player.src = this.src; - return; - } - - //使用Video.js处理特殊格式 - this.player = videojs( - this.$refs.videoPlayer, - { - controls: true, - autoplay: false, - sources: [{ - src: this.src, - type: this.getVideoType() - }], - techOrder: ['html5', 'flash'] // 尝试使用Flash后备方案 - }, - () => { - console.log('Player ready'); - } - ); + this.$refs.html5Player.src = this.src; }); }, disposePlayer() {