hy-dispatch-ui-v3 0.2.87 → 0.2.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tailwind.css +180 -0
- package/es/api/file.mjs +14 -1
- package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +5 -469
- package/es/components/hyAudioPlayer/audioPlayer2.vue.mjs +1321 -0
- package/es/components/hyAudioPlayer/hyAudioPlayer/audioPlayer.vue.mjs +472 -0
- package/es/components/hyAudioPlayer/{js → hyAudioPlayer/js}/index.mjs +5 -5
- package/es/components/hyAudioPlayer/index.mjs +2 -2
- package/es/components/hyAudioPlayer/locale/en_US.mjs +18 -0
- package/es/components/hyAudioPlayer/locale/index.mjs +2 -0
- package/es/components/hyAudioPlayer/locale/zh_CN.mjs +18 -0
- package/es/components/hyCheckboxGroup/checkboxGroup.vue.mjs +9 -7
- package/es/components/hyForm/cpns/formItem.vue.mjs +2 -0
- package/es/components/hyRadioGroup/radioGroup.vue.mjs +95 -49
- package/es/components/hyTable/table.vue.mjs +3 -3
- package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +2 -2
- package/es/components/hyVideoPlayer/videoPlayer2.vue.mjs +734 -434
- package/es/static/hy-svg-icons/hy-icon-ops-audio-reduce.js +10 -0
- package/es/utils/timeUtils.mjs +8 -29
- package/es/version.mjs +1 -1
- package/lib/api/file.js +14 -0
- package/lib/components/hyAudioPlayer/audioPlayer.vue.js +5 -469
- package/lib/components/hyAudioPlayer/audioPlayer2.vue.js +1325 -0
- package/lib/components/hyAudioPlayer/hyAudioPlayer/audioPlayer.vue.js +476 -0
- package/lib/components/hyAudioPlayer/{js → hyAudioPlayer/js}/index.js +5 -5
- package/lib/components/hyAudioPlayer/locale/en_US.js +22 -0
- package/lib/components/hyAudioPlayer/locale/index.js +9 -0
- package/lib/components/hyAudioPlayer/locale/zh_CN.js +22 -0
- package/lib/components/hyCheckboxGroup/checkboxGroup.vue.js +11 -9
- package/lib/components/hyForm/cpns/formItem.vue.js +2 -0
- package/lib/components/hyRadioGroup/radioGroup.vue.js +94 -48
- package/lib/components/hyTable/table.vue.js +2 -2
- package/lib/components/hyVideoPlayer/videoPlayer.vue.js +2 -2
- package/lib/components/hyVideoPlayer/videoPlayer2.vue.js +732 -432
- package/lib/static/hy-svg-icons/hy-icon-ops-audio-reduce.js +10 -0
- package/lib/utils/timeUtils.js +8 -29
- package/lib/version.js +1 -1
- package/package.json +1 -1
- /package/es/components/hyAudioPlayer/{style → hyAudioPlayer/style}/audioPlayer.scss +0 -0
- /package/lib/components/hyAudioPlayer/{style → hyAudioPlayer/style}/audioPlayer.scss +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent, onUnmounted, onMounted, ref, computed, nextTick, openBlock, createElementBlock, normalizeClass, unref,
|
|
1
|
+
import { defineComponent, onUnmounted, onMounted, watch, ref, computed, nextTick, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, toDisplayString, createCommentVNode, normalizeStyle, createVNode, Fragment, createBlock, withCtx, createTextVNode, withDirectives, isRef, vModelText, renderList, withModifiers, vShow, renderSlot } from 'vue';
|
|
2
2
|
import '../index.mjs';
|
|
3
3
|
import '../../hooks/index.mjs';
|
|
4
4
|
import '../../utils/index.mjs';
|
|
5
|
-
import { ElMessage,
|
|
5
|
+
import { ElMessage, ElPopover, ElSlider, ElTooltip } from 'element-plus';
|
|
6
6
|
import _sfc_main$1 from './cpns/mediaLoading.vue.mjs';
|
|
7
7
|
import * as index from './locale/index.mjs';
|
|
8
8
|
import { registerComponentLocale, unregisterComponentLocale, $t } from '../../hooks/useLocale.mjs';
|
|
@@ -15,8 +15,13 @@ import { HyIcon } from '../hyIcon/index.mjs';
|
|
|
15
15
|
import { HyButton } from '../hyButton/index.mjs';
|
|
16
16
|
import { formatSeconds } from '../../utils/timeUtils.mjs';
|
|
17
17
|
|
|
18
|
+
const __default__ = defineComponent({
|
|
19
|
+
name: "HyVideoPlayer"
|
|
20
|
+
});
|
|
21
|
+
const centerIconClass = "group-[.is-full]:!w-[34px] group-[.is-full]:!h-[34px]";
|
|
22
|
+
const rightIconClass = "group-[.is-full]:!w-[28px] group-[.is-full]:!h-[28px] group-[.is-full]:mr-5";
|
|
18
23
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
19
|
-
|
|
24
|
+
...__default__,
|
|
20
25
|
props: {
|
|
21
26
|
/* 下载 */
|
|
22
27
|
downloadFilesType: {
|
|
@@ -39,6 +44,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
39
44
|
return [];
|
|
40
45
|
}
|
|
41
46
|
},
|
|
47
|
+
// 打点列表
|
|
48
|
+
pointList: {
|
|
49
|
+
type: Array,
|
|
50
|
+
default: () => {
|
|
51
|
+
return [];
|
|
52
|
+
}
|
|
53
|
+
},
|
|
42
54
|
// 是否使用不可拖拽弹框模式
|
|
43
55
|
contentMode: {
|
|
44
56
|
type: Boolean,
|
|
@@ -49,6 +61,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
49
61
|
},
|
|
50
62
|
emits: ["can-play", "play-start", "play-end", "on-time-update"],
|
|
51
63
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
64
|
+
;
|
|
52
65
|
const emit = __emit;
|
|
53
66
|
registerComponentLocale("HyVideoPlayer", index);
|
|
54
67
|
onUnmounted(() => {
|
|
@@ -59,14 +72,49 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
59
72
|
function useVideoPlayer(hy) {
|
|
60
73
|
const { baseMainStore } = useBaseMainStore();
|
|
61
74
|
onUnmounted(() => {
|
|
62
|
-
hy.
|
|
75
|
+
hy.destroyVideo();
|
|
76
|
+
hy.destroyVideoBoxObserver();
|
|
77
|
+
hy.destroyFullScreenEvent();
|
|
63
78
|
});
|
|
64
79
|
onMounted(() => {
|
|
65
80
|
hy.playRulesFn(3);
|
|
66
81
|
hy.speedFn(1);
|
|
67
82
|
hy.initVideo();
|
|
68
83
|
hy.initFullScreenEvent();
|
|
84
|
+
hy.initVideoBoxObserver();
|
|
85
|
+
watch(
|
|
86
|
+
() => hy.videoState.value,
|
|
87
|
+
(state) => {
|
|
88
|
+
if (state === "CAN_NOT_PLAY") {
|
|
89
|
+
hy.isHideVideo.value = false;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
);
|
|
69
93
|
});
|
|
94
|
+
const progressThumbWidth2 = 10;
|
|
95
|
+
const pointReady2 = ref(false);
|
|
96
|
+
const pointMarkers2 = computed(() => {
|
|
97
|
+
const total = hy.totalTime.value;
|
|
98
|
+
const playId = hy.videoItem.value?.id;
|
|
99
|
+
if (!hy.pointReady.value || !total || !playId) return [];
|
|
100
|
+
return (hy.props.pointList || []).filter((item) => String(item.mediaFileId) === String(playId)).map((item) => ({ ...item, seconds: Number(item.time) })).filter((item) => !isNaN(item.seconds) && item.seconds >= 0 && item.seconds <= total).map((item) => ({ ...item, percent: item.seconds / total }));
|
|
101
|
+
});
|
|
102
|
+
function getPointLeft2(percent) {
|
|
103
|
+
const half = progressThumbWidth2 / 2;
|
|
104
|
+
return `calc(${half}px + (100% - ${progressThumbWidth2}px) * ${percent})`;
|
|
105
|
+
}
|
|
106
|
+
function clickPoint2(item) {
|
|
107
|
+
if (!hy.videoEl.value || hy.videoState.value === "CAN_NOT_PLAY") return;
|
|
108
|
+
hy.jumpDuration(item.seconds);
|
|
109
|
+
hy.curTime.value = Math.floor(item.seconds);
|
|
110
|
+
hy.value.value = item.seconds / hy.totalTime.value * 100;
|
|
111
|
+
}
|
|
112
|
+
const videoRef2 = ref(null);
|
|
113
|
+
const videoBoxRef2 = ref(null);
|
|
114
|
+
const videoBoxObserver2 = ref(null);
|
|
115
|
+
const fullVideoWidth2 = ref(0);
|
|
116
|
+
const fullVideoHeight2 = ref(0);
|
|
117
|
+
const isSelfFullScreen2 = ref(false);
|
|
70
118
|
const isCanNotPlayType2 = ref(true);
|
|
71
119
|
const speedList2 = ref([
|
|
72
120
|
{ value: 0.5, label: "0.5 X" },
|
|
@@ -80,17 +128,17 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
80
128
|
{
|
|
81
129
|
value: 1,
|
|
82
130
|
label: $t$1("stopAfterPlayback"),
|
|
83
|
-
svgName: "
|
|
131
|
+
svgName: "ops-audio-stopplayback"
|
|
84
132
|
},
|
|
85
133
|
{
|
|
86
134
|
value: 2,
|
|
87
135
|
label: $t$1("continuousPlayback"),
|
|
88
|
-
svgName: "
|
|
136
|
+
svgName: "ops-audio-cycle"
|
|
89
137
|
},
|
|
90
138
|
{
|
|
91
139
|
value: 3,
|
|
92
140
|
label: $t$1("loopPlayback"),
|
|
93
|
-
svgName: "
|
|
141
|
+
svgName: "ops-audio-sequentialplay"
|
|
94
142
|
}
|
|
95
143
|
]);
|
|
96
144
|
const playRules2 = ref(1);
|
|
@@ -102,11 +150,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
102
150
|
const curTime2 = ref(0);
|
|
103
151
|
const totalTime2 = ref(0);
|
|
104
152
|
const isDrop2 = ref(false);
|
|
153
|
+
const isHideVideo2 = ref(false);
|
|
105
154
|
const isFullScreen2 = ref(false);
|
|
106
155
|
const volumeValue2 = ref(100);
|
|
107
|
-
const isChangeVolume2 = ref(false);
|
|
108
156
|
const hasVLC2 = ref(true);
|
|
109
|
-
const decodeSuccess2 = ref(false);
|
|
110
157
|
const loading2 = ref(false);
|
|
111
158
|
const buffering2 = ref(false);
|
|
112
159
|
const speedLabel2 = computed(() => {
|
|
@@ -120,8 +167,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
120
167
|
return hy.props.playList.find((item) => item.id === hy.videoItem.value.id);
|
|
121
168
|
});
|
|
122
169
|
const canPlay2 = computed(() => {
|
|
123
|
-
return hy.
|
|
170
|
+
return !!hy.videoUrl.value && hy.videoState.value !== "CAN_NOT_PLAY";
|
|
124
171
|
});
|
|
172
|
+
function setIsHideVideo2(newIsHideVideo) {
|
|
173
|
+
hy.isHideVideo.value = newIsHideVideo;
|
|
174
|
+
}
|
|
125
175
|
function playRulesFn2(newPlayRules) {
|
|
126
176
|
if (newPlayRules === 3) {
|
|
127
177
|
hy.playRules.value = 1;
|
|
@@ -131,8 +181,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
131
181
|
}
|
|
132
182
|
function speedFn2(newSpeed) {
|
|
133
183
|
hy.speed.value = newSpeed;
|
|
134
|
-
if (
|
|
135
|
-
|
|
184
|
+
if (hy.videoEl.value) {
|
|
185
|
+
hy.videoEl.value.playbackRate = newSpeed;
|
|
136
186
|
}
|
|
137
187
|
}
|
|
138
188
|
function findIndexFn2() {
|
|
@@ -141,7 +191,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
141
191
|
function playNext2() {
|
|
142
192
|
const findIndex = hy.findIndexFn();
|
|
143
193
|
if (findIndex !== hy.props.playList.length - 1) {
|
|
144
|
-
hy.decodeSuccess.value = false;
|
|
145
194
|
const item = hy.props.playList[findIndex + 1];
|
|
146
195
|
hy.playVideo(item.filePath, item);
|
|
147
196
|
} else {
|
|
@@ -151,16 +200,39 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
151
200
|
function playPrevious2() {
|
|
152
201
|
const findIndex = hy.findIndexFn();
|
|
153
202
|
if (findIndex > 0 && findIndex !== hy.props.playList.length) {
|
|
154
|
-
hy.decodeSuccess.value = false;
|
|
155
203
|
const item = hy.props.playList[findIndex - 1];
|
|
156
204
|
hy.playVideo(item.filePath, item);
|
|
157
205
|
} else {
|
|
158
206
|
ElMessage.warning($t$1("currentIsTheFirstItem"));
|
|
159
207
|
}
|
|
160
208
|
}
|
|
209
|
+
function safePlay2() {
|
|
210
|
+
const el = hy.videoEl.value;
|
|
211
|
+
if (!el) return;
|
|
212
|
+
const playPromise = el.play();
|
|
213
|
+
if (playPromise && playPromise.catch) {
|
|
214
|
+
playPromise.catch((err) => {
|
|
215
|
+
if (err && err.name === "AbortError") return;
|
|
216
|
+
console.warn("video play failed", err);
|
|
217
|
+
hy.buffering.value = false;
|
|
218
|
+
if (hy.videoState.value !== "CAN_NOT_PLAY") {
|
|
219
|
+
hy.videoState.value = "PAUSE";
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
}
|
|
161
224
|
async function playVideo2(filePath, item) {
|
|
162
225
|
const { isSupport } = isSupportH265();
|
|
163
226
|
if (item && item.fileCoding === "H.265" && !isSupport) {
|
|
227
|
+
hy.videoEl.value && hy.videoEl.value.pause();
|
|
228
|
+
hy.pointReady.value = false;
|
|
229
|
+
hy.loading.value = false;
|
|
230
|
+
hy.buffering.value = false;
|
|
231
|
+
hy.videoItem.value = item;
|
|
232
|
+
hy.videoUrl.value = filePath;
|
|
233
|
+
hy.curTime.value = 0;
|
|
234
|
+
hy.totalTime.value = 0;
|
|
235
|
+
hy.value.value = 0;
|
|
164
236
|
hy.videoState.value = "CAN_NOT_PLAY";
|
|
165
237
|
hy.isCanNotPlayType.value = true;
|
|
166
238
|
return;
|
|
@@ -170,9 +242,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
170
242
|
await nextTick();
|
|
171
243
|
hy.initVideo();
|
|
172
244
|
}
|
|
245
|
+
if (!hy.videoEl.value) return;
|
|
173
246
|
if (item) {
|
|
174
247
|
if (item.id !== hy.videoItem.value.id || !hy.videoEl.value.src) {
|
|
175
248
|
hy.loading.value = true;
|
|
249
|
+
hy.pointReady.value = false;
|
|
176
250
|
hy.videoItem.value = item;
|
|
177
251
|
hy.videoUrl.value = filePath;
|
|
178
252
|
hy.videoEl.value.src = filePath;
|
|
@@ -182,13 +256,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
182
256
|
return false;
|
|
183
257
|
}
|
|
184
258
|
}
|
|
185
|
-
console.log("hy.videoItem.value.playSeconds", hy.videoItem.value.playSeconds);
|
|
186
259
|
if (hy.videoItem.value.playSeconds) {
|
|
187
260
|
hy.jumpDuration(hy.videoItem.value.playSeconds);
|
|
188
261
|
}
|
|
189
262
|
nextTick(() => {
|
|
190
|
-
hy.
|
|
191
|
-
hy.videoState.value = "PLAYING";
|
|
263
|
+
hy.safePlay();
|
|
192
264
|
});
|
|
193
265
|
}
|
|
194
266
|
function createDownloadTask2(mediaFiles) {
|
|
@@ -212,6 +284,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
212
284
|
hy.videoEl.value.volume = hy.volumeValue.value / 100;
|
|
213
285
|
}
|
|
214
286
|
function getNowWh2() {
|
|
287
|
+
if (!hy.videoEl.value) {
|
|
288
|
+
hy.isDrop.value = false;
|
|
289
|
+
return;
|
|
290
|
+
}
|
|
215
291
|
hy.curTime.value = hy.totalTime.value * (hy.value.value / 100);
|
|
216
292
|
hy.videoEl.value.currentTime = hy.curTime.value;
|
|
217
293
|
hy.isDrop.value = false;
|
|
@@ -226,7 +302,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
226
302
|
}
|
|
227
303
|
function resumePlay2() {
|
|
228
304
|
if (hy.videoState.value === "CAN_NOT_PLAY") return;
|
|
229
|
-
hy.
|
|
305
|
+
hy.safePlay();
|
|
230
306
|
}
|
|
231
307
|
function pauseVideo2() {
|
|
232
308
|
if (hy.videoState.value === "CAN_NOT_PLAY") return;
|
|
@@ -234,18 +310,24 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
234
310
|
hy.videoState.value = "PAUSE";
|
|
235
311
|
}
|
|
236
312
|
function initVideo2() {
|
|
237
|
-
hy.videoEl.value =
|
|
313
|
+
hy.videoEl.value = hy.videoRef.value;
|
|
314
|
+
if (!hy.videoEl.value) return;
|
|
238
315
|
hy.videoEl.value.addEventListener("canplay", (e) => {
|
|
239
|
-
hy.buffering.value = true;
|
|
240
316
|
hy.loading.value = false;
|
|
241
|
-
|
|
317
|
+
hy.buffering.value = false;
|
|
318
|
+
const { videoWidth, videoHeight, webkitVideoDecodedByteCount } = e.target || {};
|
|
319
|
+
const decodeFailed = webkitVideoDecodedByteCount !== void 0 && !webkitVideoDecodedByteCount;
|
|
320
|
+
if (!videoWidth || !videoHeight || decodeFailed) {
|
|
242
321
|
hy.videoEl.value.pause();
|
|
243
322
|
hy.videoState.value = "CAN_NOT_PLAY";
|
|
244
323
|
hy.isCanNotPlayType.value = true;
|
|
245
324
|
return;
|
|
246
325
|
}
|
|
247
|
-
hy.videoState.value
|
|
326
|
+
if (hy.videoState.value !== "PLAYING") {
|
|
327
|
+
hy.videoState.value = "IS_LOAD";
|
|
328
|
+
}
|
|
248
329
|
hy.totalTime.value = Math.floor(hy.videoEl.value.duration);
|
|
330
|
+
hy.pointReady.value = true;
|
|
249
331
|
emit("can-play", hy.totalTime.value);
|
|
250
332
|
});
|
|
251
333
|
hy.videoEl.value.addEventListener("play", () => {
|
|
@@ -266,15 +348,19 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
266
348
|
return;
|
|
267
349
|
}
|
|
268
350
|
hy.buffering.value = false;
|
|
269
|
-
hy.videoState.value
|
|
351
|
+
if (hy.videoState.value !== "PLAY_END") {
|
|
352
|
+
hy.videoState.value = "PAUSE";
|
|
353
|
+
}
|
|
270
354
|
});
|
|
271
355
|
hy.videoEl.value.addEventListener("ended", () => {
|
|
272
356
|
hy.videoState.value = "PLAY_END";
|
|
273
357
|
if (hy.playRules.value === 2) {
|
|
274
|
-
hy.
|
|
358
|
+
if (hy.findIndexFn() < hy.props.playList.length - 1) {
|
|
359
|
+
hy.playNext();
|
|
360
|
+
}
|
|
275
361
|
} else if (hy.playRules.value === 3) {
|
|
276
|
-
hy.videoEl.value.
|
|
277
|
-
hy.
|
|
362
|
+
hy.videoEl.value.currentTime = 0;
|
|
363
|
+
hy.safePlay();
|
|
278
364
|
}
|
|
279
365
|
emit("play-end");
|
|
280
366
|
});
|
|
@@ -284,18 +370,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
284
370
|
if (hy.isCanNotPlay(e)) {
|
|
285
371
|
return;
|
|
286
372
|
}
|
|
287
|
-
hy.
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
hy.curTime.value = Math.floor(hy.videoEl.value.currentTime);
|
|
291
|
-
} else {
|
|
292
|
-
setTimeout(() => {
|
|
293
|
-
if (hy.videoEl.value) {
|
|
294
|
-
hy.curTime.value = Math.floor(hy.videoEl.value.currentTime);
|
|
295
|
-
}
|
|
296
|
-
}, 1e3);
|
|
297
|
-
}
|
|
298
|
-
hy.value.value = hy.curTime.value / hy.totalTime.value * 100;
|
|
373
|
+
if (!hy.isDrop.value && hy.videoEl.value) {
|
|
374
|
+
hy.curTime.value = Math.floor(hy.videoEl.value.currentTime);
|
|
375
|
+
hy.value.value = hy.totalTime.value ? hy.curTime.value / hy.totalTime.value * 100 : 0;
|
|
299
376
|
emit("on-time-update", hy.curTime.value);
|
|
300
377
|
}
|
|
301
378
|
},
|
|
@@ -304,12 +381,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
304
381
|
hy.videoEl.value.addEventListener("error", (e) => {
|
|
305
382
|
hy.buffering.value = false;
|
|
306
383
|
hy.loading.value = false;
|
|
384
|
+
hy.pointReady.value = false;
|
|
307
385
|
hy.videoState.value = "CAN_NOT_PLAY";
|
|
308
386
|
hy.isCanNotPlayType.value = hy.isCantPlayType(e);
|
|
309
387
|
console.error("error", e);
|
|
310
388
|
hy.videoEl.value = null;
|
|
311
389
|
});
|
|
312
390
|
}
|
|
391
|
+
function destroyVideo2() {
|
|
392
|
+
const el = hy.videoEl.value;
|
|
393
|
+
if (el) {
|
|
394
|
+
el.pause();
|
|
395
|
+
el.removeAttribute("src");
|
|
396
|
+
el.load();
|
|
397
|
+
}
|
|
398
|
+
hy.videoEl.value = null;
|
|
399
|
+
}
|
|
313
400
|
function isCantPlayType2(e) {
|
|
314
401
|
if (e.target.error) {
|
|
315
402
|
const { code, message } = e.target.error;
|
|
@@ -328,15 +415,70 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
328
415
|
return false;
|
|
329
416
|
}
|
|
330
417
|
function initFullScreenEvent2() {
|
|
331
|
-
document.addEventListener("fullscreenchange",
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
418
|
+
document.addEventListener("fullscreenchange", hy.fullscreenchangeHandler);
|
|
419
|
+
}
|
|
420
|
+
function destroyFullScreenEvent2() {
|
|
421
|
+
document.removeEventListener("fullscreenchange", hy.fullscreenchangeHandler);
|
|
422
|
+
if (hy.isSelfFullScreen.value && document.fullscreenElement) {
|
|
423
|
+
hy.exitFullscreen();
|
|
424
|
+
}
|
|
425
|
+
hy.isSelfFullScreen.value = false;
|
|
426
|
+
}
|
|
427
|
+
function fullscreenchangeHandler2() {
|
|
428
|
+
if (document.fullscreenElement && hy.isSelfFullScreen.value) {
|
|
429
|
+
hy.isFullScreen.value = true;
|
|
430
|
+
hy.isHideVideo.value = false;
|
|
431
|
+
} else if (!document.fullscreenElement) {
|
|
432
|
+
hy.isFullScreen.value = false;
|
|
433
|
+
hy.isSelfFullScreen.value = false;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
function calculate16To9SizeInContainer2(containerWidth, containerHeight) {
|
|
437
|
+
const caseAWidth = containerWidth;
|
|
438
|
+
const caseAHeight = containerWidth * 9 / 16;
|
|
439
|
+
const caseBHeight = containerHeight;
|
|
440
|
+
const caseBWidth = containerHeight * 16 / 9;
|
|
441
|
+
let finalWidth, finalHeight;
|
|
442
|
+
if (caseAHeight <= containerHeight) {
|
|
443
|
+
finalWidth = caseAWidth;
|
|
444
|
+
finalHeight = caseAHeight;
|
|
445
|
+
} else {
|
|
446
|
+
finalWidth = caseBWidth;
|
|
447
|
+
finalHeight = caseBHeight;
|
|
448
|
+
}
|
|
449
|
+
return {
|
|
450
|
+
width: Math.floor(finalWidth),
|
|
451
|
+
height: Math.floor(finalHeight)
|
|
452
|
+
};
|
|
453
|
+
}
|
|
454
|
+
function updateFullVideoSize2() {
|
|
455
|
+
const boxEl = hy.videoBoxRef.value;
|
|
456
|
+
if (!hy.isFullScreen.value || !boxEl) {
|
|
457
|
+
hy.fullVideoWidth.value = 0;
|
|
458
|
+
hy.fullVideoHeight.value = 0;
|
|
459
|
+
return;
|
|
460
|
+
}
|
|
461
|
+
const { clientWidth, clientHeight } = boxEl;
|
|
462
|
+
if (!clientWidth || !clientHeight) return;
|
|
463
|
+
const { width, height } = hy.calculate16To9SizeInContainer(clientWidth, clientHeight);
|
|
464
|
+
hy.fullVideoWidth.value = width;
|
|
465
|
+
hy.fullVideoHeight.value = height;
|
|
466
|
+
}
|
|
467
|
+
function initVideoBoxObserver2() {
|
|
468
|
+
if (!hy.videoBoxRef.value || typeof ResizeObserver === "undefined") return;
|
|
469
|
+
hy.videoBoxObserver.value = new ResizeObserver(() => {
|
|
470
|
+
hy.updateFullVideoSize();
|
|
337
471
|
});
|
|
472
|
+
hy.videoBoxObserver.value.observe(hy.videoBoxRef.value);
|
|
473
|
+
}
|
|
474
|
+
function destroyVideoBoxObserver2() {
|
|
475
|
+
if (hy.videoBoxObserver.value) {
|
|
476
|
+
hy.videoBoxObserver.value.disconnect();
|
|
477
|
+
hy.videoBoxObserver.value = null;
|
|
478
|
+
}
|
|
338
479
|
}
|
|
339
480
|
function jumpDuration2(s) {
|
|
481
|
+
if (!hy.videoEl.value) return;
|
|
340
482
|
hy.videoEl.value.currentTime = s;
|
|
341
483
|
}
|
|
342
484
|
function clickFullScreen2() {
|
|
@@ -349,12 +491,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
349
491
|
function fullScreen2() {
|
|
350
492
|
const el = document.documentElement;
|
|
351
493
|
if (el.requestFullscreen) {
|
|
352
|
-
|
|
494
|
+
hy.isSelfFullScreen.value = true;
|
|
495
|
+
el.requestFullscreen().catch(() => {
|
|
496
|
+
hy.isSelfFullScreen.value = false;
|
|
497
|
+
});
|
|
353
498
|
}
|
|
354
499
|
}
|
|
355
500
|
function exitFullscreen2() {
|
|
356
501
|
const el = document;
|
|
357
|
-
if (el.exitFullscreen) {
|
|
502
|
+
if (el.exitFullscreen && el.fullscreenElement) {
|
|
358
503
|
el.exitFullscreen();
|
|
359
504
|
}
|
|
360
505
|
}
|
|
@@ -366,7 +511,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
366
511
|
});
|
|
367
512
|
}
|
|
368
513
|
function downloadVLC2() {
|
|
369
|
-
const url = JSON.parse(
|
|
514
|
+
const url = JSON.parse(window.sessionStorage.getItem("entryList"))?.toolSupport;
|
|
370
515
|
if (!url) {
|
|
371
516
|
ElMessage.error($t$1("dataError"));
|
|
372
517
|
return;
|
|
@@ -393,6 +538,17 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
393
538
|
}
|
|
394
539
|
}
|
|
395
540
|
return {
|
|
541
|
+
progressThumbWidth: progressThumbWidth2,
|
|
542
|
+
pointReady: pointReady2,
|
|
543
|
+
pointMarkers: pointMarkers2,
|
|
544
|
+
getPointLeft: getPointLeft2,
|
|
545
|
+
clickPoint: clickPoint2,
|
|
546
|
+
videoRef: videoRef2,
|
|
547
|
+
videoBoxRef: videoBoxRef2,
|
|
548
|
+
videoBoxObserver: videoBoxObserver2,
|
|
549
|
+
fullVideoWidth: fullVideoWidth2,
|
|
550
|
+
fullVideoHeight: fullVideoHeight2,
|
|
551
|
+
isSelfFullScreen: isSelfFullScreen2,
|
|
396
552
|
isCanNotPlayType: isCanNotPlayType2,
|
|
397
553
|
speedList: speedList2,
|
|
398
554
|
speed: speed2,
|
|
@@ -406,21 +562,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
406
562
|
curTime: curTime2,
|
|
407
563
|
totalTime: totalTime2,
|
|
408
564
|
isDrop: isDrop2,
|
|
565
|
+
isHideVideo: isHideVideo2,
|
|
409
566
|
isFullScreen: isFullScreen2,
|
|
410
567
|
volumeValue: volumeValue2,
|
|
411
|
-
isChangeVolume: isChangeVolume2,
|
|
412
568
|
hasVLC: hasVLC2,
|
|
413
|
-
decodeSuccess: decodeSuccess2,
|
|
414
569
|
loading: loading2,
|
|
415
570
|
buffering: buffering2,
|
|
416
571
|
speedLabel: speedLabel2,
|
|
417
572
|
playItem: playItem2,
|
|
418
573
|
canPlay: canPlay2,
|
|
574
|
+
setIsHideVideo: setIsHideVideo2,
|
|
419
575
|
playRulesFn: playRulesFn2,
|
|
420
576
|
speedFn: speedFn2,
|
|
421
577
|
findIndexFn: findIndexFn2,
|
|
422
578
|
playNext: playNext2,
|
|
423
579
|
playPrevious: playPrevious2,
|
|
580
|
+
safePlay: safePlay2,
|
|
424
581
|
playVideo: playVideo2,
|
|
425
582
|
createDownloadTask: createDownloadTask2,
|
|
426
583
|
downloadFn: downloadFn2,
|
|
@@ -430,9 +587,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
430
587
|
resumePlay: resumePlay2,
|
|
431
588
|
pauseVideo: pauseVideo2,
|
|
432
589
|
initVideo: initVideo2,
|
|
590
|
+
destroyVideo: destroyVideo2,
|
|
433
591
|
isCantPlayType: isCantPlayType2,
|
|
434
592
|
isCanNotPlay: isCanNotPlay2,
|
|
435
593
|
initFullScreenEvent: initFullScreenEvent2,
|
|
594
|
+
destroyFullScreenEvent: destroyFullScreenEvent2,
|
|
595
|
+
fullscreenchangeHandler: fullscreenchangeHandler2,
|
|
596
|
+
calculate16To9SizeInContainer: calculate16To9SizeInContainer2,
|
|
597
|
+
updateFullVideoSize: updateFullVideoSize2,
|
|
598
|
+
initVideoBoxObserver: initVideoBoxObserver2,
|
|
599
|
+
destroyVideoBoxObserver: destroyVideoBoxObserver2,
|
|
436
600
|
jumpDuration: jumpDuration2,
|
|
437
601
|
clickFullScreen: clickFullScreen2,
|
|
438
602
|
fullScreen: fullScreen2,
|
|
@@ -443,28 +607,38 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
443
607
|
}
|
|
444
608
|
const {
|
|
445
609
|
buffering,
|
|
610
|
+
calculate16To9SizeInContainer,
|
|
446
611
|
canPlay,
|
|
447
612
|
changeVolume,
|
|
448
613
|
clickFullScreen,
|
|
614
|
+
clickPoint,
|
|
449
615
|
createDownloadTask,
|
|
450
616
|
curTime,
|
|
451
|
-
|
|
617
|
+
destroyFullScreenEvent,
|
|
618
|
+
destroyVideo,
|
|
619
|
+
destroyVideoBoxObserver,
|
|
452
620
|
downloadFn,
|
|
453
621
|
downloadVLC,
|
|
454
622
|
exitFullscreen,
|
|
455
623
|
findIndexFn,
|
|
456
624
|
fullScreen,
|
|
625
|
+
fullVideoHeight,
|
|
626
|
+
fullVideoWidth,
|
|
627
|
+
fullscreenchangeHandler,
|
|
457
628
|
getNowWh,
|
|
458
629
|
getPercent,
|
|
630
|
+
getPointLeft,
|
|
459
631
|
hasVLC,
|
|
460
632
|
initFullScreenEvent,
|
|
461
633
|
initVideo,
|
|
634
|
+
initVideoBoxObserver,
|
|
462
635
|
isCanNotPlay,
|
|
463
636
|
isCanNotPlayType,
|
|
464
637
|
isCantPlayType,
|
|
465
|
-
isChangeVolume,
|
|
466
638
|
isDrop,
|
|
467
639
|
isFullScreen,
|
|
640
|
+
isHideVideo,
|
|
641
|
+
isSelfFullScreen,
|
|
468
642
|
jumpDuration,
|
|
469
643
|
loading,
|
|
470
644
|
openVLC,
|
|
@@ -476,449 +650,575 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
476
650
|
playRulesFn,
|
|
477
651
|
playRuleslist,
|
|
478
652
|
playVideo,
|
|
653
|
+
pointMarkers,
|
|
654
|
+
pointReady,
|
|
655
|
+
progressThumbWidth,
|
|
479
656
|
resumePlay,
|
|
657
|
+
safePlay,
|
|
658
|
+
setIsHideVideo,
|
|
480
659
|
speed,
|
|
481
660
|
speedFn,
|
|
482
661
|
speedLabel,
|
|
483
662
|
speedList,
|
|
484
663
|
totalTime,
|
|
664
|
+
updateFullVideoSize,
|
|
485
665
|
value,
|
|
666
|
+
videoBoxObserver,
|
|
667
|
+
videoBoxRef,
|
|
486
668
|
videoEl,
|
|
487
669
|
videoItem,
|
|
670
|
+
videoRef,
|
|
488
671
|
videoState,
|
|
489
672
|
videoUrl,
|
|
490
673
|
volumeValue
|
|
491
674
|
} = useMixins({ props }, [useVideoPlayer]);
|
|
492
675
|
__expose({
|
|
493
|
-
playVideo
|
|
676
|
+
playVideo,
|
|
677
|
+
pauseVideo,
|
|
678
|
+
resumePlay,
|
|
679
|
+
jumpDuration
|
|
494
680
|
});
|
|
495
681
|
return (_ctx, _cache) => {
|
|
496
682
|
return openBlock(), createElementBlock(
|
|
497
683
|
"div",
|
|
498
684
|
{
|
|
499
|
-
class: normalizeClass([
|
|
685
|
+
class: normalizeClass([
|
|
686
|
+
"w-full bg-background mb-2 flex flex-col text-xs text-main box-border border border-border rounded overflow-hidden",
|
|
687
|
+
unref(isFullScreen) ? "full-video-player-content is-full fixed left-0 top-0 z-[99999] h-full" : "relative"
|
|
688
|
+
])
|
|
500
689
|
},
|
|
501
690
|
[
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
createElementVNode(
|
|
534
|
-
"span",
|
|
535
|
-
{ class: "text-xs text-auxiliary mt-4" },
|
|
536
|
-
toDisplayString($t$1("fileLoadingFailed")),
|
|
537
|
-
1
|
|
538
|
-
/* TEXT */
|
|
539
|
-
),
|
|
540
|
-
createElementVNode(
|
|
541
|
-
"span",
|
|
542
|
-
{ class: "text-xs text-auxiliary" },
|
|
543
|
-
toDisplayString($t$1("pleaseCheckWhetherTheCollectionStationIsOnlineAndWhetherTheFileExists")),
|
|
544
|
-
1
|
|
545
|
-
/* TEXT */
|
|
546
|
-
)
|
|
547
|
-
],
|
|
548
|
-
64
|
|
549
|
-
/* STABLE_FRAGMENT */
|
|
550
|
-
)) : (openBlock(), createElementBlock(
|
|
551
|
-
Fragment,
|
|
552
|
-
{ key: 1 },
|
|
553
|
-
[
|
|
554
|
-
createElementVNode("div", { class: "flex items-center justify-center text-auxiliary" }, [
|
|
555
|
-
createVNode(unref(HyIcon), {
|
|
556
|
-
"svg-name": "ops-audio-media-center-right-ripple",
|
|
557
|
-
class: "!w-[12px] !h-[12px]"
|
|
558
|
-
}),
|
|
559
|
-
createVNode(unref(HyIcon), {
|
|
560
|
-
"svg-name": "ops-audio-media-center-video",
|
|
561
|
-
class: "!w-[40px] !h-[40px] mx-1"
|
|
562
|
-
}),
|
|
563
|
-
createVNode(unref(HyIcon), {
|
|
564
|
-
"svg-name": "ops-audio-media-center-left-ripple",
|
|
565
|
-
class: "!w-[12px] !h-[12px]"
|
|
691
|
+
createElementVNode(
|
|
692
|
+
"div",
|
|
693
|
+
{
|
|
694
|
+
style: { "background": "linear-gradient(180deg, rgba(13, 26, 42, 0.5) 0%, rgba(13, 26, 42, 0.3) 100%)" },
|
|
695
|
+
class: normalizeClass([{
|
|
696
|
+
absolute: !unref(isHideVideo)
|
|
697
|
+
}, "h-[32px] px-2 box-border flex items-center over_one_line w-full text-xs z-10"])
|
|
698
|
+
},
|
|
699
|
+
toDisplayString(unref(videoItem).fileName),
|
|
700
|
+
3
|
|
701
|
+
/* TEXT, CLASS */
|
|
702
|
+
),
|
|
703
|
+
createCommentVNode(" \u753B\u9762\u5BBD\u9AD8 "),
|
|
704
|
+
createElementVNode(
|
|
705
|
+
"div",
|
|
706
|
+
{
|
|
707
|
+
ref_key: "videoBoxRef",
|
|
708
|
+
ref: videoBoxRef,
|
|
709
|
+
class: normalizeClass(unref(isFullScreen) ? "flex items-center justify-center flex-grow h-0" : "")
|
|
710
|
+
},
|
|
711
|
+
[
|
|
712
|
+
createElementVNode(
|
|
713
|
+
"div",
|
|
714
|
+
{
|
|
715
|
+
class: normalizeClass([{
|
|
716
|
+
"w-[0]": unref(isHideVideo),
|
|
717
|
+
"w-full": !unref(isHideVideo) && !(unref(isFullScreen) && unref(fullVideoWidth))
|
|
718
|
+
}, "overflow-hidden relative duration-500 flex-shrink-0"]),
|
|
719
|
+
style: normalizeStyle({
|
|
720
|
+
aspectRatio: "16 / 9",
|
|
721
|
+
width: unref(isFullScreen) && unref(fullVideoWidth) && !unref(isHideVideo) ? `${unref(fullVideoWidth)}px` : ""
|
|
566
722
|
})
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
"
|
|
570
|
-
{ class: "text-theme mt-3 mb-[14px]" },
|
|
571
|
-
toDisplayString(unref(isCanNotPlayType) ? $t$1("vlcPlayerTip") : $t$1("videoCannotBePlayed")),
|
|
572
|
-
1
|
|
573
|
-
/* TEXT */
|
|
574
|
-
),
|
|
575
|
-
unref(isCanNotPlayType) ? (openBlock(), createElementBlock("div", {
|
|
576
|
-
key: 0,
|
|
577
|
-
class: "flex justify-center"
|
|
578
|
-
}, [
|
|
579
|
-
unref(hasVLC) ? (openBlock(), createBlock(unref(HyButton), {
|
|
723
|
+
},
|
|
724
|
+
[
|
|
725
|
+
(unref(loading) || unref(buffering)) && unref(videoState) !== "CAN_NOT_PLAY" ? (openBlock(), createElementBlock("div", {
|
|
580
726
|
key: 0,
|
|
581
|
-
class: ""
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
}, 8, ["onClick"])) : (openBlock(), createBlock(unref(HyButton), {
|
|
727
|
+
class: "w-full h-full flex flex-col justify-center items-center absolute top-0 left-0"
|
|
728
|
+
}, [
|
|
729
|
+
createVNode(_sfc_main$1),
|
|
730
|
+
createElementVNode(
|
|
731
|
+
"span",
|
|
732
|
+
{ class: "text-xs text-theme mt-4" },
|
|
733
|
+
"..." + toDisplayString($t$1("videoResourcesAreLoading")) + "...",
|
|
734
|
+
1
|
|
735
|
+
/* TEXT */
|
|
736
|
+
)
|
|
737
|
+
])) : createCommentVNode("v-if", true),
|
|
738
|
+
unref(videoState) === "CAN_NOT_PLAY" ? (openBlock(), createElementBlock("div", {
|
|
594
739
|
key: 1,
|
|
595
|
-
class: ""
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
740
|
+
class: "w-full h-full flex flex-col justify-center items-center"
|
|
741
|
+
}, [
|
|
742
|
+
createCommentVNode(" \u91C7\u96C6\u7AD9\u6587\u4EF6 "),
|
|
743
|
+
unref(videoItem) && unref(videoItem).csFile === 1 && unref(videoItem).onlineState !== 1 ? (openBlock(), createElementBlock(
|
|
744
|
+
Fragment,
|
|
745
|
+
{ key: 0 },
|
|
746
|
+
[
|
|
747
|
+
createElementVNode("div", { class: "w-[54px] h-[54px] rounded-full border-[2px] border-danger-2 flex justify-center items-center shadow-[0px_0px_10px_2px_var(--danger-2)]" }, [
|
|
748
|
+
createElementVNode("div", { class: "w-[42px] h-[42px] rounded-full border-[1px] border-dashed border-danger-2 flex justify-center items-center" }, [
|
|
749
|
+
createVNode(unref(HyIcon), {
|
|
750
|
+
"svg-name": "ops-button-icon-brok-link",
|
|
751
|
+
class: "!w-[24px] !h-[24px] text-danger-2"
|
|
752
|
+
})
|
|
753
|
+
])
|
|
754
|
+
]),
|
|
755
|
+
createElementVNode(
|
|
756
|
+
"span",
|
|
757
|
+
{ class: "text-xs text-auxiliary mt-4" },
|
|
758
|
+
toDisplayString($t$1("fileLoadingFailed")),
|
|
759
|
+
1
|
|
760
|
+
/* TEXT */
|
|
761
|
+
),
|
|
762
|
+
createElementVNode(
|
|
763
|
+
"span",
|
|
764
|
+
{ class: "text-xs text-auxiliary" },
|
|
765
|
+
toDisplayString($t$1("pleaseCheckWhetherTheCollectionStationIsOnlineAndWhetherTheFileExists")),
|
|
766
|
+
1
|
|
767
|
+
/* TEXT */
|
|
768
|
+
)
|
|
769
|
+
],
|
|
770
|
+
64
|
|
771
|
+
/* STABLE_FRAGMENT */
|
|
772
|
+
)) : (openBlock(), createElementBlock(
|
|
773
|
+
Fragment,
|
|
774
|
+
{ key: 1 },
|
|
775
|
+
[
|
|
776
|
+
createElementVNode("div", { class: "flex items-center justify-center text-auxiliary" }, [
|
|
777
|
+
createVNode(unref(HyIcon), {
|
|
778
|
+
"svg-name": "ops-audio-media-center-right-ripple",
|
|
779
|
+
class: "!w-[12px] !h-[12px]"
|
|
780
|
+
}),
|
|
781
|
+
createVNode(unref(HyIcon), {
|
|
782
|
+
"svg-name": "ops-audio-media-center-video",
|
|
783
|
+
class: "!w-[40px] !h-[40px] mx-1"
|
|
784
|
+
}),
|
|
785
|
+
createVNode(unref(HyIcon), {
|
|
786
|
+
"svg-name": "ops-audio-media-center-left-ripple",
|
|
787
|
+
class: "!w-[12px] !h-[12px]"
|
|
788
|
+
})
|
|
789
|
+
]),
|
|
790
|
+
createElementVNode(
|
|
791
|
+
"span",
|
|
792
|
+
{ class: "text-theme mt-3 mb-[14px]" },
|
|
793
|
+
toDisplayString(unref(isCanNotPlayType) ? $t$1("vlcPlayerTip") : $t$1("videoCannotBePlayed")),
|
|
794
|
+
1
|
|
795
|
+
/* TEXT */
|
|
796
|
+
),
|
|
797
|
+
unref(isCanNotPlayType) ? (openBlock(), createElementBlock("div", {
|
|
798
|
+
key: 0,
|
|
799
|
+
class: "flex justify-center"
|
|
800
|
+
}, [
|
|
801
|
+
unref(hasVLC) ? (openBlock(), createBlock(unref(HyButton), {
|
|
802
|
+
key: 0,
|
|
803
|
+
class: "",
|
|
804
|
+
onClick: unref(openVLC)
|
|
805
|
+
}, {
|
|
806
|
+
default: withCtx(() => [
|
|
807
|
+
createTextVNode(
|
|
808
|
+
toDisplayString($t$1("clickPlay")),
|
|
809
|
+
1
|
|
810
|
+
/* TEXT */
|
|
811
|
+
)
|
|
812
|
+
]),
|
|
813
|
+
_: 1
|
|
814
|
+
/* STABLE */
|
|
815
|
+
}, 8, ["onClick"])) : (openBlock(), createBlock(unref(HyButton), {
|
|
816
|
+
key: 1,
|
|
817
|
+
class: "",
|
|
818
|
+
onClick: unref(downloadVLC)
|
|
819
|
+
}, {
|
|
820
|
+
default: withCtx(() => [
|
|
821
|
+
createTextVNode(
|
|
822
|
+
toDisplayString($t$1("toDownloadVlc")),
|
|
823
|
+
1
|
|
824
|
+
/* TEXT */
|
|
825
|
+
)
|
|
826
|
+
]),
|
|
827
|
+
_: 1
|
|
828
|
+
/* STABLE */
|
|
829
|
+
}, 8, ["onClick"]))
|
|
830
|
+
])) : createCommentVNode("v-if", true)
|
|
831
|
+
],
|
|
832
|
+
64
|
|
833
|
+
/* STABLE_FRAGMENT */
|
|
834
|
+
))
|
|
835
|
+
])) : (openBlock(), createElementBlock(
|
|
836
|
+
"video",
|
|
837
|
+
{
|
|
838
|
+
key: 2,
|
|
839
|
+
ref_key: "videoRef",
|
|
840
|
+
ref: videoRef,
|
|
841
|
+
class: "w-full h-full"
|
|
842
|
+
},
|
|
843
|
+
[
|
|
844
|
+
createElementVNode("source", { type: "video/mp4" }),
|
|
845
|
+
createElementVNode("source", { type: "video/webm" }),
|
|
846
|
+
createElementVNode("source", { type: "video/ogg" }),
|
|
599
847
|
createTextVNode(
|
|
600
|
-
toDisplayString($t$1("
|
|
848
|
+
" " + toDisplayString($t$1("yourBrowserDoesNotSupportHTMLVideoPlayback")),
|
|
601
849
|
1
|
|
602
850
|
/* TEXT */
|
|
603
851
|
)
|
|
604
|
-
]
|
|
605
|
-
|
|
606
|
-
/*
|
|
607
|
-
|
|
608
|
-
]
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
852
|
+
],
|
|
853
|
+
512
|
|
854
|
+
/* NEED_PATCH */
|
|
855
|
+
))
|
|
856
|
+
],
|
|
857
|
+
6
|
|
858
|
+
/* CLASS, STYLE */
|
|
859
|
+
)
|
|
860
|
+
],
|
|
861
|
+
2
|
|
862
|
+
/* CLASS */
|
|
863
|
+
),
|
|
864
|
+
createCommentVNode(" \u63A7\u5236\u8FDB\u5EA6 "),
|
|
865
|
+
createElementVNode("div", { class: "px-2 box-border border-b border-border" }, [
|
|
866
|
+
createCommentVNode(" \u8FDB\u5EA6\u6761 "),
|
|
867
|
+
createElementVNode("div", { class: "relative flex items-center mt-2" }, [
|
|
868
|
+
withDirectives(createElementVNode("input", {
|
|
869
|
+
max: "100",
|
|
870
|
+
class: "hy-video-progress relative w-[100%] h-[6px] rounded-[20px] outline-none appearance-none bg-[#eaf5f9]",
|
|
871
|
+
style: normalizeStyle({
|
|
872
|
+
background: `linear-gradient(to right, rgb(var(--hy-theme), 1) ${unref(getPercent)(
|
|
873
|
+
unref(value),
|
|
874
|
+
100
|
|
875
|
+
)}%, rgb(var(--hy-theme), 0.5) ${unref(getPercent)(unref(value), 100)}% `
|
|
876
|
+
}),
|
|
877
|
+
type: "range",
|
|
878
|
+
onMouseup: ($event) => unref(getNowWh)($event),
|
|
879
|
+
onMousedown: ($event) => isDrop.value = true,
|
|
880
|
+
"onUpdate:modelValue": ($event) => isRef(value) ? value.value = $event : null
|
|
881
|
+
}, null, 44, ["onMouseup", "onMousedown", "onUpdate:modelValue"]), [
|
|
882
|
+
[vModelText, unref(value)]
|
|
883
|
+
]),
|
|
884
|
+
createCommentVNode(" \u6253\u70B9\uFF08\u5BB9\u5668\u4E0D\u54CD\u5E94\u9F20\u6807\uFF0C\u4E0D\u5F71\u54CD\u8FDB\u5EA6\u6761\u62D6\u52A8\uFF0C\u53EA\u6709\u5706\u70B9\u53EF\u70B9\u51FB\uFF09 "),
|
|
885
|
+
createElementVNode("div", { class: "absolute left-0 right-0 top-1/2 h-0 pointer-events-none" }, [
|
|
886
|
+
(openBlock(true), createElementBlock(
|
|
887
|
+
Fragment,
|
|
888
|
+
null,
|
|
889
|
+
renderList(unref(pointMarkers), (item, index) => {
|
|
890
|
+
return openBlock(), createBlock(unref(ElPopover), {
|
|
891
|
+
key: item.id || index,
|
|
892
|
+
placement: "top",
|
|
893
|
+
teleported: !unref(isFullScreen),
|
|
894
|
+
"popper-class": "minWidth0_popover popover_darkColor liveBroadcast w-[200px]",
|
|
895
|
+
trigger: "hover"
|
|
626
896
|
}, {
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
897
|
+
reference: withCtx(() => [
|
|
898
|
+
createElementVNode("div", {
|
|
899
|
+
class: "absolute top-0 w-[6px] h-[6px] bg-main rounded-full -translate-x-1/2 -translate-y-1/2 pointer-events-auto cursor-pointer z-[1] hover:z-10",
|
|
900
|
+
style: normalizeStyle({ left: unref(getPointLeft)(item.percent) }),
|
|
901
|
+
onMousedown: withModifiers(() => {
|
|
902
|
+
}, ["stop"]),
|
|
903
|
+
onClick: withModifiers(($event) => unref(clickPoint)(item), ["stop"])
|
|
904
|
+
}, null, 44, ["onMousedown", "onClick"])
|
|
632
905
|
]),
|
|
633
|
-
_: 1
|
|
634
|
-
/* STABLE */
|
|
635
|
-
}, 8, ["content"])
|
|
636
|
-
], 8, ["onClick"])
|
|
637
|
-
]),
|
|
638
|
-
createElementVNode("div", { class: "absolute right-0 top-0 bottom-0 vlc-between-control" }, [
|
|
639
|
-
createElementVNode("div", {
|
|
640
|
-
class: "w-[30px] h-[30px] bg-[#3D6286] flex items-center justify-center clickBox",
|
|
641
|
-
onClick: unref(playNext)
|
|
642
|
-
}, [
|
|
643
|
-
createVNode(unref(ElTooltip), {
|
|
644
|
-
effect: "dark",
|
|
645
|
-
content: $t$1("viewNextVideo"),
|
|
646
|
-
placement: "top"
|
|
647
|
-
}, {
|
|
648
906
|
default: withCtx(() => [
|
|
649
|
-
|
|
650
|
-
"
|
|
651
|
-
|
|
652
|
-
|
|
907
|
+
createElementVNode("div", { class: "text-xs text-main w-full px-3 py-2 box-border" }, [
|
|
908
|
+
createElementVNode("div", { class: "flex items-center" }, [
|
|
909
|
+
createElementVNode("div", { class: "w-[2px] h-[12px] bg-theme rounded" }),
|
|
910
|
+
createElementVNode(
|
|
911
|
+
"span",
|
|
912
|
+
{ class: "ml-2" },
|
|
913
|
+
toDisplayString(unref(formatSeconds)(item.time)),
|
|
914
|
+
1
|
|
915
|
+
/* TEXT */
|
|
916
|
+
)
|
|
917
|
+
]),
|
|
918
|
+
createElementVNode(
|
|
919
|
+
"div",
|
|
920
|
+
{ class: "over_one_line mt-1" },
|
|
921
|
+
toDisplayString(item.content),
|
|
922
|
+
1
|
|
923
|
+
/* TEXT */
|
|
924
|
+
)
|
|
925
|
+
])
|
|
653
926
|
]),
|
|
654
|
-
_:
|
|
655
|
-
/*
|
|
656
|
-
},
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
)
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
createElementVNode(
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
927
|
+
_: 2
|
|
928
|
+
/* DYNAMIC */
|
|
929
|
+
}, 1032, ["teleported"]);
|
|
930
|
+
}),
|
|
931
|
+
128
|
|
932
|
+
/* KEYED_FRAGMENT */
|
|
933
|
+
))
|
|
934
|
+
])
|
|
935
|
+
]),
|
|
936
|
+
createElementVNode("div", { class: "flex items-center justify-center relative h-[46px]" }, [
|
|
937
|
+
unref(videoState) !== "CAN_NOT_PLAY" ? (openBlock(), createElementBlock("div", {
|
|
938
|
+
key: 0,
|
|
939
|
+
class: "absolute left-[0px] flex w-[120px] leading-[20px] text-auxiliary"
|
|
940
|
+
}, [
|
|
941
|
+
createElementVNode(
|
|
942
|
+
"span",
|
|
943
|
+
{
|
|
944
|
+
class: normalizeClass(["is-play-seconds", { "text-main": unref(curTime) !== 0 }])
|
|
945
|
+
},
|
|
946
|
+
toDisplayString(unref(formatSeconds)(unref(curTime))) + '" ',
|
|
947
|
+
3
|
|
948
|
+
/* TEXT, CLASS */
|
|
949
|
+
),
|
|
950
|
+
createElementVNode("span", { class: "mx-1" }, "/"),
|
|
951
|
+
createElementVNode(
|
|
952
|
+
"span",
|
|
953
|
+
{ class: "total-seconds" },
|
|
954
|
+
toDisplayString(unref(formatSeconds)(unref(totalTime))) + '" ',
|
|
673
955
|
1
|
|
674
956
|
/* TEXT */
|
|
675
957
|
)
|
|
676
|
-
]),
|
|
677
|
-
createElementVNode("div", { class: "operator
|
|
678
|
-
createElementVNode("
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
class:
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
100
|
|
686
|
-
)}%, rgb(var(--hy-theme), 0.5) ${unref(getPercent)(unref(value), 100)}% `
|
|
687
|
-
}),
|
|
688
|
-
type: "range",
|
|
689
|
-
onMouseup: ($event) => unref(getNowWh)($event),
|
|
690
|
-
onMousedown: ($event) => isDrop.value = true,
|
|
691
|
-
ref: "progressRef",
|
|
692
|
-
id: "progress",
|
|
693
|
-
"onUpdate:modelValue": ($event) => isRef(value) ? value.value = $event : null
|
|
694
|
-
}, null, 44, ["onMouseup", "onMousedown", "onUpdate:modelValue"]), [
|
|
695
|
-
[vModelText, unref(value)]
|
|
696
|
-
])
|
|
697
|
-
]),
|
|
698
|
-
createElementVNode("div", { class: "left-operator flex text-xs leading-[20px] text-auxiliary" }, [
|
|
699
|
-
createElementVNode(
|
|
700
|
-
"span",
|
|
701
|
-
{ class: "is-play-seconds flex-shrink-0" },
|
|
702
|
-
toDisplayString(unref(formatSeconds)(unref(curTime), Math.floor(unref(totalTime) / 3600))) + '" ',
|
|
703
|
-
1
|
|
704
|
-
/* TEXT */
|
|
705
|
-
),
|
|
706
|
-
createTextVNode(" / "),
|
|
707
|
-
createElementVNode(
|
|
708
|
-
"span",
|
|
709
|
-
{ class: "total-seconds flex-shrink-0" },
|
|
710
|
-
toDisplayString(unref(formatSeconds)(unref(totalTime))) + '" ',
|
|
711
|
-
1
|
|
712
|
-
/* TEXT */
|
|
713
|
-
)
|
|
714
|
-
]),
|
|
715
|
-
unref(canPlay) ? (openBlock(), createElementBlock("div", {
|
|
958
|
+
])) : createCommentVNode("v-if", true),
|
|
959
|
+
createElementVNode("div", { class: "center-operator flex w-[88px] justify-between items-center group-[.is-full]:h-[34px]" }, [
|
|
960
|
+
createElementVNode("span", { onClick: unref(playPrevious) }, [
|
|
961
|
+
createVNode(unref(HyIcon), {
|
|
962
|
+
"svg-name": "ops-audio-previous",
|
|
963
|
+
class: normalizeClass(centerIconClass)
|
|
964
|
+
})
|
|
965
|
+
], 8, ["onClick"]),
|
|
966
|
+
!unref(canPlay) ? (openBlock(), createElementBlock("span", {
|
|
716
967
|
key: 0,
|
|
717
|
-
class: "
|
|
968
|
+
class: "text-info cursor-not-allowed"
|
|
718
969
|
}, [
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
unref(videoState) !== "PLAYING" && unref(canPlay) ? (openBlock(), createElementBlock("span", {
|
|
970
|
+
createVNode(unref(HyIcon), {
|
|
971
|
+
"svg-name": "ops-audio-media-center-audio-play",
|
|
972
|
+
class: normalizeClass(centerIconClass)
|
|
973
|
+
})
|
|
974
|
+
])) : (openBlock(), createElementBlock("span", { key: 1 }, [
|
|
975
|
+
unref(videoState) !== "PLAYING" ? (openBlock(), createElementBlock("span", {
|
|
726
976
|
key: 0,
|
|
727
977
|
onClick: ($event) => unref(playVideo)(unref(videoUrl))
|
|
728
978
|
}, [
|
|
729
979
|
createVNode(unref(HyIcon), {
|
|
730
|
-
"svg-name": "ops-audio-audio-play
|
|
731
|
-
class:
|
|
980
|
+
"svg-name": "ops-audio-media-center-audio-play",
|
|
981
|
+
class: normalizeClass(centerIconClass)
|
|
732
982
|
})
|
|
733
|
-
], 8, ["onClick"])) :
|
|
734
|
-
unref(videoState) === "PLAYING" ? (openBlock(), createElementBlock("span", {
|
|
983
|
+
], 8, ["onClick"])) : (openBlock(), createElementBlock("span", {
|
|
735
984
|
key: 1,
|
|
736
985
|
onClick: unref(pauseVideo)
|
|
737
986
|
}, [
|
|
738
987
|
createVNode(unref(HyIcon), {
|
|
739
|
-
"svg-name": "ops-audio-audio-pause
|
|
740
|
-
class:
|
|
988
|
+
"svg-name": "ops-audio-media-center-audio-pause",
|
|
989
|
+
class: normalizeClass(centerIconClass)
|
|
741
990
|
})
|
|
742
|
-
], 8, ["onClick"]))
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
"svg-name": "ops-audio-audio-next-btn",
|
|
746
|
-
class: "svgBox"
|
|
747
|
-
})
|
|
748
|
-
], 8, ["onClick"])
|
|
749
|
-
])) : createCommentVNode("v-if", true),
|
|
750
|
-
createElementVNode("div", { class: "right-operator flex relative" }, [
|
|
751
|
-
createCommentVNode(" \u901F\u5EA6 "),
|
|
752
|
-
createVNode(unref(ElPopover), {
|
|
753
|
-
placement: "top",
|
|
754
|
-
appendToBody: false,
|
|
755
|
-
"popper-class": "minWidth0_popover popover_darkColor liveBroadcast w-[62px]",
|
|
756
|
-
trigger: "click"
|
|
757
|
-
}, {
|
|
758
|
-
reference: withCtx(() => [
|
|
759
|
-
createElementVNode("div", { class: "text-xs text-auxiliary speed_box flex items-center justify-center clickBox select-none px-1 box-border" }, [
|
|
760
|
-
createElementVNode(
|
|
761
|
-
"div",
|
|
762
|
-
{ class: "overflow-ellipsis overflow-hidden whitespace-nowrap" },
|
|
763
|
-
toDisplayString(unref(speedLabel)),
|
|
764
|
-
1
|
|
765
|
-
/* TEXT */
|
|
766
|
-
)
|
|
767
|
-
])
|
|
768
|
-
]),
|
|
769
|
-
default: withCtx(() => [
|
|
770
|
-
createElementVNode("div", { class: "flex items-center justify-center p-[10px_0]" }, [
|
|
771
|
-
createElementVNode("ul", { class: "text-auxiliary text-xs speedList" }, [
|
|
772
|
-
(openBlock(true), createElementBlock(
|
|
773
|
-
Fragment,
|
|
774
|
-
null,
|
|
775
|
-
renderList(unref(speedList), (item, index) => {
|
|
776
|
-
return openBlock(), createElementBlock("li", {
|
|
777
|
-
class: normalizeClass(["clickBox", { " selectBox": item.value === unref(speed) }]),
|
|
778
|
-
onClick: ($event) => unref(speedFn)(item.value),
|
|
779
|
-
key: index
|
|
780
|
-
}, toDisplayString(item.label), 11, ["onClick"]);
|
|
781
|
-
}),
|
|
782
|
-
128
|
|
783
|
-
/* KEYED_FRAGMENT */
|
|
784
|
-
))
|
|
785
|
-
])
|
|
786
|
-
])
|
|
787
|
-
]),
|
|
788
|
-
_: 1
|
|
789
|
-
/* STABLE */
|
|
790
|
-
}),
|
|
791
|
-
createCommentVNode(" \u58F0\u97F3 "),
|
|
792
|
-
createVNode(unref(ElPopover), {
|
|
793
|
-
placement: "top",
|
|
794
|
-
appendToBody: false,
|
|
795
|
-
"popper-class": "popover_volumeSlider w-[40px]",
|
|
796
|
-
trigger: "click"
|
|
797
|
-
}, {
|
|
798
|
-
reference: withCtx(() => [
|
|
799
|
-
createElementVNode("div", null, [
|
|
800
|
-
createVNode(unref(ElTooltip), {
|
|
801
|
-
class: "item",
|
|
802
|
-
effect: "dark",
|
|
803
|
-
content: $t$1("adjustPlaybackVolume"),
|
|
804
|
-
placement: "top"
|
|
805
|
-
}, {
|
|
806
|
-
default: withCtx(() => [
|
|
807
|
-
createVNode(unref(HyIcon), {
|
|
808
|
-
"svg-name": "dispatch-share-audio-volumn",
|
|
809
|
-
class: "svgBox"
|
|
810
|
-
})
|
|
811
|
-
]),
|
|
812
|
-
_: 1
|
|
813
|
-
/* STABLE */
|
|
814
|
-
}, 8, ["content"])
|
|
815
|
-
])
|
|
816
|
-
]),
|
|
817
|
-
default: withCtx(() => [
|
|
818
|
-
createElementVNode("div", { class: "flex items-center justify-center" }, [
|
|
819
|
-
createVNode(unref(ElSlider), {
|
|
820
|
-
onInput: ($event) => unref(changeVolume)($event),
|
|
821
|
-
class: "volume-slider",
|
|
822
|
-
modelValue: unref(volumeValue),
|
|
823
|
-
"onUpdate:modelValue": ($event) => isRef(volumeValue) ? volumeValue.value = $event : null,
|
|
824
|
-
vertical: "",
|
|
825
|
-
height: "105px"
|
|
826
|
-
}, null, 8, ["onInput", "modelValue", "onUpdate:modelValue"])
|
|
827
|
-
])
|
|
828
|
-
]),
|
|
829
|
-
_: 1
|
|
830
|
-
/* STABLE */
|
|
831
|
-
}),
|
|
832
|
-
createCommentVNode(" \u653E\u5927 "),
|
|
833
|
-
createVNode(unref(ElTooltip), {
|
|
834
|
-
class: "item clickBox",
|
|
835
|
-
effect: "dark",
|
|
836
|
-
content: $t$1("fullScreenSwitch"),
|
|
837
|
-
placement: "top",
|
|
838
|
-
appendToBody: false
|
|
839
|
-
}, {
|
|
840
|
-
default: withCtx(() => [
|
|
841
|
-
createVNode(unref(HyIcon), {
|
|
842
|
-
onClick: unref(clickFullScreen),
|
|
843
|
-
"svg-name": unref(isFullScreen) ? "ops-audio-audio-reduce" : "ops-audio-audio-enlarge",
|
|
844
|
-
class: "svgBox"
|
|
845
|
-
}, null, 8, ["onClick", "svg-name"])
|
|
846
|
-
]),
|
|
847
|
-
_: 1
|
|
848
|
-
/* STABLE */
|
|
849
|
-
}, 8, ["content"])
|
|
850
|
-
])
|
|
851
|
-
])
|
|
852
|
-
],
|
|
853
|
-
64
|
|
854
|
-
/* STABLE_FRAGMENT */
|
|
855
|
-
)),
|
|
856
|
-
__props.downloadFilesType || __props.playRulesType ? (openBlock(), createElementBlock(
|
|
857
|
-
"div",
|
|
858
|
-
{
|
|
859
|
-
key: 3,
|
|
860
|
-
class: normalizeClass(["float-operator-item right-top-operator", { "!right-[43px]": unref(videoState) === "CAN_NOT_PLAY" && __props.playList?.length > 1 }])
|
|
861
|
-
},
|
|
862
|
-
[
|
|
863
|
-
createCommentVNode(" \u4E0B\u8F7D "),
|
|
864
|
-
__props.downloadFilesType ? (openBlock(), createBlock(unref(ElTooltip), {
|
|
865
|
-
key: 0,
|
|
866
|
-
class: "item clickBox",
|
|
867
|
-
effect: "dark",
|
|
868
|
-
content: $t$1("downloadFile"),
|
|
869
|
-
placement: "top"
|
|
870
|
-
}, {
|
|
871
|
-
default: withCtx(() => [
|
|
991
|
+
], 8, ["onClick"]))
|
|
992
|
+
])),
|
|
993
|
+
createElementVNode("span", { onClick: unref(playNext) }, [
|
|
872
994
|
createVNode(unref(HyIcon), {
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
/* STABLE */
|
|
880
|
-
}, 8, ["content"])) : createCommentVNode("v-if", true),
|
|
881
|
-
createCommentVNode(" \u64AD\u653E\u89C4\u5219 "),
|
|
882
|
-
__props.playRulesType && unref(videoState) !== "CAN_NOT_PLAY" ? (openBlock(), createElementBlock("div", {
|
|
995
|
+
"svg-name": "ops-audio-next",
|
|
996
|
+
class: normalizeClass(centerIconClass)
|
|
997
|
+
})
|
|
998
|
+
], 8, ["onClick"])
|
|
999
|
+
]),
|
|
1000
|
+
unref(videoState) !== "CAN_NOT_PLAY" ? (openBlock(), createElementBlock("div", {
|
|
883
1001
|
key: 1,
|
|
884
|
-
class: "
|
|
1002
|
+
class: "absolute right-[0px] flex items-center justify-end"
|
|
885
1003
|
}, [
|
|
886
|
-
(
|
|
1004
|
+
createCommentVNode(" \u901F\u5EA6 "),
|
|
1005
|
+
createVNode(unref(ElPopover), {
|
|
1006
|
+
placement: "top",
|
|
1007
|
+
"popper-class": "minWidth0_popover popover_darkColor liveBroadcast w-[62px]",
|
|
1008
|
+
trigger: "click"
|
|
1009
|
+
}, {
|
|
1010
|
+
reference: withCtx(() => [
|
|
1011
|
+
createElementVNode(
|
|
1012
|
+
"div",
|
|
1013
|
+
{ class: "w-[44px] h-[22px] leading-[18px] mr-3 overflow-hidden rounded border border-main text-center clickBox px-1 box-border" },
|
|
1014
|
+
toDisplayString(unref(speedLabel)),
|
|
1015
|
+
1
|
|
1016
|
+
/* TEXT */
|
|
1017
|
+
)
|
|
1018
|
+
]),
|
|
1019
|
+
default: withCtx(() => [
|
|
1020
|
+
createElementVNode("div", { class: "flex items-center justify-center p-[10px_0]" }, [
|
|
1021
|
+
createElementVNode("ul", { class: "speedList w-full text-auxiliary" }, [
|
|
1022
|
+
(openBlock(true), createElementBlock(
|
|
1023
|
+
Fragment,
|
|
1024
|
+
null,
|
|
1025
|
+
renderList(unref(speedList), (item, index) => {
|
|
1026
|
+
return openBlock(), createElementBlock("li", {
|
|
1027
|
+
class: normalizeClass(["clickBox h-[26px] leading-[26px] text-center hover:text-theme hover:bg-background-3 text-xs", { "text-theme bg-background-3": item.value === unref(speed) }]),
|
|
1028
|
+
onClick: ($event) => unref(speedFn)(item.value),
|
|
1029
|
+
key: index
|
|
1030
|
+
}, toDisplayString(item.label), 11, ["onClick"]);
|
|
1031
|
+
}),
|
|
1032
|
+
128
|
|
1033
|
+
/* KEYED_FRAGMENT */
|
|
1034
|
+
))
|
|
1035
|
+
])
|
|
1036
|
+
])
|
|
1037
|
+
]),
|
|
1038
|
+
_: 1
|
|
1039
|
+
/* STABLE */
|
|
1040
|
+
}),
|
|
1041
|
+
createCommentVNode(" \u58F0\u97F3 "),
|
|
1042
|
+
createVNode(unref(ElPopover), {
|
|
1043
|
+
placement: "top",
|
|
1044
|
+
teleported: !unref(isFullScreen),
|
|
1045
|
+
"popper-class": "popover_volumeSlider w-[40px]",
|
|
1046
|
+
trigger: "click"
|
|
1047
|
+
}, {
|
|
1048
|
+
reference: withCtx(() => [
|
|
1049
|
+
createElementVNode("div", null, [
|
|
1050
|
+
createVNode(unref(ElTooltip), {
|
|
1051
|
+
class: "item",
|
|
1052
|
+
effect: "dark",
|
|
1053
|
+
content: $t$1("adjustPlaybackVolume"),
|
|
1054
|
+
placement: "top",
|
|
1055
|
+
teleported: !unref(isFullScreen)
|
|
1056
|
+
}, {
|
|
1057
|
+
default: withCtx(() => [
|
|
1058
|
+
createVNode(unref(HyIcon), {
|
|
1059
|
+
"svg-name": "dispatch-share-audio-volumn",
|
|
1060
|
+
class: normalizeClass([rightIconClass, "mr-3"])
|
|
1061
|
+
})
|
|
1062
|
+
]),
|
|
1063
|
+
_: 1
|
|
1064
|
+
/* STABLE */
|
|
1065
|
+
}, 8, ["content", "teleported"])
|
|
1066
|
+
])
|
|
1067
|
+
]),
|
|
1068
|
+
default: withCtx(() => [
|
|
1069
|
+
createElementVNode("div", { class: "flex items-center justify-center" }, [
|
|
1070
|
+
createVNode(unref(ElSlider), {
|
|
1071
|
+
onInput: ($event) => unref(changeVolume)($event),
|
|
1072
|
+
class: "volume-slider",
|
|
1073
|
+
modelValue: unref(volumeValue),
|
|
1074
|
+
"onUpdate:modelValue": ($event) => isRef(volumeValue) ? volumeValue.value = $event : null,
|
|
1075
|
+
vertical: "",
|
|
1076
|
+
height: "105px"
|
|
1077
|
+
}, null, 8, ["onInput", "modelValue", "onUpdate:modelValue"])
|
|
1078
|
+
])
|
|
1079
|
+
]),
|
|
1080
|
+
_: 1
|
|
1081
|
+
/* STABLE */
|
|
1082
|
+
}, 8, ["teleported"]),
|
|
1083
|
+
createCommentVNode(" \u653E\u5927 "),
|
|
1084
|
+
createVNode(unref(ElTooltip), {
|
|
1085
|
+
class: "item clickBox",
|
|
1086
|
+
effect: "dark",
|
|
1087
|
+
content: $t$1("fullScreenSwitch"),
|
|
1088
|
+
placement: "top",
|
|
1089
|
+
teleported: !unref(isFullScreen)
|
|
1090
|
+
}, {
|
|
1091
|
+
default: withCtx(() => [
|
|
1092
|
+
createVNode(unref(HyIcon), {
|
|
1093
|
+
onClick: unref(clickFullScreen),
|
|
1094
|
+
"svg-name": unref(isFullScreen) ? "ops-audio-reduce" : "ops-audio-fullscreen",
|
|
1095
|
+
class: normalizeClass([rightIconClass, "mr-3"])
|
|
1096
|
+
}, null, 8, ["onClick", "svg-name"])
|
|
1097
|
+
]),
|
|
1098
|
+
_: 1
|
|
1099
|
+
/* STABLE */
|
|
1100
|
+
}, 8, ["content", "teleported"]),
|
|
1101
|
+
createCommentVNode(" \u9690\u85CF/\u663E\u793A\u753B\u9762\uFF08\u5168\u5C4F\u65F6\u4E0D\u663E\u793A\uFF09 "),
|
|
1102
|
+
!unref(isFullScreen) ? (openBlock(), createElementBlock(
|
|
887
1103
|
Fragment,
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
1104
|
+
{ key: 0 },
|
|
1105
|
+
[
|
|
1106
|
+
unref(isHideVideo) ? (openBlock(), createElementBlock("div", {
|
|
1107
|
+
key: 0,
|
|
1108
|
+
onClick: ($event) => unref(setIsHideVideo)(false)
|
|
1109
|
+
}, [
|
|
1110
|
+
createVNode(unref(ElTooltip), {
|
|
1111
|
+
class: "item",
|
|
1112
|
+
effect: "dark",
|
|
1113
|
+
content: "\u663E\u793A\u753B\u9762",
|
|
1114
|
+
placement: "top"
|
|
1115
|
+
}, {
|
|
1116
|
+
default: withCtx(() => [
|
|
1117
|
+
createVNode(unref(HyIcon), {
|
|
1118
|
+
"svg-name": "dispatch-share1-v3-ai-interpretation-expand",
|
|
1119
|
+
class: normalizeClass(rightIconClass)
|
|
1120
|
+
})
|
|
1121
|
+
]),
|
|
1122
|
+
_: 1
|
|
1123
|
+
/* STABLE */
|
|
1124
|
+
})
|
|
1125
|
+
], 8, ["onClick"])) : (openBlock(), createElementBlock("div", {
|
|
1126
|
+
key: 1,
|
|
1127
|
+
onClick: ($event) => unref(setIsHideVideo)(true)
|
|
893
1128
|
}, [
|
|
894
1129
|
createVNode(unref(ElTooltip), {
|
|
895
|
-
class: "item
|
|
1130
|
+
class: "item",
|
|
896
1131
|
effect: "dark",
|
|
897
|
-
content:
|
|
1132
|
+
content: "\u9690\u85CF\u753B\u9762",
|
|
898
1133
|
placement: "top"
|
|
899
1134
|
}, {
|
|
900
1135
|
default: withCtx(() => [
|
|
901
1136
|
createVNode(unref(HyIcon), {
|
|
902
|
-
"svg-name":
|
|
903
|
-
class:
|
|
904
|
-
}
|
|
1137
|
+
"svg-name": "dispatch-share1-v3-ai-interpretation-foldup",
|
|
1138
|
+
class: normalizeClass(rightIconClass)
|
|
1139
|
+
})
|
|
905
1140
|
]),
|
|
906
|
-
_:
|
|
907
|
-
/*
|
|
908
|
-
}
|
|
909
|
-
], 8, ["onClick"]))
|
|
910
|
-
|
|
911
|
-
|
|
1141
|
+
_: 1
|
|
1142
|
+
/* STABLE */
|
|
1143
|
+
})
|
|
1144
|
+
], 8, ["onClick"]))
|
|
1145
|
+
],
|
|
1146
|
+
64
|
|
1147
|
+
/* STABLE_FRAGMENT */
|
|
1148
|
+
)) : createCommentVNode("v-if", true)
|
|
1149
|
+
])) : createCommentVNode("v-if", true)
|
|
1150
|
+
])
|
|
1151
|
+
]),
|
|
1152
|
+
createCommentVNode(" \u5176\u4ED6\u529F\u80FD "),
|
|
1153
|
+
createElementVNode("div", { class: "px-2 box-border h-[40px] flex items-center justify-between" }, [
|
|
1154
|
+
createElementVNode("div", null, [
|
|
1155
|
+
unref(videoState) !== "CAN_NOT_PLAY" ? (openBlock(), createElementBlock("ul", {
|
|
1156
|
+
key: 0,
|
|
1157
|
+
class: "flex"
|
|
1158
|
+
}, [
|
|
1159
|
+
__props.playRulesType ? (openBlock(), createElementBlock("li", {
|
|
1160
|
+
key: 0,
|
|
1161
|
+
class: "mr-4 clickBox"
|
|
1162
|
+
}, [
|
|
1163
|
+
(openBlock(true), createElementBlock(
|
|
1164
|
+
Fragment,
|
|
1165
|
+
null,
|
|
1166
|
+
renderList(unref(playRuleslist), (item, index) => {
|
|
1167
|
+
return withDirectives((openBlock(), createElementBlock("div", {
|
|
1168
|
+
onClick: ($event) => unref(playRulesFn)(item.value),
|
|
1169
|
+
key: index + "playRuleslist"
|
|
1170
|
+
}, [
|
|
1171
|
+
createVNode(unref(HyIcon), {
|
|
1172
|
+
class: "!w-[12px] !h-[12px]",
|
|
1173
|
+
"svg-name": item.svgName
|
|
1174
|
+
}, null, 8, ["svg-name"]),
|
|
1175
|
+
createElementVNode(
|
|
1176
|
+
"span",
|
|
1177
|
+
{ class: "ml-2" },
|
|
1178
|
+
toDisplayString(item.label),
|
|
1179
|
+
1
|
|
1180
|
+
/* TEXT */
|
|
1181
|
+
)
|
|
1182
|
+
], 8, ["onClick"])), [
|
|
1183
|
+
[vShow, unref(playRules) === item.value]
|
|
1184
|
+
]);
|
|
1185
|
+
}),
|
|
1186
|
+
128
|
|
1187
|
+
/* KEYED_FRAGMENT */
|
|
1188
|
+
))
|
|
1189
|
+
])) : createCommentVNode("v-if", true),
|
|
1190
|
+
createCommentVNode(' <li class="mr-4 clickBox">'),
|
|
1191
|
+
createCommentVNode(' <HyIcon svg-name="ops-audio-audio-reduce" class="!w-[12px] !h-[12px]"></HyIcon>'),
|
|
1192
|
+
createCommentVNode(' <span class="ml-2">\u8BED\u4E49\u68C0\u7D22</span>'),
|
|
1193
|
+
createCommentVNode(" </li>"),
|
|
1194
|
+
createCommentVNode(' <li class="mr-4 clickBox">'),
|
|
1195
|
+
createCommentVNode(' <HyIcon svg-name="ops-audio-audio-reduce" class="!w-[12px] !h-[12px]"></HyIcon>'),
|
|
1196
|
+
createCommentVNode(' <span class="ml-2">\u89C6\u9891\u526A\u8F91</span>'),
|
|
1197
|
+
createCommentVNode(" </li>"),
|
|
1198
|
+
renderSlot(_ctx.$slots, "left-operation", {}, void 0, true),
|
|
1199
|
+
__props.downloadFilesType ? (openBlock(), createElementBlock("li", {
|
|
1200
|
+
key: 1,
|
|
1201
|
+
class: "mr-4 clickBox",
|
|
1202
|
+
onClick: unref(downloadFn)
|
|
1203
|
+
}, [
|
|
1204
|
+
createVNode(unref(HyIcon), {
|
|
1205
|
+
"svg-name": "ops-button-export",
|
|
1206
|
+
class: "!w-[12px] !h-[12px]"
|
|
912
1207
|
}),
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
1208
|
+
createElementVNode(
|
|
1209
|
+
"span",
|
|
1210
|
+
{ class: "ml-2" },
|
|
1211
|
+
toDisplayString($t$1("downloadFile")),
|
|
1212
|
+
1
|
|
1213
|
+
/* TEXT */
|
|
1214
|
+
)
|
|
1215
|
+
], 8, ["onClick"])) : createCommentVNode("v-if", true)
|
|
1216
|
+
])) : createCommentVNode("v-if", true)
|
|
1217
|
+
]),
|
|
1218
|
+
createElementVNode("div", null, [
|
|
1219
|
+
renderSlot(_ctx.$slots, "right-operation", {}, void 0, true)
|
|
1220
|
+
])
|
|
1221
|
+
])
|
|
922
1222
|
],
|
|
923
1223
|
2
|
|
924
1224
|
/* CLASS */
|