Skip to content

Commit d273e61

Browse files
author
Taois
committed
feat:优化直播界面头部,增加调试和代理功能(代理不成功)
1 parent 731455c commit d273e61

File tree

2 files changed

+241
-91
lines changed

2 files changed

+241
-91
lines changed

dashboard/src/components/players/PlayerHeader.vue

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
</svg>
1818
<span class="btn-text">调试</span>
1919
</div>
20-
<!-- 自动连播按钮 -->
20+
<!-- 自动连播按钮 - 仅在非直播模式下显示 -->
2121
<div
22-
v-if="showAutoNext && episodes.length > 1"
22+
v-if="!isLiveMode && showAutoNext && episodes.length > 1"
2323
class="compact-btn"
2424
@click="$emit('toggle-auto-next')"
2525
:class="{ active: autoNextEnabled }"
@@ -30,8 +30,9 @@
3030
<span class="btn-text">自动连播</span>
3131
</div>
3232

33-
<!-- 循环播放按钮 -->
33+
<!-- 循环播放按钮 - 仅在非直播模式下显示 -->
3434
<div
35+
v-if="!isLiveMode"
3536
class="compact-btn"
3637
@click="$emit('toggle-loop')"
3738
:class="{ active: loopEnabled }"
@@ -46,9 +47,9 @@
4647
<span class="btn-text">循环播放</span>
4748
</div>
4849

49-
<!-- 倒计时按钮 -->
50+
<!-- 倒计时按钮 - 仅在非直播模式下显示 -->
5051
<div
51-
v-if="showCountdown && episodes.length > 1"
52+
v-if="!isLiveMode && showCountdown && episodes.length > 1"
5253
class="compact-btn"
5354
@click="$emit('toggle-countdown')"
5455
:class="{ active: countdownEnabled }"
@@ -146,8 +147,11 @@
146147
</a-select>
147148
</div>
148149

149-
<!-- 播放器切换选择器 -->
150-
<div class="compact-btn selector-btn">
150+
<!-- 播放器切换选择器 - 仅在非直播模式下显示 -->
151+
<div
152+
v-if="!isLiveMode"
153+
class="compact-btn selector-btn"
154+
>
151155
<svg class="btn-icon" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
152156
<rect x="3" y="3" width="18" height="18" rx="2" ry="2" stroke="currentColor" stroke-width="2"/>
153157
<circle cx="8.5" cy="8.5" r="1.5" fill="currentColor"/>
@@ -164,8 +168,9 @@
164168
</a-select>
165169
</div>
166170

167-
<!-- 片头片尾设置按钮 -->
171+
<!-- 片头片尾设置按钮 - 仅在非直播模式下显示 -->
168172
<div
173+
v-if="!isLiveMode"
169174
class="compact-btn"
170175
:class="{ active: skipEnabled }"
171176
@click="$emit('open-skip-settings')"
@@ -260,6 +265,11 @@ const props = defineProps({
260265
parseData: {
261266
type: Object,
262267
default: () => null
268+
},
269+
// 直播模式标识
270+
isLiveMode: {
271+
type: Boolean,
272+
default: false
263273
}
264274
})
265275

0 commit comments

Comments
 (0)