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