hy-dispatch-ui-v3 0.2.88 → 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 +89 -78
- 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 +615 -336
- 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 +614 -335
- package/lib/utils/timeUtils.js +8 -29
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/es/components/hyVideoPlayer/videoPlayer1.vue.mjs +0 -8
- package/es/components/hyVideoPlayer/videoPlayer12.vue.mjs +0 -947
- package/lib/components/hyVideoPlayer/videoPlayer1.vue.js +0 -12
- package/lib/components/hyVideoPlayer/videoPlayer12.vue.js +0 -951
- /package/es/components/hyAudioPlayer/{style → hyAudioPlayer/style}/audioPlayer.scss +0 -0
- /package/lib/components/hyAudioPlayer/{style → hyAudioPlayer/style}/audioPlayer.scss +0 -0
|
@@ -19,11 +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
|
+
});
|
|
22
25
|
const centerIconClass = "group-[.is-full]:!w-[34px] group-[.is-full]:!h-[34px]";
|
|
23
26
|
const rightIconClass = "group-[.is-full]:!w-[28px] group-[.is-full]:!h-[28px] group-[.is-full]:mr-5";
|
|
24
|
-
const floatIconClass = "!w-[26px] !h-[26px]";
|
|
25
27
|
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
26
|
-
|
|
28
|
+
...__default__,
|
|
27
29
|
props: {
|
|
28
30
|
/* 下载 */
|
|
29
31
|
downloadFilesType: {
|
|
@@ -46,6 +48,13 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
46
48
|
return [];
|
|
47
49
|
}
|
|
48
50
|
},
|
|
51
|
+
// 打点列表
|
|
52
|
+
pointList: {
|
|
53
|
+
type: Array,
|
|
54
|
+
default: () => {
|
|
55
|
+
return [];
|
|
56
|
+
}
|
|
57
|
+
},
|
|
49
58
|
// 是否使用不可拖拽弹框模式
|
|
50
59
|
contentMode: {
|
|
51
60
|
type: Boolean,
|
|
@@ -56,6 +65,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
56
65
|
},
|
|
57
66
|
emits: ["can-play", "play-start", "play-end", "on-time-update"],
|
|
58
67
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
68
|
+
;
|
|
59
69
|
const emit = __emit;
|
|
60
70
|
useLocale.registerComponentLocale("HyVideoPlayer", index);
|
|
61
71
|
vue.onUnmounted(() => {
|
|
@@ -66,14 +76,49 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
66
76
|
function useVideoPlayer(hy) {
|
|
67
77
|
const { baseMainStore } = useBaseMainStore.useBaseMainStore();
|
|
68
78
|
vue.onUnmounted(() => {
|
|
69
|
-
hy.
|
|
79
|
+
hy.destroyVideo();
|
|
80
|
+
hy.destroyVideoBoxObserver();
|
|
81
|
+
hy.destroyFullScreenEvent();
|
|
70
82
|
});
|
|
71
83
|
vue.onMounted(() => {
|
|
72
84
|
hy.playRulesFn(3);
|
|
73
85
|
hy.speedFn(1);
|
|
74
86
|
hy.initVideo();
|
|
75
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
|
+
);
|
|
76
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);
|
|
77
122
|
const isCanNotPlayType2 = vue.ref(true);
|
|
78
123
|
const speedList2 = vue.ref([
|
|
79
124
|
{ value: 0.5, label: "0.5 X" },
|
|
@@ -87,17 +132,17 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
87
132
|
{
|
|
88
133
|
value: 1,
|
|
89
134
|
label: $t("stopAfterPlayback"),
|
|
90
|
-
svgName: "ops-audio-
|
|
135
|
+
svgName: "ops-audio-stopplayback"
|
|
91
136
|
},
|
|
92
137
|
{
|
|
93
138
|
value: 2,
|
|
94
139
|
label: $t("continuousPlayback"),
|
|
95
|
-
svgName: "ops-audio-
|
|
140
|
+
svgName: "ops-audio-cycle"
|
|
96
141
|
},
|
|
97
142
|
{
|
|
98
143
|
value: 3,
|
|
99
144
|
label: $t("loopPlayback"),
|
|
100
|
-
svgName: "ops-audio-
|
|
145
|
+
svgName: "ops-audio-sequentialplay"
|
|
101
146
|
}
|
|
102
147
|
]);
|
|
103
148
|
const playRules2 = vue.ref(1);
|
|
@@ -112,9 +157,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
112
157
|
const isHideVideo2 = vue.ref(false);
|
|
113
158
|
const isFullScreen2 = vue.ref(false);
|
|
114
159
|
const volumeValue2 = vue.ref(100);
|
|
115
|
-
const isChangeVolume2 = vue.ref(false);
|
|
116
160
|
const hasVLC2 = vue.ref(true);
|
|
117
|
-
const decodeSuccess2 = vue.ref(false);
|
|
118
161
|
const loading2 = vue.ref(false);
|
|
119
162
|
const buffering2 = vue.ref(false);
|
|
120
163
|
const speedLabel2 = vue.computed(() => {
|
|
@@ -128,7 +171,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
128
171
|
return hy.props.playList.find((item) => item.id === hy.videoItem.value.id);
|
|
129
172
|
});
|
|
130
173
|
const canPlay2 = vue.computed(() => {
|
|
131
|
-
return hy.
|
|
174
|
+
return !!hy.videoUrl.value && hy.videoState.value !== "CAN_NOT_PLAY";
|
|
132
175
|
});
|
|
133
176
|
function setIsHideVideo2(newIsHideVideo) {
|
|
134
177
|
hy.isHideVideo.value = newIsHideVideo;
|
|
@@ -142,8 +185,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
142
185
|
}
|
|
143
186
|
function speedFn2(newSpeed) {
|
|
144
187
|
hy.speed.value = newSpeed;
|
|
145
|
-
if (
|
|
146
|
-
|
|
188
|
+
if (hy.videoEl.value) {
|
|
189
|
+
hy.videoEl.value.playbackRate = newSpeed;
|
|
147
190
|
}
|
|
148
191
|
}
|
|
149
192
|
function findIndexFn2() {
|
|
@@ -152,7 +195,6 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
152
195
|
function playNext2() {
|
|
153
196
|
const findIndex = hy.findIndexFn();
|
|
154
197
|
if (findIndex !== hy.props.playList.length - 1) {
|
|
155
|
-
hy.decodeSuccess.value = false;
|
|
156
198
|
const item = hy.props.playList[findIndex + 1];
|
|
157
199
|
hy.playVideo(item.filePath, item);
|
|
158
200
|
} else {
|
|
@@ -162,16 +204,39 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
162
204
|
function playPrevious2() {
|
|
163
205
|
const findIndex = hy.findIndexFn();
|
|
164
206
|
if (findIndex > 0 && findIndex !== hy.props.playList.length) {
|
|
165
|
-
hy.decodeSuccess.value = false;
|
|
166
207
|
const item = hy.props.playList[findIndex - 1];
|
|
167
208
|
hy.playVideo(item.filePath, item);
|
|
168
209
|
} else {
|
|
169
210
|
elementPlus.ElMessage.warning($t("currentIsTheFirstItem"));
|
|
170
211
|
}
|
|
171
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
|
+
}
|
|
172
228
|
async function playVideo2(filePath, item) {
|
|
173
229
|
const { isSupport } = is.isSupportH265();
|
|
174
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;
|
|
175
240
|
hy.videoState.value = "CAN_NOT_PLAY";
|
|
176
241
|
hy.isCanNotPlayType.value = true;
|
|
177
242
|
return;
|
|
@@ -181,9 +246,11 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
181
246
|
await vue.nextTick();
|
|
182
247
|
hy.initVideo();
|
|
183
248
|
}
|
|
249
|
+
if (!hy.videoEl.value) return;
|
|
184
250
|
if (item) {
|
|
185
251
|
if (item.id !== hy.videoItem.value.id || !hy.videoEl.value.src) {
|
|
186
252
|
hy.loading.value = true;
|
|
253
|
+
hy.pointReady.value = false;
|
|
187
254
|
hy.videoItem.value = item;
|
|
188
255
|
hy.videoUrl.value = filePath;
|
|
189
256
|
hy.videoEl.value.src = filePath;
|
|
@@ -193,13 +260,11 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
193
260
|
return false;
|
|
194
261
|
}
|
|
195
262
|
}
|
|
196
|
-
console.log("hy.videoItem.value.playSeconds", hy.videoItem.value.playSeconds);
|
|
197
263
|
if (hy.videoItem.value.playSeconds) {
|
|
198
264
|
hy.jumpDuration(hy.videoItem.value.playSeconds);
|
|
199
265
|
}
|
|
200
266
|
vue.nextTick(() => {
|
|
201
|
-
hy.
|
|
202
|
-
hy.videoState.value = "PLAYING";
|
|
267
|
+
hy.safePlay();
|
|
203
268
|
});
|
|
204
269
|
}
|
|
205
270
|
function createDownloadTask2(mediaFiles) {
|
|
@@ -223,6 +288,10 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
223
288
|
hy.videoEl.value.volume = hy.volumeValue.value / 100;
|
|
224
289
|
}
|
|
225
290
|
function getNowWh2() {
|
|
291
|
+
if (!hy.videoEl.value) {
|
|
292
|
+
hy.isDrop.value = false;
|
|
293
|
+
return;
|
|
294
|
+
}
|
|
226
295
|
hy.curTime.value = hy.totalTime.value * (hy.value.value / 100);
|
|
227
296
|
hy.videoEl.value.currentTime = hy.curTime.value;
|
|
228
297
|
hy.isDrop.value = false;
|
|
@@ -237,7 +306,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
237
306
|
}
|
|
238
307
|
function resumePlay2() {
|
|
239
308
|
if (hy.videoState.value === "CAN_NOT_PLAY") return;
|
|
240
|
-
hy.
|
|
309
|
+
hy.safePlay();
|
|
241
310
|
}
|
|
242
311
|
function pauseVideo2() {
|
|
243
312
|
if (hy.videoState.value === "CAN_NOT_PLAY") return;
|
|
@@ -245,18 +314,24 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
245
314
|
hy.videoState.value = "PAUSE";
|
|
246
315
|
}
|
|
247
316
|
function initVideo2() {
|
|
248
|
-
hy.videoEl.value =
|
|
317
|
+
hy.videoEl.value = hy.videoRef.value;
|
|
318
|
+
if (!hy.videoEl.value) return;
|
|
249
319
|
hy.videoEl.value.addEventListener("canplay", (e) => {
|
|
250
|
-
hy.buffering.value = true;
|
|
251
320
|
hy.loading.value = false;
|
|
252
|
-
|
|
321
|
+
hy.buffering.value = false;
|
|
322
|
+
const { videoWidth, videoHeight, webkitVideoDecodedByteCount } = e.target || {};
|
|
323
|
+
const decodeFailed = webkitVideoDecodedByteCount !== void 0 && !webkitVideoDecodedByteCount;
|
|
324
|
+
if (!videoWidth || !videoHeight || decodeFailed) {
|
|
253
325
|
hy.videoEl.value.pause();
|
|
254
326
|
hy.videoState.value = "CAN_NOT_PLAY";
|
|
255
327
|
hy.isCanNotPlayType.value = true;
|
|
256
328
|
return;
|
|
257
329
|
}
|
|
258
|
-
hy.videoState.value
|
|
330
|
+
if (hy.videoState.value !== "PLAYING") {
|
|
331
|
+
hy.videoState.value = "IS_LOAD";
|
|
332
|
+
}
|
|
259
333
|
hy.totalTime.value = Math.floor(hy.videoEl.value.duration);
|
|
334
|
+
hy.pointReady.value = true;
|
|
260
335
|
emit("can-play", hy.totalTime.value);
|
|
261
336
|
});
|
|
262
337
|
hy.videoEl.value.addEventListener("play", () => {
|
|
@@ -277,15 +352,19 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
277
352
|
return;
|
|
278
353
|
}
|
|
279
354
|
hy.buffering.value = false;
|
|
280
|
-
hy.videoState.value
|
|
355
|
+
if (hy.videoState.value !== "PLAY_END") {
|
|
356
|
+
hy.videoState.value = "PAUSE";
|
|
357
|
+
}
|
|
281
358
|
});
|
|
282
359
|
hy.videoEl.value.addEventListener("ended", () => {
|
|
283
360
|
hy.videoState.value = "PLAY_END";
|
|
284
361
|
if (hy.playRules.value === 2) {
|
|
285
|
-
hy.
|
|
362
|
+
if (hy.findIndexFn() < hy.props.playList.length - 1) {
|
|
363
|
+
hy.playNext();
|
|
364
|
+
}
|
|
286
365
|
} else if (hy.playRules.value === 3) {
|
|
287
|
-
hy.videoEl.value.
|
|
288
|
-
hy.
|
|
366
|
+
hy.videoEl.value.currentTime = 0;
|
|
367
|
+
hy.safePlay();
|
|
289
368
|
}
|
|
290
369
|
emit("play-end");
|
|
291
370
|
});
|
|
@@ -295,18 +374,9 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
295
374
|
if (hy.isCanNotPlay(e)) {
|
|
296
375
|
return;
|
|
297
376
|
}
|
|
298
|
-
hy.
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
hy.curTime.value = Math.floor(hy.videoEl.value.currentTime);
|
|
302
|
-
} else {
|
|
303
|
-
setTimeout(() => {
|
|
304
|
-
if (hy.videoEl.value) {
|
|
305
|
-
hy.curTime.value = Math.floor(hy.videoEl.value.currentTime);
|
|
306
|
-
}
|
|
307
|
-
}, 1e3);
|
|
308
|
-
}
|
|
309
|
-
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;
|
|
310
380
|
emit("on-time-update", hy.curTime.value);
|
|
311
381
|
}
|
|
312
382
|
},
|
|
@@ -315,12 +385,22 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
315
385
|
hy.videoEl.value.addEventListener("error", (e) => {
|
|
316
386
|
hy.buffering.value = false;
|
|
317
387
|
hy.loading.value = false;
|
|
388
|
+
hy.pointReady.value = false;
|
|
318
389
|
hy.videoState.value = "CAN_NOT_PLAY";
|
|
319
390
|
hy.isCanNotPlayType.value = hy.isCantPlayType(e);
|
|
320
391
|
console.error("error", e);
|
|
321
392
|
hy.videoEl.value = null;
|
|
322
393
|
});
|
|
323
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
|
+
}
|
|
324
404
|
function isCantPlayType2(e) {
|
|
325
405
|
if (e.target.error) {
|
|
326
406
|
const { code, message } = e.target.error;
|
|
@@ -339,15 +419,70 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
339
419
|
return false;
|
|
340
420
|
}
|
|
341
421
|
function initFullScreenEvent2() {
|
|
342
|
-
document.addEventListener("fullscreenchange",
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
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();
|
|
348
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
|
+
}
|
|
349
483
|
}
|
|
350
484
|
function jumpDuration2(s) {
|
|
485
|
+
if (!hy.videoEl.value) return;
|
|
351
486
|
hy.videoEl.value.currentTime = s;
|
|
352
487
|
}
|
|
353
488
|
function clickFullScreen2() {
|
|
@@ -360,12 +495,15 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
360
495
|
function fullScreen2() {
|
|
361
496
|
const el = document.documentElement;
|
|
362
497
|
if (el.requestFullscreen) {
|
|
363
|
-
|
|
498
|
+
hy.isSelfFullScreen.value = true;
|
|
499
|
+
el.requestFullscreen().catch(() => {
|
|
500
|
+
hy.isSelfFullScreen.value = false;
|
|
501
|
+
});
|
|
364
502
|
}
|
|
365
503
|
}
|
|
366
504
|
function exitFullscreen2() {
|
|
367
505
|
const el = document;
|
|
368
|
-
if (el.exitFullscreen) {
|
|
506
|
+
if (el.exitFullscreen && el.fullscreenElement) {
|
|
369
507
|
el.exitFullscreen();
|
|
370
508
|
}
|
|
371
509
|
}
|
|
@@ -377,7 +515,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
377
515
|
});
|
|
378
516
|
}
|
|
379
517
|
function downloadVLC2() {
|
|
380
|
-
const url = JSON.parse(
|
|
518
|
+
const url = JSON.parse(window.sessionStorage.getItem("entryList"))?.toolSupport;
|
|
381
519
|
if (!url) {
|
|
382
520
|
elementPlus.ElMessage.error($t("dataError"));
|
|
383
521
|
return;
|
|
@@ -404,6 +542,17 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
404
542
|
}
|
|
405
543
|
}
|
|
406
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,
|
|
407
556
|
isCanNotPlayType: isCanNotPlayType2,
|
|
408
557
|
speedList: speedList2,
|
|
409
558
|
speed: speed2,
|
|
@@ -420,9 +569,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
420
569
|
isHideVideo: isHideVideo2,
|
|
421
570
|
isFullScreen: isFullScreen2,
|
|
422
571
|
volumeValue: volumeValue2,
|
|
423
|
-
isChangeVolume: isChangeVolume2,
|
|
424
572
|
hasVLC: hasVLC2,
|
|
425
|
-
decodeSuccess: decodeSuccess2,
|
|
426
573
|
loading: loading2,
|
|
427
574
|
buffering: buffering2,
|
|
428
575
|
speedLabel: speedLabel2,
|
|
@@ -434,6 +581,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
434
581
|
findIndexFn: findIndexFn2,
|
|
435
582
|
playNext: playNext2,
|
|
436
583
|
playPrevious: playPrevious2,
|
|
584
|
+
safePlay: safePlay2,
|
|
437
585
|
playVideo: playVideo2,
|
|
438
586
|
createDownloadTask: createDownloadTask2,
|
|
439
587
|
downloadFn: downloadFn2,
|
|
@@ -443,9 +591,16 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
443
591
|
resumePlay: resumePlay2,
|
|
444
592
|
pauseVideo: pauseVideo2,
|
|
445
593
|
initVideo: initVideo2,
|
|
594
|
+
destroyVideo: destroyVideo2,
|
|
446
595
|
isCantPlayType: isCantPlayType2,
|
|
447
596
|
isCanNotPlay: isCanNotPlay2,
|
|
448
597
|
initFullScreenEvent: initFullScreenEvent2,
|
|
598
|
+
destroyFullScreenEvent: destroyFullScreenEvent2,
|
|
599
|
+
fullscreenchangeHandler: fullscreenchangeHandler2,
|
|
600
|
+
calculate16To9SizeInContainer: calculate16To9SizeInContainer2,
|
|
601
|
+
updateFullVideoSize: updateFullVideoSize2,
|
|
602
|
+
initVideoBoxObserver: initVideoBoxObserver2,
|
|
603
|
+
destroyVideoBoxObserver: destroyVideoBoxObserver2,
|
|
449
604
|
jumpDuration: jumpDuration2,
|
|
450
605
|
clickFullScreen: clickFullScreen2,
|
|
451
606
|
fullScreen: fullScreen2,
|
|
@@ -456,29 +611,38 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
456
611
|
}
|
|
457
612
|
const {
|
|
458
613
|
buffering,
|
|
614
|
+
calculate16To9SizeInContainer,
|
|
459
615
|
canPlay,
|
|
460
616
|
changeVolume,
|
|
461
617
|
clickFullScreen,
|
|
618
|
+
clickPoint,
|
|
462
619
|
createDownloadTask,
|
|
463
620
|
curTime,
|
|
464
|
-
|
|
621
|
+
destroyFullScreenEvent,
|
|
622
|
+
destroyVideo,
|
|
623
|
+
destroyVideoBoxObserver,
|
|
465
624
|
downloadFn,
|
|
466
625
|
downloadVLC,
|
|
467
626
|
exitFullscreen,
|
|
468
627
|
findIndexFn,
|
|
469
628
|
fullScreen,
|
|
629
|
+
fullVideoHeight,
|
|
630
|
+
fullVideoWidth,
|
|
631
|
+
fullscreenchangeHandler,
|
|
470
632
|
getNowWh,
|
|
471
633
|
getPercent,
|
|
634
|
+
getPointLeft,
|
|
472
635
|
hasVLC,
|
|
473
636
|
initFullScreenEvent,
|
|
474
637
|
initVideo,
|
|
638
|
+
initVideoBoxObserver,
|
|
475
639
|
isCanNotPlay,
|
|
476
640
|
isCanNotPlayType,
|
|
477
641
|
isCantPlayType,
|
|
478
|
-
isChangeVolume,
|
|
479
642
|
isDrop,
|
|
480
643
|
isFullScreen,
|
|
481
644
|
isHideVideo,
|
|
645
|
+
isSelfFullScreen,
|
|
482
646
|
jumpDuration,
|
|
483
647
|
loading,
|
|
484
648
|
openVLC,
|
|
@@ -490,26 +654,44 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
490
654
|
playRulesFn,
|
|
491
655
|
playRuleslist,
|
|
492
656
|
playVideo,
|
|
657
|
+
pointMarkers,
|
|
658
|
+
pointReady,
|
|
659
|
+
progressThumbWidth,
|
|
493
660
|
resumePlay,
|
|
661
|
+
safePlay,
|
|
494
662
|
setIsHideVideo,
|
|
495
663
|
speed,
|
|
496
664
|
speedFn,
|
|
497
665
|
speedLabel,
|
|
498
666
|
speedList,
|
|
499
667
|
totalTime,
|
|
668
|
+
updateFullVideoSize,
|
|
500
669
|
value,
|
|
670
|
+
videoBoxObserver,
|
|
671
|
+
videoBoxRef,
|
|
501
672
|
videoEl,
|
|
502
673
|
videoItem,
|
|
674
|
+
videoRef,
|
|
503
675
|
videoState,
|
|
504
676
|
videoUrl,
|
|
505
677
|
volumeValue
|
|
506
678
|
} = useMixins.useMixins({ props }, [useVideoPlayer]);
|
|
507
679
|
__expose({
|
|
508
|
-
playVideo
|
|
680
|
+
playVideo,
|
|
681
|
+
pauseVideo,
|
|
682
|
+
resumePlay,
|
|
683
|
+
jumpDuration
|
|
509
684
|
});
|
|
510
685
|
return (_ctx, _cache) => {
|
|
511
|
-
return vue.openBlock(), vue.createElementBlock(
|
|
512
|
-
|
|
686
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
687
|
+
"div",
|
|
688
|
+
{
|
|
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
|
+
])
|
|
693
|
+
},
|
|
694
|
+
[
|
|
513
695
|
vue.createElementVNode(
|
|
514
696
|
"div",
|
|
515
697
|
{
|
|
@@ -522,140 +704,163 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
522
704
|
3
|
|
523
705
|
/* TEXT, CLASS */
|
|
524
706
|
),
|
|
707
|
+
vue.createCommentVNode(" \u753B\u9762\u5BBD\u9AD8 "),
|
|
525
708
|
vue.createElementVNode(
|
|
526
709
|
"div",
|
|
527
710
|
{
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
}, "overflow-hidden relative"]),
|
|
532
|
-
style: { "aspect-ratio": "16 / 9" }
|
|
711
|
+
ref_key: "videoBoxRef",
|
|
712
|
+
ref: videoBoxRef,
|
|
713
|
+
class: vue.normalizeClass(vue.unref(isFullScreen) ? "flex items-center justify-center flex-grow h-0" : "")
|
|
533
714
|
},
|
|
534
715
|
[
|
|
535
|
-
vue.
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
"
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
vue.unref(videoItem) && vue.unref(videoItem).csFile === 1 && vue.unref(videoItem).onlineState !== 1 ? (vue.openBlock(), vue.createElementBlock(
|
|
554
|
-
vue.Fragment,
|
|
555
|
-
{ key: 0 },
|
|
556
|
-
[
|
|
557
|
-
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)]" }, [
|
|
558
|
-
vue.createElementVNode("div", { class: "w-[42px] h-[42px] rounded-full border-[1px] border-dashed border-danger-2 flex justify-center items-center" }, [
|
|
559
|
-
vue.createVNode(vue.unref(index$2.HyIcon), {
|
|
560
|
-
"svg-name": "ops-button-icon-brok-link",
|
|
561
|
-
class: "!w-[24px] !h-[24px] text-danger-2"
|
|
562
|
-
})
|
|
563
|
-
])
|
|
564
|
-
]),
|
|
565
|
-
vue.createElementVNode(
|
|
566
|
-
"span",
|
|
567
|
-
{ class: "text-xs text-auxiliary mt-4" },
|
|
568
|
-
vue.toDisplayString($t("fileLoadingFailed")),
|
|
569
|
-
1
|
|
570
|
-
/* TEXT */
|
|
571
|
-
),
|
|
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` : ""
|
|
726
|
+
})
|
|
727
|
+
},
|
|
728
|
+
[
|
|
729
|
+
(vue.unref(loading) || vue.unref(buffering)) && vue.unref(videoState) !== "CAN_NOT_PLAY" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
730
|
+
key: 0,
|
|
731
|
+
class: "w-full h-full flex flex-col justify-center items-center absolute top-0 left-0"
|
|
732
|
+
}, [
|
|
733
|
+
vue.createVNode(mediaLoading.default),
|
|
572
734
|
vue.createElementVNode(
|
|
573
735
|
"span",
|
|
574
|
-
{ class: "text-xs text-
|
|
575
|
-
vue.toDisplayString($t("
|
|
736
|
+
{ class: "text-xs text-theme mt-4" },
|
|
737
|
+
"..." + vue.toDisplayString($t("videoResourcesAreLoading")) + "...",
|
|
576
738
|
1
|
|
577
739
|
/* TEXT */
|
|
578
740
|
)
|
|
579
|
-
],
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
class: "
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
"svg-name": "ops-audio-media-center-left-ripple",
|
|
597
|
-
class: "!w-[12px] !h-[12px]"
|
|
598
|
-
})
|
|
599
|
-
]),
|
|
600
|
-
vue.createElementVNode(
|
|
601
|
-
"span",
|
|
602
|
-
{ class: "text-theme mt-3 mb-[14px]" },
|
|
603
|
-
vue.toDisplayString(vue.unref(isCanNotPlayType) ? $t("vlcPlayerTip") : $t("videoCannotBePlayed")),
|
|
604
|
-
1
|
|
605
|
-
/* TEXT */
|
|
606
|
-
),
|
|
607
|
-
vue.unref(isCanNotPlayType) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
608
|
-
key: 0,
|
|
609
|
-
class: "flex justify-center"
|
|
610
|
-
}, [
|
|
611
|
-
vue.unref(hasVLC) ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.HyButton), {
|
|
612
|
-
key: 0,
|
|
613
|
-
class: "",
|
|
614
|
-
onClick: vue.unref(openVLC)
|
|
615
|
-
}, {
|
|
616
|
-
default: vue.withCtx(() => [
|
|
617
|
-
vue.createTextVNode(
|
|
618
|
-
vue.toDisplayString($t("clickPlay")),
|
|
619
|
-
1
|
|
620
|
-
/* TEXT */
|
|
621
|
-
)
|
|
741
|
+
])) : vue.createCommentVNode("v-if", true),
|
|
742
|
+
vue.unref(videoState) === "CAN_NOT_PLAY" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
743
|
+
key: 1,
|
|
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
|
+
])
|
|
622
758
|
]),
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
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
|
+
})
|
|
636
793
|
]),
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
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" }),
|
|
851
|
+
vue.createTextVNode(
|
|
852
|
+
" " + vue.toDisplayString($t("yourBrowserDoesNotSupportHTMLVideoPlayback")),
|
|
853
|
+
1
|
|
854
|
+
/* TEXT */
|
|
855
|
+
)
|
|
856
|
+
],
|
|
857
|
+
512
|
|
858
|
+
/* NEED_PATCH */
|
|
859
|
+
))
|
|
860
|
+
],
|
|
861
|
+
6
|
|
862
|
+
/* CLASS, STYLE */
|
|
863
|
+
)
|
|
659
864
|
],
|
|
660
865
|
2
|
|
661
866
|
/* CLASS */
|
|
@@ -663,32 +868,86 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
663
868
|
vue.createCommentVNode(" \u63A7\u5236\u8FDB\u5EA6 "),
|
|
664
869
|
vue.createElementVNode("div", { class: "px-2 box-border border-b border-border" }, [
|
|
665
870
|
vue.createCommentVNode(" \u8FDB\u5EA6\u6761 "),
|
|
666
|
-
vue.
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
vue.unref(
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
"onUpdate:modelValue"
|
|
681
|
-
|
|
682
|
-
|
|
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"
|
|
900
|
+
}, {
|
|
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"])
|
|
909
|
+
]),
|
|
910
|
+
default: vue.withCtx(() => [
|
|
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
|
+
])
|
|
930
|
+
]),
|
|
931
|
+
_: 2
|
|
932
|
+
/* DYNAMIC */
|
|
933
|
+
}, 1032, ["teleported"]);
|
|
934
|
+
}),
|
|
935
|
+
128
|
|
936
|
+
/* KEYED_FRAGMENT */
|
|
937
|
+
))
|
|
938
|
+
])
|
|
683
939
|
]),
|
|
684
940
|
vue.createElementVNode("div", { class: "flex items-center justify-center relative h-[46px]" }, [
|
|
685
|
-
vue.
|
|
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
|
+
}, [
|
|
686
945
|
vue.createElementVNode(
|
|
687
946
|
"span",
|
|
688
947
|
{
|
|
689
948
|
class: vue.normalizeClass(["is-play-seconds", { "text-main": vue.unref(curTime) !== 0 }])
|
|
690
949
|
},
|
|
691
|
-
vue.toDisplayString(vue.unref(timeUtils.formatSeconds)(vue.unref(curTime)
|
|
950
|
+
vue.toDisplayString(vue.unref(timeUtils.formatSeconds)(vue.unref(curTime))) + '" ',
|
|
692
951
|
3
|
|
693
952
|
/* TEXT, CLASS */
|
|
694
953
|
),
|
|
@@ -700,60 +959,66 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
700
959
|
1
|
|
701
960
|
/* TEXT */
|
|
702
961
|
)
|
|
703
|
-
]),
|
|
704
|
-
vue.
|
|
705
|
-
key: 0,
|
|
706
|
-
class: "center-operator flex w-[88px] justify-between items-center group-[.is-full]:h-[34px]"
|
|
707
|
-
}, [
|
|
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]" }, [
|
|
708
964
|
vue.createElementVNode("span", { onClick: vue.unref(playPrevious) }, [
|
|
709
965
|
vue.createVNode(vue.unref(index$2.HyIcon), {
|
|
710
|
-
"svg-name": "ops-audio-
|
|
966
|
+
"svg-name": "ops-audio-previous",
|
|
711
967
|
class: vue.normalizeClass(centerIconClass)
|
|
712
968
|
})
|
|
713
969
|
], 8, ["onClick"]),
|
|
714
|
-
vue.unref(
|
|
970
|
+
!vue.unref(canPlay) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
715
971
|
key: 0,
|
|
716
|
-
|
|
717
|
-
}, [
|
|
718
|
-
vue.createVNode(vue.unref(index$2.HyIcon), {
|
|
719
|
-
"svg-name": "ops-audio-audio-play-btn",
|
|
720
|
-
class: vue.normalizeClass(centerIconClass)
|
|
721
|
-
})
|
|
722
|
-
], 8, ["onClick"])) : vue.createCommentVNode("v-if", true),
|
|
723
|
-
vue.unref(videoState) === "PLAYING" ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
724
|
-
key: 1,
|
|
725
|
-
onClick: vue.unref(pauseVideo)
|
|
972
|
+
class: "text-info cursor-not-allowed"
|
|
726
973
|
}, [
|
|
727
974
|
vue.createVNode(vue.unref(index$2.HyIcon), {
|
|
728
|
-
"svg-name": "ops-audio-audio-
|
|
975
|
+
"svg-name": "ops-audio-media-center-audio-play",
|
|
729
976
|
class: vue.normalizeClass(centerIconClass)
|
|
730
977
|
})
|
|
731
|
-
]
|
|
978
|
+
])) : (vue.openBlock(), vue.createElementBlock("span", { key: 1 }, [
|
|
979
|
+
vue.unref(videoState) !== "PLAYING" ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
980
|
+
key: 0,
|
|
981
|
+
onClick: ($event) => vue.unref(playVideo)(vue.unref(videoUrl))
|
|
982
|
+
}, [
|
|
983
|
+
vue.createVNode(vue.unref(index$2.HyIcon), {
|
|
984
|
+
"svg-name": "ops-audio-media-center-audio-play",
|
|
985
|
+
class: vue.normalizeClass(centerIconClass)
|
|
986
|
+
})
|
|
987
|
+
], 8, ["onClick"])) : (vue.openBlock(), vue.createElementBlock("span", {
|
|
988
|
+
key: 1,
|
|
989
|
+
onClick: vue.unref(pauseVideo)
|
|
990
|
+
}, [
|
|
991
|
+
vue.createVNode(vue.unref(index$2.HyIcon), {
|
|
992
|
+
"svg-name": "ops-audio-media-center-audio-pause",
|
|
993
|
+
class: vue.normalizeClass(centerIconClass)
|
|
994
|
+
})
|
|
995
|
+
], 8, ["onClick"]))
|
|
996
|
+
])),
|
|
732
997
|
vue.createElementVNode("span", { onClick: vue.unref(playNext) }, [
|
|
733
998
|
vue.createVNode(vue.unref(index$2.HyIcon), {
|
|
734
|
-
"svg-name": "ops-audio-
|
|
999
|
+
"svg-name": "ops-audio-next",
|
|
735
1000
|
class: vue.normalizeClass(centerIconClass)
|
|
736
1001
|
})
|
|
737
1002
|
], 8, ["onClick"])
|
|
738
|
-
])
|
|
739
|
-
vue.
|
|
1003
|
+
]),
|
|
1004
|
+
vue.unref(videoState) !== "CAN_NOT_PLAY" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
1005
|
+
key: 1,
|
|
1006
|
+
class: "absolute right-[0px] flex items-center justify-end"
|
|
1007
|
+
}, [
|
|
740
1008
|
vue.createCommentVNode(" \u901F\u5EA6 "),
|
|
741
1009
|
vue.createVNode(vue.unref(elementPlus.ElPopover), {
|
|
742
1010
|
placement: "top",
|
|
743
|
-
appendToBody: false,
|
|
744
1011
|
"popper-class": "minWidth0_popover popover_darkColor liveBroadcast w-[62px]",
|
|
745
1012
|
trigger: "click"
|
|
746
1013
|
}, {
|
|
747
1014
|
reference: vue.withCtx(() => [
|
|
748
|
-
vue.createElementVNode(
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
)
|
|
756
|
-
])
|
|
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
|
+
)
|
|
757
1022
|
]),
|
|
758
1023
|
default: vue.withCtx(() => [
|
|
759
1024
|
vue.createElementVNode("div", { class: "flex items-center justify-center p-[10px_0]" }, [
|
|
@@ -763,7 +1028,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
763
1028
|
null,
|
|
764
1029
|
vue.renderList(vue.unref(speedList), (item, index) => {
|
|
765
1030
|
return vue.openBlock(), vue.createElementBlock("li", {
|
|
766
|
-
class: vue.normalizeClass(["clickBox h-[26px] leading-[26px] text-center hover:text-theme hover:bg-background-3", { "text-theme bg-background-3": item.value === vue.unref(speed) }]),
|
|
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) }]),
|
|
767
1032
|
onClick: ($event) => vue.unref(speedFn)(item.value),
|
|
768
1033
|
key: index
|
|
769
1034
|
}, vue.toDisplayString(item.label), 11, ["onClick"]);
|
|
@@ -780,7 +1045,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
780
1045
|
vue.createCommentVNode(" \u58F0\u97F3 "),
|
|
781
1046
|
vue.createVNode(vue.unref(elementPlus.ElPopover), {
|
|
782
1047
|
placement: "top",
|
|
783
|
-
|
|
1048
|
+
teleported: !vue.unref(isFullScreen),
|
|
784
1049
|
"popper-class": "popover_volumeSlider w-[40px]",
|
|
785
1050
|
trigger: "click"
|
|
786
1051
|
}, {
|
|
@@ -790,7 +1055,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
790
1055
|
class: "item",
|
|
791
1056
|
effect: "dark",
|
|
792
1057
|
content: $t("adjustPlaybackVolume"),
|
|
793
|
-
placement: "top"
|
|
1058
|
+
placement: "top",
|
|
1059
|
+
teleported: !vue.unref(isFullScreen)
|
|
794
1060
|
}, {
|
|
795
1061
|
default: vue.withCtx(() => [
|
|
796
1062
|
vue.createVNode(vue.unref(index$2.HyIcon), {
|
|
@@ -800,7 +1066,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
800
1066
|
]),
|
|
801
1067
|
_: 1
|
|
802
1068
|
/* STABLE */
|
|
803
|
-
}, 8, ["content"])
|
|
1069
|
+
}, 8, ["content", "teleported"])
|
|
804
1070
|
])
|
|
805
1071
|
]),
|
|
806
1072
|
default: vue.withCtx(() => [
|
|
@@ -817,137 +1083,150 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
817
1083
|
]),
|
|
818
1084
|
_: 1
|
|
819
1085
|
/* STABLE */
|
|
820
|
-
}),
|
|
1086
|
+
}, 8, ["teleported"]),
|
|
821
1087
|
vue.createCommentVNode(" \u653E\u5927 "),
|
|
822
1088
|
vue.createVNode(vue.unref(elementPlus.ElTooltip), {
|
|
823
1089
|
class: "item clickBox",
|
|
824
1090
|
effect: "dark",
|
|
825
1091
|
content: $t("fullScreenSwitch"),
|
|
826
1092
|
placement: "top",
|
|
827
|
-
|
|
1093
|
+
teleported: !vue.unref(isFullScreen)
|
|
828
1094
|
}, {
|
|
829
1095
|
default: vue.withCtx(() => [
|
|
830
1096
|
vue.createVNode(vue.unref(index$2.HyIcon), {
|
|
831
1097
|
onClick: vue.unref(clickFullScreen),
|
|
832
|
-
"svg-name": vue.unref(isFullScreen) ? "ops-audio-
|
|
1098
|
+
"svg-name": vue.unref(isFullScreen) ? "ops-audio-reduce" : "ops-audio-fullscreen",
|
|
833
1099
|
class: vue.normalizeClass([rightIconClass, "mr-3"])
|
|
834
1100
|
}, null, 8, ["onClick", "svg-name"])
|
|
835
1101
|
]),
|
|
836
1102
|
_: 1
|
|
837
1103
|
/* STABLE */
|
|
838
|
-
}, 8, ["content"]),
|
|
839
|
-
vue.
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
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(
|
|
1107
|
+
vue.Fragment,
|
|
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 */
|
|
853
1128
|
})
|
|
854
|
-
]),
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
1129
|
+
], 8, ["onClick"])) : (vue.openBlock(), vue.createElementBlock("div", {
|
|
1130
|
+
key: 1,
|
|
1131
|
+
onClick: ($event) => vue.unref(setIsHideVideo)(true)
|
|
1132
|
+
}, [
|
|
1133
|
+
vue.createVNode(vue.unref(elementPlus.ElTooltip), {
|
|
1134
|
+
class: "item",
|
|
1135
|
+
effect: "dark",
|
|
1136
|
+
content: "\u9690\u85CF\u753B\u9762",
|
|
1137
|
+
placement: "top"
|
|
1138
|
+
}, {
|
|
1139
|
+
default: vue.withCtx(() => [
|
|
1140
|
+
vue.createVNode(vue.unref(index$2.HyIcon), {
|
|
1141
|
+
"svg-name": "dispatch-share1-v3-ai-interpretation-foldup",
|
|
1142
|
+
class: vue.normalizeClass(rightIconClass)
|
|
1143
|
+
})
|
|
1144
|
+
]),
|
|
1145
|
+
_: 1
|
|
1146
|
+
/* STABLE */
|
|
872
1147
|
})
|
|
873
|
-
])
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
])
|
|
1148
|
+
], 8, ["onClick"]))
|
|
1149
|
+
],
|
|
1150
|
+
64
|
|
1151
|
+
/* STABLE_FRAGMENT */
|
|
1152
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
1153
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
879
1154
|
])
|
|
880
1155
|
]),
|
|
881
1156
|
vue.createCommentVNode(" \u5176\u4ED6\u529F\u80FD "),
|
|
882
1157
|
vue.createElementVNode("div", { class: "px-2 box-border h-[40px] flex items-center justify-between" }, [
|
|
883
|
-
vue.createElementVNode("
|
|
884
|
-
|
|
1158
|
+
vue.createElementVNode("div", null, [
|
|
1159
|
+
vue.unref(videoState) !== "CAN_NOT_PLAY" ? (vue.openBlock(), vue.createElementBlock("ul", {
|
|
885
1160
|
key: 0,
|
|
886
|
-
class: "
|
|
1161
|
+
class: "flex"
|
|
887
1162
|
}, [
|
|
888
|
-
(vue.openBlock(
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
vue.
|
|
897
|
-
|
|
898
|
-
"
|
|
899
|
-
},
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
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]"
|
|
910
1211
|
}),
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
onClick: vue.
|
|
919
|
-
|
|
920
|
-
vue.createVNode(vue.unref(index$2.HyIcon), {
|
|
921
|
-
"svg-name": "ops-audio-audio-reduce",
|
|
922
|
-
class: "!w-[12px] !h-[12px]"
|
|
923
|
-
}),
|
|
924
|
-
vue.createElementVNode(
|
|
925
|
-
"span",
|
|
926
|
-
{ class: "ml-2" },
|
|
927
|
-
vue.toDisplayString($t("downloadFile")),
|
|
928
|
-
1
|
|
929
|
-
/* TEXT */
|
|
930
|
-
)
|
|
931
|
-
], 8, ["onClick"])) : vue.createCommentVNode("v-if", true),
|
|
932
|
-
vue.createElementVNode("li", { class: "mr-4 clickBox" }, [
|
|
933
|
-
vue.createVNode(vue.unref(index$2.HyIcon), {
|
|
934
|
-
"svg-name": "ops-audio-audio-reduce",
|
|
935
|
-
class: "!w-[12px] !h-[12px]"
|
|
936
|
-
}),
|
|
937
|
-
vue.createElementVNode("span", { class: "ml-2" }, "\u8BED\u4E49\u68C0\u7D22")
|
|
938
|
-
]),
|
|
939
|
-
vue.createElementVNode("li", { class: "mr-4 clickBox" }, [
|
|
940
|
-
vue.createVNode(vue.unref(index$2.HyIcon), {
|
|
941
|
-
"svg-name": "ops-audio-audio-reduce",
|
|
942
|
-
class: "!w-[12px] !h-[12px]"
|
|
943
|
-
}),
|
|
944
|
-
vue.createElementVNode("span", { class: "ml-2" }, "\u89C6\u9891\u526A\u8F91")
|
|
945
|
-
])
|
|
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)
|
|
946
1221
|
]),
|
|
947
|
-
vue.createElementVNode("div", null,
|
|
1222
|
+
vue.createElementVNode("div", null, [
|
|
1223
|
+
vue.renderSlot(_ctx.$slots, "right-operation", {}, void 0, true)
|
|
1224
|
+
])
|
|
948
1225
|
])
|
|
949
|
-
]
|
|
950
|
-
|
|
1226
|
+
],
|
|
1227
|
+
2
|
|
1228
|
+
/* CLASS */
|
|
1229
|
+
);
|
|
951
1230
|
};
|
|
952
1231
|
}
|
|
953
1232
|
});
|