From c6793e5475b607e83cbb55b7d0ddfb9b81bd7774 Mon Sep 17 00:00:00 2001
From: inleft <inleft@qq.com>
Date: Thu, 25 Aug 2022 04:09:06 +0800
Subject: [PATCH] 日志内容详情页多媒体适配 markdown 内图片增加viewer相应

---
 src/components/mini/box15-videoPlayBox.vue |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/components/mini/box15-videoPlayBox.vue b/src/components/mini/box15-videoPlayBox.vue
index 4ce96af..008d666 100644
--- a/src/components/mini/box15-videoPlayBox.vue
+++ b/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;">
 				音量 :
@@ -163,7 +163,14 @@
 					this.$message.error("无效资源..")
 					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();

--
Gitblit v1.9.1