File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
dashboard/src/components/players Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -178,10 +178,12 @@ const showDebugButton = computed(() => {
178178
179179// 计算属性:代理后的视频链接
180180const 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// 计算属性:获取当前画质的标签
Original file line number Diff line number Diff line change @@ -296,10 +296,12 @@ const showDebugButton = computed(() => {
296296
297297// 计算属性:代理后的视频链接
298298const 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// 检查是否有下一集
You can’t perform that action at this time.
0 commit comments