Skip to content

Commit

Permalink
fix: 修复public/data/videos.json中$.[*].video.play_addr.url_list中链接有多个时,…
Browse files Browse the repository at this point in the history
… 部分链接 禁止盗链/失效 导致视频加载失败
  • Loading branch information
crtf1999 committed Oct 21, 2024
1 parent c9e2a5d commit 59b9a09
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/slide/BaseVideo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<Loading v-if="state.loading" style="position: absolute" />
<!-- <video :src="item.video + '?v=123'"-->
<video
:src="item.video.play_addr.url_list[0]"
:poster="poster"
ref="videoEl"
:muted="state.isMuted"
Expand All @@ -17,6 +16,12 @@
:fullscreen="false"
:autoplay="isPlay"
>
<source
v-for="(urlItem, index) in item.video.play_addr.url_list"
:key="index"
:src="urlItem"
type="video/mp4"
/>
<p>您的浏览器不支持 video 标签。</p>
</video>
<Icon icon="fluent:play-28-filled" class="pause-icon" v-if="!isPlaying" />
Expand Down

0 comments on commit 59b9a09

Please sign in to comment.