Skip to content

Commit ca7ef02

Browse files
author
Taois
committed
feat:画质功能完善
1 parent 2414864 commit ca7ef02

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

dashboard/src/components/players/ArtVideoPlayer.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,12 @@ const showDebugButton = computed(() => {
178178
179179
// 计算属性:代理后的视频链接
180180
const proxyVideoUrl = computed(() => {
181-
if (!props.videoUrl) return ''
181+
// 使用当前实际播放的URL,如果没有则使用props.videoUrl
182+
const actualUrl = currentPlayingUrl.value || props.videoUrl
183+
if (!actualUrl) return ''
182184
183185
const headers = props.headers || {}
184-
return processVideoUrl(props.videoUrl, headers)
186+
return processVideoUrl(actualUrl, headers)
185187
})
186188
187189
// 计算属性:获取当前画质的标签

dashboard/src/components/players/VideoPlayer.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,12 @@ const showDebugButton = computed(() => {
296296
297297
// 计算属性:代理后的视频链接
298298
const proxyVideoUrl = computed(() => {
299-
if (!props.videoUrl) return ''
299+
// 使用当前实际播放的URL,如果没有则使用props.videoUrl
300+
const actualUrl = currentPlayingUrl.value || props.videoUrl
301+
if (!actualUrl) return ''
300302
301303
const headers = props.headers || {}
302-
return processVideoUrl(props.videoUrl, headers)
304+
return processVideoUrl(actualUrl, headers)
303305
})
304306
305307
// 检查是否有下一集

0 commit comments

Comments
 (0)