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
|
@@ -1,947 +0,0 @@
|
|
|
1
|
-
import { defineComponent, onUnmounted, onMounted, ref, computed, nextTick, openBlock, createElementBlock, normalizeClass, unref, createCommentVNode, createVNode, createElementVNode, toDisplayString, Fragment, createBlock, withCtx, createTextVNode, withDirectives, isRef, normalizeStyle, vModelText, renderList, withModifiers, vShow, renderSlot } from 'vue';
|
|
2
|
-
import '../index.mjs';
|
|
3
|
-
import '../../hooks/index.mjs';
|
|
4
|
-
import '../../utils/index.mjs';
|
|
5
|
-
import { ElMessage, ElTooltip, ElPopover, ElSlider } from 'element-plus';
|
|
6
|
-
import _sfc_main$1 from './cpns/mediaLoading.vue.mjs';
|
|
7
|
-
import * as index from './locale/index.mjs';
|
|
8
|
-
import { registerComponentLocale, unregisterComponentLocale, $t } from '../../hooks/useLocale.mjs';
|
|
9
|
-
import { useBaseMainStore } from '../../hooks/useBaseMainStore.mjs';
|
|
10
|
-
import { isSupportH265 } from '../../utils/is.mjs';
|
|
11
|
-
import { HyConfirmDialog } from '../hyConfirmDialog/index.mjs';
|
|
12
|
-
import { copyText } from '../../utils/handler.mjs';
|
|
13
|
-
import { useMixins } from '../../hooks/useMixins.mjs';
|
|
14
|
-
import { HyIcon } from '../hyIcon/index.mjs';
|
|
15
|
-
import { HyButton } from '../hyButton/index.mjs';
|
|
16
|
-
import { formatSeconds } from '../../utils/timeUtils.mjs';
|
|
17
|
-
|
|
18
|
-
const centerIconClass = "!w-[26px] !h-[26px] mr-[10px] group-[.is-full]:!w-[34px] group-[.is-full]:!h-[34px]";
|
|
19
|
-
const rightIconClass = "!w-5 !h-5 mr-[10px] group-[.is-full]:!w-[28px] group-[.is-full]:!h-[28px] group-[.is-full]:mr-5";
|
|
20
|
-
const floatIconClass = "!w-[26px] !h-[26px]";
|
|
21
|
-
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
22
|
-
__name: "videoPlayer1",
|
|
23
|
-
props: {
|
|
24
|
-
/* 下载 */
|
|
25
|
-
downloadFilesType: {
|
|
26
|
-
type: Boolean,
|
|
27
|
-
default: () => {
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
/* 播放规则 */
|
|
32
|
-
playRulesType: {
|
|
33
|
-
type: Boolean,
|
|
34
|
-
default: () => {
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
// 播放列表
|
|
39
|
-
playList: {
|
|
40
|
-
type: Array,
|
|
41
|
-
default: () => {
|
|
42
|
-
return [];
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
// 是否使用不可拖拽弹框模式
|
|
46
|
-
contentMode: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: () => {
|
|
49
|
-
return false;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
emits: ["can-play", "play-start", "play-end", "on-time-update"],
|
|
54
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
55
|
-
const emit = __emit;
|
|
56
|
-
registerComponentLocale("HyVideoPlayer", index);
|
|
57
|
-
onUnmounted(() => {
|
|
58
|
-
unregisterComponentLocale("HyVideoPlayer");
|
|
59
|
-
});
|
|
60
|
-
const $t$1 = (key, option) => $t(`HyVideoPlayer.${key}`, option);
|
|
61
|
-
const props = __props;
|
|
62
|
-
function useVideoPlayer(hy) {
|
|
63
|
-
const { baseMainStore } = useBaseMainStore();
|
|
64
|
-
onUnmounted(() => {
|
|
65
|
-
hy.videoEl.value = null;
|
|
66
|
-
});
|
|
67
|
-
onMounted(() => {
|
|
68
|
-
hy.playRulesFn(3);
|
|
69
|
-
hy.speedFn(1);
|
|
70
|
-
hy.initVideo();
|
|
71
|
-
hy.initFullScreenEvent();
|
|
72
|
-
});
|
|
73
|
-
const isCanNotPlayType2 = ref(true);
|
|
74
|
-
const speedList2 = ref([
|
|
75
|
-
{ value: 0.5, label: "0.5 X" },
|
|
76
|
-
{ value: 1, label: "1.0 X" },
|
|
77
|
-
{ value: 1.5, label: "1.5 X" },
|
|
78
|
-
{ value: 2, label: "2.0 X" },
|
|
79
|
-
{ value: 3, label: "3.0 X" }
|
|
80
|
-
]);
|
|
81
|
-
const speed2 = ref(1);
|
|
82
|
-
const playRuleslist2 = ref([
|
|
83
|
-
{
|
|
84
|
-
value: 1,
|
|
85
|
-
label: $t$1("stopAfterPlayback"),
|
|
86
|
-
svgName: "ops-audio-media-center-stop-playing"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
value: 2,
|
|
90
|
-
label: $t$1("continuousPlayback"),
|
|
91
|
-
svgName: "ops-audio-media-center-autoplay"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
value: 3,
|
|
95
|
-
label: $t$1("loopPlayback"),
|
|
96
|
-
svgName: "ops-audio-media-center-loop-playback"
|
|
97
|
-
}
|
|
98
|
-
]);
|
|
99
|
-
const playRules2 = ref(1);
|
|
100
|
-
const videoItem2 = ref({});
|
|
101
|
-
const videoUrl2 = ref("");
|
|
102
|
-
const value2 = ref(0);
|
|
103
|
-
const videoEl2 = ref(null);
|
|
104
|
-
const videoState2 = ref("NO_LOAD");
|
|
105
|
-
const curTime2 = ref(0);
|
|
106
|
-
const totalTime2 = ref(0);
|
|
107
|
-
const isDrop2 = ref(false);
|
|
108
|
-
const isFullScreen2 = ref(false);
|
|
109
|
-
const volumeValue2 = ref(100);
|
|
110
|
-
const isChangeVolume2 = ref(false);
|
|
111
|
-
const hasVLC2 = ref(true);
|
|
112
|
-
const decodeSuccess2 = ref(false);
|
|
113
|
-
const loading2 = ref(false);
|
|
114
|
-
const buffering2 = ref(false);
|
|
115
|
-
const speedLabel2 = computed(() => {
|
|
116
|
-
if (hy.speed.value === 1) {
|
|
117
|
-
return $t$1("multiples");
|
|
118
|
-
} else {
|
|
119
|
-
return hy.speedList.value.find((item) => item.value === hy.speed.value).label;
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
const playItem2 = computed(() => {
|
|
123
|
-
return hy.props.playList.find((item) => item.id === hy.videoItem.value.id);
|
|
124
|
-
});
|
|
125
|
-
const canPlay2 = computed(() => {
|
|
126
|
-
return hy.videoState.value !== "NO_LOAD" || hy.videoState.value !== "CAN_NOT_PLAY";
|
|
127
|
-
});
|
|
128
|
-
function playRulesFn2(newPlayRules) {
|
|
129
|
-
if (newPlayRules === 3) {
|
|
130
|
-
hy.playRules.value = 1;
|
|
131
|
-
} else {
|
|
132
|
-
hy.playRules.value = newPlayRules + 1;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
function speedFn2(newSpeed) {
|
|
136
|
-
hy.speed.value = newSpeed;
|
|
137
|
-
if (document.getElementById("#videoPlayer")) {
|
|
138
|
-
document.getElementById("#videoPlayer").playbackRate = speed2;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
function findIndexFn2() {
|
|
142
|
-
return hy.props.playList.findIndex((item) => item.id === hy.videoItem.value.id);
|
|
143
|
-
}
|
|
144
|
-
function playNext2() {
|
|
145
|
-
const findIndex = hy.findIndexFn();
|
|
146
|
-
if (findIndex !== hy.props.playList.length - 1) {
|
|
147
|
-
hy.decodeSuccess.value = false;
|
|
148
|
-
const item = hy.props.playList[findIndex + 1];
|
|
149
|
-
hy.playVideo(item.filePath, item);
|
|
150
|
-
} else {
|
|
151
|
-
ElMessage.warning($t$1("currentIsTheLastItem"));
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
function playPrevious2() {
|
|
155
|
-
const findIndex = hy.findIndexFn();
|
|
156
|
-
if (findIndex > 0 && findIndex !== hy.props.playList.length) {
|
|
157
|
-
hy.decodeSuccess.value = false;
|
|
158
|
-
const item = hy.props.playList[findIndex - 1];
|
|
159
|
-
hy.playVideo(item.filePath, item);
|
|
160
|
-
} else {
|
|
161
|
-
ElMessage.warning($t$1("currentIsTheFirstItem"));
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
async function playVideo2(filePath, item) {
|
|
165
|
-
const { isSupport } = isSupportH265();
|
|
166
|
-
if (item && item.fileCoding === "H.265" && !isSupport) {
|
|
167
|
-
hy.videoState.value = "CAN_NOT_PLAY";
|
|
168
|
-
hy.isCanNotPlayType.value = true;
|
|
169
|
-
return;
|
|
170
|
-
}
|
|
171
|
-
if (hy.videoState.value === "CAN_NOT_PLAY") {
|
|
172
|
-
hy.videoState.value = "NO_LOAD";
|
|
173
|
-
await nextTick();
|
|
174
|
-
hy.initVideo();
|
|
175
|
-
}
|
|
176
|
-
if (item) {
|
|
177
|
-
if (item.id !== hy.videoItem.value.id || !hy.videoEl.value.src) {
|
|
178
|
-
hy.loading.value = true;
|
|
179
|
-
hy.videoItem.value = item;
|
|
180
|
-
hy.videoUrl.value = filePath;
|
|
181
|
-
hy.videoEl.value.src = filePath;
|
|
182
|
-
}
|
|
183
|
-
} else {
|
|
184
|
-
if (hy.videoUrl.value === "") {
|
|
185
|
-
return false;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
console.log("hy.videoItem.value.playSeconds", hy.videoItem.value.playSeconds);
|
|
189
|
-
if (hy.videoItem.value.playSeconds) {
|
|
190
|
-
hy.jumpDuration(hy.videoItem.value.playSeconds);
|
|
191
|
-
}
|
|
192
|
-
nextTick(() => {
|
|
193
|
-
hy.videoEl.value.play();
|
|
194
|
-
hy.videoState.value = "PLAYING";
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
function createDownloadTask2(mediaFiles) {
|
|
198
|
-
baseMainStore.value.commit({
|
|
199
|
-
name: "downloadHistory",
|
|
200
|
-
data: {
|
|
201
|
-
methodName: "show",
|
|
202
|
-
params: { mediaFiles, contentMode: hy.props.contentMode }
|
|
203
|
-
}
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
function downloadFn2(event) {
|
|
207
|
-
event.stopPropagation();
|
|
208
|
-
if (hy.videoItem.value && hy.videoItem.value.id) {
|
|
209
|
-
ElMessage.warning($t$1("startDownloading"));
|
|
210
|
-
hy.createDownloadTask([hy.videoItem.value]);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
function changeVolume2() {
|
|
214
|
-
if (!hy.videoEl.value) return;
|
|
215
|
-
hy.videoEl.value.volume = hy.volumeValue.value / 100;
|
|
216
|
-
}
|
|
217
|
-
function getNowWh2() {
|
|
218
|
-
hy.curTime.value = hy.totalTime.value * (hy.value.value / 100);
|
|
219
|
-
hy.videoEl.value.currentTime = hy.curTime.value;
|
|
220
|
-
hy.isDrop.value = false;
|
|
221
|
-
}
|
|
222
|
-
function getPercent2(num, total) {
|
|
223
|
-
num = parseFloat(num);
|
|
224
|
-
total = parseFloat(total);
|
|
225
|
-
if (isNaN(num) || isNaN(total)) {
|
|
226
|
-
return 0;
|
|
227
|
-
}
|
|
228
|
-
return total <= 0 ? 0 : Math.round(num / total * 1e4) / 100;
|
|
229
|
-
}
|
|
230
|
-
function resumePlay2() {
|
|
231
|
-
if (hy.videoState.value === "CAN_NOT_PLAY") return;
|
|
232
|
-
hy.videoEl.value && hy.videoEl.value.play();
|
|
233
|
-
}
|
|
234
|
-
function pauseVideo2() {
|
|
235
|
-
if (hy.videoState.value === "CAN_NOT_PLAY") return;
|
|
236
|
-
hy.videoEl.value && hy.videoEl.value.pause();
|
|
237
|
-
hy.videoState.value = "PAUSE";
|
|
238
|
-
}
|
|
239
|
-
function initVideo2() {
|
|
240
|
-
hy.videoEl.value = document.querySelector("#videoPlayer");
|
|
241
|
-
hy.videoEl.value.addEventListener("canplay", (e) => {
|
|
242
|
-
hy.buffering.value = true;
|
|
243
|
-
hy.loading.value = false;
|
|
244
|
-
if (!e.target?.videoWidth || !e.target?.videoHeight || !e.target?.webkitVideoDecodedByteCount) {
|
|
245
|
-
hy.videoEl.value.pause();
|
|
246
|
-
hy.videoState.value = "CAN_NOT_PLAY";
|
|
247
|
-
hy.isCanNotPlayType.value = true;
|
|
248
|
-
return;
|
|
249
|
-
}
|
|
250
|
-
hy.videoState.value = "IS_LOAD";
|
|
251
|
-
hy.totalTime.value = Math.floor(hy.videoEl.value.duration);
|
|
252
|
-
emit("can-play", hy.totalTime.value);
|
|
253
|
-
});
|
|
254
|
-
hy.videoEl.value.addEventListener("play", () => {
|
|
255
|
-
hy.videoEl.value.playbackRate = hy.speed.value;
|
|
256
|
-
hy.videoState.value = "PLAYING";
|
|
257
|
-
if (hy.videoUrl.value && hy.playItem.value) {
|
|
258
|
-
emit("play-start", hy.videoUrl.value, hy.playItem.value);
|
|
259
|
-
}
|
|
260
|
-
});
|
|
261
|
-
hy.videoEl.value.addEventListener("waiting", () => {
|
|
262
|
-
hy.buffering.value = true;
|
|
263
|
-
});
|
|
264
|
-
hy.videoEl.value.addEventListener("playing", () => {
|
|
265
|
-
hy.buffering.value = false;
|
|
266
|
-
});
|
|
267
|
-
hy.videoEl.value.addEventListener("pause", (e) => {
|
|
268
|
-
if (hy.isCanNotPlay(e)) {
|
|
269
|
-
return;
|
|
270
|
-
}
|
|
271
|
-
hy.buffering.value = false;
|
|
272
|
-
hy.videoState.value = "PAUSE";
|
|
273
|
-
});
|
|
274
|
-
hy.videoEl.value.addEventListener("ended", () => {
|
|
275
|
-
hy.videoState.value = "PLAY_END";
|
|
276
|
-
if (hy.playRules.value === 2) {
|
|
277
|
-
hy.playNext();
|
|
278
|
-
} else if (hy.playRules.value === 3) {
|
|
279
|
-
hy.videoEl.value.load();
|
|
280
|
-
hy.videoEl.value.play();
|
|
281
|
-
}
|
|
282
|
-
emit("play-end");
|
|
283
|
-
});
|
|
284
|
-
hy.videoEl.value.addEventListener(
|
|
285
|
-
"timeupdate",
|
|
286
|
-
(e) => {
|
|
287
|
-
if (hy.isCanNotPlay(e)) {
|
|
288
|
-
return;
|
|
289
|
-
}
|
|
290
|
-
hy.videoState.value = "PLAYING";
|
|
291
|
-
if (!hy.isDrop.value) {
|
|
292
|
-
if (hy.videoEl.value) {
|
|
293
|
-
hy.curTime.value = Math.floor(hy.videoEl.value.currentTime);
|
|
294
|
-
} else {
|
|
295
|
-
setTimeout(() => {
|
|
296
|
-
if (hy.videoEl.value) {
|
|
297
|
-
hy.curTime.value = Math.floor(hy.videoEl.value.currentTime);
|
|
298
|
-
}
|
|
299
|
-
}, 1e3);
|
|
300
|
-
}
|
|
301
|
-
hy.value.value = hy.curTime.value / hy.totalTime.value * 100;
|
|
302
|
-
emit("on-time-update", hy.curTime.value);
|
|
303
|
-
}
|
|
304
|
-
},
|
|
305
|
-
false
|
|
306
|
-
);
|
|
307
|
-
hy.videoEl.value.addEventListener("error", (e) => {
|
|
308
|
-
hy.buffering.value = false;
|
|
309
|
-
hy.loading.value = false;
|
|
310
|
-
hy.videoState.value = "CAN_NOT_PLAY";
|
|
311
|
-
hy.isCanNotPlayType.value = hy.isCantPlayType(e);
|
|
312
|
-
console.error("error", e);
|
|
313
|
-
hy.videoEl.value = null;
|
|
314
|
-
});
|
|
315
|
-
}
|
|
316
|
-
function isCantPlayType2(e) {
|
|
317
|
-
if (e.target.error) {
|
|
318
|
-
const { code, message } = e.target.error;
|
|
319
|
-
return code === 4 && !message.includes("Format error") || message.includes("PIPELINE_ERROR_DECODE");
|
|
320
|
-
}
|
|
321
|
-
return false;
|
|
322
|
-
}
|
|
323
|
-
function isCanNotPlay2(e) {
|
|
324
|
-
if (hy.videoState.value === "CAN_NOT_PLAY") {
|
|
325
|
-
return true;
|
|
326
|
-
}
|
|
327
|
-
if (e && e.target.error) {
|
|
328
|
-
const { code } = e.target.error;
|
|
329
|
-
return code === 4;
|
|
330
|
-
}
|
|
331
|
-
return false;
|
|
332
|
-
}
|
|
333
|
-
function initFullScreenEvent2() {
|
|
334
|
-
document.addEventListener("fullscreenchange", (e) => {
|
|
335
|
-
if (document.fullscreenElement) {
|
|
336
|
-
hy.isFullScreen.value = true;
|
|
337
|
-
} else {
|
|
338
|
-
hy.isFullScreen.value = false;
|
|
339
|
-
}
|
|
340
|
-
});
|
|
341
|
-
}
|
|
342
|
-
function jumpDuration2(s) {
|
|
343
|
-
hy.videoEl.value.currentTime = s;
|
|
344
|
-
}
|
|
345
|
-
function clickFullScreen2() {
|
|
346
|
-
if (hy.isFullScreen.value) {
|
|
347
|
-
hy.exitFullscreen();
|
|
348
|
-
} else {
|
|
349
|
-
hy.fullScreen();
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
function fullScreen2() {
|
|
353
|
-
const el = document.documentElement;
|
|
354
|
-
if (el.requestFullscreen) {
|
|
355
|
-
el.requestFullscreen();
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
function exitFullscreen2() {
|
|
359
|
-
const el = document;
|
|
360
|
-
if (el.exitFullscreen) {
|
|
361
|
-
el.exitFullscreen();
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
function openVLC2() {
|
|
365
|
-
const url = `hyvlc:${hy.videoUrl.value}`;
|
|
366
|
-
window.protocolCheck(url, () => {
|
|
367
|
-
hy.hasVLC.value = false;
|
|
368
|
-
ElMessage.error($t$1("notInstallVlcTips"));
|
|
369
|
-
});
|
|
370
|
-
}
|
|
371
|
-
function downloadVLC2() {
|
|
372
|
-
const url = JSON.parse(sessionCache.getCache("entryList"))?.toolSupport;
|
|
373
|
-
if (!url) {
|
|
374
|
-
ElMessage.error($t$1("dataError"));
|
|
375
|
-
return;
|
|
376
|
-
}
|
|
377
|
-
const newOpenWindow = window.open("about:blank");
|
|
378
|
-
if (newOpenWindow) {
|
|
379
|
-
newOpenWindow.location = `${window.location.protocol}${url}/#/vlc`;
|
|
380
|
-
}
|
|
381
|
-
if (newOpenWindow) {
|
|
382
|
-
ElMessage.success($t$1("operationSuccessful"));
|
|
383
|
-
} else {
|
|
384
|
-
HyConfirmDialog.tip({
|
|
385
|
-
titleImg: "tips",
|
|
386
|
-
title: $t$1("redirectNotice"),
|
|
387
|
-
content: `<div><p>${$t$1("theCurrentBrowserBlocksTheOpeningOfNewWindows")}</p><p>${$t$1(
|
|
388
|
-
"pleaseGoToTheBrowserSettingsAndClickOnTheDownloadOrCopyLinkToOpenInTheBrowser"
|
|
389
|
-
)}</p></div>`,
|
|
390
|
-
submitType: null,
|
|
391
|
-
submitText: $t$1("copyLink"),
|
|
392
|
-
onSubmit: () => {
|
|
393
|
-
copyText(url);
|
|
394
|
-
}
|
|
395
|
-
});
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
return {
|
|
399
|
-
isCanNotPlayType: isCanNotPlayType2,
|
|
400
|
-
speedList: speedList2,
|
|
401
|
-
speed: speed2,
|
|
402
|
-
playRuleslist: playRuleslist2,
|
|
403
|
-
playRules: playRules2,
|
|
404
|
-
videoItem: videoItem2,
|
|
405
|
-
videoUrl: videoUrl2,
|
|
406
|
-
value: value2,
|
|
407
|
-
videoEl: videoEl2,
|
|
408
|
-
videoState: videoState2,
|
|
409
|
-
curTime: curTime2,
|
|
410
|
-
totalTime: totalTime2,
|
|
411
|
-
isDrop: isDrop2,
|
|
412
|
-
isFullScreen: isFullScreen2,
|
|
413
|
-
volumeValue: volumeValue2,
|
|
414
|
-
isChangeVolume: isChangeVolume2,
|
|
415
|
-
hasVLC: hasVLC2,
|
|
416
|
-
decodeSuccess: decodeSuccess2,
|
|
417
|
-
loading: loading2,
|
|
418
|
-
buffering: buffering2,
|
|
419
|
-
speedLabel: speedLabel2,
|
|
420
|
-
playItem: playItem2,
|
|
421
|
-
canPlay: canPlay2,
|
|
422
|
-
playRulesFn: playRulesFn2,
|
|
423
|
-
speedFn: speedFn2,
|
|
424
|
-
findIndexFn: findIndexFn2,
|
|
425
|
-
playNext: playNext2,
|
|
426
|
-
playPrevious: playPrevious2,
|
|
427
|
-
playVideo: playVideo2,
|
|
428
|
-
createDownloadTask: createDownloadTask2,
|
|
429
|
-
downloadFn: downloadFn2,
|
|
430
|
-
changeVolume: changeVolume2,
|
|
431
|
-
getNowWh: getNowWh2,
|
|
432
|
-
getPercent: getPercent2,
|
|
433
|
-
resumePlay: resumePlay2,
|
|
434
|
-
pauseVideo: pauseVideo2,
|
|
435
|
-
initVideo: initVideo2,
|
|
436
|
-
isCantPlayType: isCantPlayType2,
|
|
437
|
-
isCanNotPlay: isCanNotPlay2,
|
|
438
|
-
initFullScreenEvent: initFullScreenEvent2,
|
|
439
|
-
jumpDuration: jumpDuration2,
|
|
440
|
-
clickFullScreen: clickFullScreen2,
|
|
441
|
-
fullScreen: fullScreen2,
|
|
442
|
-
exitFullscreen: exitFullscreen2,
|
|
443
|
-
openVLC: openVLC2,
|
|
444
|
-
downloadVLC: downloadVLC2
|
|
445
|
-
};
|
|
446
|
-
}
|
|
447
|
-
const {
|
|
448
|
-
buffering,
|
|
449
|
-
canPlay,
|
|
450
|
-
changeVolume,
|
|
451
|
-
clickFullScreen,
|
|
452
|
-
createDownloadTask,
|
|
453
|
-
curTime,
|
|
454
|
-
decodeSuccess,
|
|
455
|
-
downloadFn,
|
|
456
|
-
downloadVLC,
|
|
457
|
-
exitFullscreen,
|
|
458
|
-
findIndexFn,
|
|
459
|
-
fullScreen,
|
|
460
|
-
getNowWh,
|
|
461
|
-
getPercent,
|
|
462
|
-
hasVLC,
|
|
463
|
-
initFullScreenEvent,
|
|
464
|
-
initVideo,
|
|
465
|
-
isCanNotPlay,
|
|
466
|
-
isCanNotPlayType,
|
|
467
|
-
isCantPlayType,
|
|
468
|
-
isChangeVolume,
|
|
469
|
-
isDrop,
|
|
470
|
-
isFullScreen,
|
|
471
|
-
jumpDuration,
|
|
472
|
-
loading,
|
|
473
|
-
openVLC,
|
|
474
|
-
pauseVideo,
|
|
475
|
-
playItem,
|
|
476
|
-
playNext,
|
|
477
|
-
playPrevious,
|
|
478
|
-
playRules,
|
|
479
|
-
playRulesFn,
|
|
480
|
-
playRuleslist,
|
|
481
|
-
playVideo,
|
|
482
|
-
resumePlay,
|
|
483
|
-
speed,
|
|
484
|
-
speedFn,
|
|
485
|
-
speedLabel,
|
|
486
|
-
speedList,
|
|
487
|
-
totalTime,
|
|
488
|
-
value,
|
|
489
|
-
videoEl,
|
|
490
|
-
videoItem,
|
|
491
|
-
videoState,
|
|
492
|
-
videoUrl,
|
|
493
|
-
volumeValue
|
|
494
|
-
} = useMixins({ props }, [useVideoPlayer]);
|
|
495
|
-
__expose({
|
|
496
|
-
playVideo
|
|
497
|
-
});
|
|
498
|
-
return (_ctx, _cache) => {
|
|
499
|
-
return openBlock(), createElementBlock(
|
|
500
|
-
"div",
|
|
501
|
-
{
|
|
502
|
-
class: normalizeClass([
|
|
503
|
-
"video-player-content group w-full h-full flex flex-col overflow-hidden rounded-[12px] border border-solid border-border bg-[#040814]",
|
|
504
|
-
unref(isFullScreen) ? "full-video-player-content is-full fixed left-0 top-0 z-[999]" : "absolute"
|
|
505
|
-
])
|
|
506
|
-
},
|
|
507
|
-
[
|
|
508
|
-
createCommentVNode(" loading "),
|
|
509
|
-
unref(loading) || unref(buffering) ? (openBlock(), createElementBlock("div", {
|
|
510
|
-
key: 0,
|
|
511
|
-
class: "w-full h-full flex flex-col justify-center items-center"
|
|
512
|
-
}, [
|
|
513
|
-
createVNode(_sfc_main$1),
|
|
514
|
-
createElementVNode(
|
|
515
|
-
"span",
|
|
516
|
-
{ class: "text-xs text-theme mt-4" },
|
|
517
|
-
"..." + toDisplayString($t$1("videoResourcesAreLoading")) + "...",
|
|
518
|
-
1
|
|
519
|
-
/* TEXT */
|
|
520
|
-
)
|
|
521
|
-
])) : createCommentVNode("v-if", true),
|
|
522
|
-
unref(videoState) === "CAN_NOT_PLAY" ? (openBlock(), createElementBlock("div", {
|
|
523
|
-
key: 1,
|
|
524
|
-
class: "w-full h-full flex flex-col justify-center items-center"
|
|
525
|
-
}, [
|
|
526
|
-
createCommentVNode(" \u91C7\u96C6\u7AD9\u6587\u4EF6 "),
|
|
527
|
-
unref(videoItem) && unref(videoItem).csFile === 1 && unref(videoItem).onlineState !== 1 ? (openBlock(), createElementBlock(
|
|
528
|
-
Fragment,
|
|
529
|
-
{ key: 0 },
|
|
530
|
-
[
|
|
531
|
-
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)]" }, [
|
|
532
|
-
createElementVNode("div", { class: "w-[42px] h-[42px] rounded-full border-[1px] border-dashed border-danger-2 flex justify-center items-center" }, [
|
|
533
|
-
createVNode(unref(HyIcon), {
|
|
534
|
-
"svg-name": "ops-button-icon-brok-link",
|
|
535
|
-
class: "!w-[24px] !h-[24px] text-danger-2"
|
|
536
|
-
})
|
|
537
|
-
])
|
|
538
|
-
]),
|
|
539
|
-
createElementVNode(
|
|
540
|
-
"span",
|
|
541
|
-
{ class: "text-xs text-auxiliary mt-4" },
|
|
542
|
-
toDisplayString($t$1("fileLoadingFailed")),
|
|
543
|
-
1
|
|
544
|
-
/* TEXT */
|
|
545
|
-
),
|
|
546
|
-
createElementVNode(
|
|
547
|
-
"span",
|
|
548
|
-
{ class: "text-xs text-auxiliary" },
|
|
549
|
-
toDisplayString($t$1("pleaseCheckWhetherTheCollectionStationIsOnlineAndWhetherTheFileExists")),
|
|
550
|
-
1
|
|
551
|
-
/* TEXT */
|
|
552
|
-
)
|
|
553
|
-
],
|
|
554
|
-
64
|
|
555
|
-
/* STABLE_FRAGMENT */
|
|
556
|
-
)) : (openBlock(), createElementBlock(
|
|
557
|
-
Fragment,
|
|
558
|
-
{ key: 1 },
|
|
559
|
-
[
|
|
560
|
-
createElementVNode("div", { class: "flex items-center justify-center text-auxiliary" }, [
|
|
561
|
-
createVNode(unref(HyIcon), {
|
|
562
|
-
"svg-name": "ops-audio-media-center-right-ripple",
|
|
563
|
-
class: "!w-[12px] !h-[12px]"
|
|
564
|
-
}),
|
|
565
|
-
createVNode(unref(HyIcon), {
|
|
566
|
-
"svg-name": "ops-audio-media-center-video",
|
|
567
|
-
class: "!w-[40px] !h-[40px] mx-1"
|
|
568
|
-
}),
|
|
569
|
-
createVNode(unref(HyIcon), {
|
|
570
|
-
"svg-name": "ops-audio-media-center-left-ripple",
|
|
571
|
-
class: "!w-[12px] !h-[12px]"
|
|
572
|
-
})
|
|
573
|
-
]),
|
|
574
|
-
createElementVNode(
|
|
575
|
-
"span",
|
|
576
|
-
{ class: "text-theme mt-3 mb-[14px]" },
|
|
577
|
-
toDisplayString(unref(isCanNotPlayType) ? $t$1("vlcPlayerTip") : $t$1("videoCannotBePlayed")),
|
|
578
|
-
1
|
|
579
|
-
/* TEXT */
|
|
580
|
-
),
|
|
581
|
-
unref(isCanNotPlayType) ? (openBlock(), createElementBlock("div", {
|
|
582
|
-
key: 0,
|
|
583
|
-
class: "flex justify-center"
|
|
584
|
-
}, [
|
|
585
|
-
unref(hasVLC) ? (openBlock(), createBlock(unref(HyButton), {
|
|
586
|
-
key: 0,
|
|
587
|
-
class: "",
|
|
588
|
-
onClick: unref(openVLC)
|
|
589
|
-
}, {
|
|
590
|
-
default: withCtx(() => [
|
|
591
|
-
createTextVNode(
|
|
592
|
-
toDisplayString($t$1("clickPlay")),
|
|
593
|
-
1
|
|
594
|
-
/* TEXT */
|
|
595
|
-
)
|
|
596
|
-
]),
|
|
597
|
-
_: 1
|
|
598
|
-
/* STABLE */
|
|
599
|
-
}, 8, ["onClick"])) : (openBlock(), createBlock(unref(HyButton), {
|
|
600
|
-
key: 1,
|
|
601
|
-
class: "",
|
|
602
|
-
onClick: unref(downloadVLC)
|
|
603
|
-
}, {
|
|
604
|
-
default: withCtx(() => [
|
|
605
|
-
createTextVNode(
|
|
606
|
-
toDisplayString($t$1("toDownloadVlc")),
|
|
607
|
-
1
|
|
608
|
-
/* TEXT */
|
|
609
|
-
)
|
|
610
|
-
]),
|
|
611
|
-
_: 1
|
|
612
|
-
/* STABLE */
|
|
613
|
-
}, 8, ["onClick"]))
|
|
614
|
-
])) : createCommentVNode("v-if", true)
|
|
615
|
-
],
|
|
616
|
-
64
|
|
617
|
-
/* STABLE_FRAGMENT */
|
|
618
|
-
)),
|
|
619
|
-
__props.playList?.length > 1 ? (openBlock(), createElementBlock(
|
|
620
|
-
Fragment,
|
|
621
|
-
{ key: 2 },
|
|
622
|
-
[
|
|
623
|
-
createElementVNode("div", { class: "vlc-between-control absolute left-0 top-0 bottom-0 w-[30px] flex items-center justify-center bg-gradient-to-b from-[rgba(28,51,74,0)] via-[#1c334ac4] to-[rgba(28,51,74,0)]" }, [
|
|
624
|
-
createElementVNode("div", {
|
|
625
|
-
class: "w-[30px] h-[30px] bg-[#3D6286] flex items-center justify-center clickBox",
|
|
626
|
-
onClick: unref(playPrevious)
|
|
627
|
-
}, [
|
|
628
|
-
createVNode(unref(ElTooltip), {
|
|
629
|
-
effect: "dark",
|
|
630
|
-
content: $t$1("viewPreviousVideo"),
|
|
631
|
-
placement: "top"
|
|
632
|
-
}, {
|
|
633
|
-
default: withCtx(() => [
|
|
634
|
-
createVNode(unref(HyIcon), {
|
|
635
|
-
"svg-name": "dispatch-Adv-v3-monitor-previous",
|
|
636
|
-
class: "!w-3 !h-3"
|
|
637
|
-
})
|
|
638
|
-
]),
|
|
639
|
-
_: 1
|
|
640
|
-
/* STABLE */
|
|
641
|
-
}, 8, ["content"])
|
|
642
|
-
], 8, ["onClick"])
|
|
643
|
-
]),
|
|
644
|
-
createElementVNode("div", { class: "vlc-between-control absolute right-0 top-0 bottom-0 w-[30px] flex items-center justify-center bg-gradient-to-b from-[rgba(28,51,74,0)] via-[#1c334ac4] to-[rgba(28,51,74,0)]" }, [
|
|
645
|
-
createElementVNode("div", {
|
|
646
|
-
class: "w-[30px] h-[30px] bg-[#3D6286] flex items-center justify-center clickBox",
|
|
647
|
-
onClick: unref(playNext)
|
|
648
|
-
}, [
|
|
649
|
-
createVNode(unref(ElTooltip), {
|
|
650
|
-
effect: "dark",
|
|
651
|
-
content: $t$1("viewNextVideo"),
|
|
652
|
-
placement: "top"
|
|
653
|
-
}, {
|
|
654
|
-
default: withCtx(() => [
|
|
655
|
-
createVNode(unref(HyIcon), {
|
|
656
|
-
"svg-name": "dispatch-Adv-v3-monitor-next",
|
|
657
|
-
class: "!w-3 !h-3"
|
|
658
|
-
})
|
|
659
|
-
]),
|
|
660
|
-
_: 1
|
|
661
|
-
/* STABLE */
|
|
662
|
-
}, 8, ["content"])
|
|
663
|
-
], 8, ["onClick"])
|
|
664
|
-
])
|
|
665
|
-
],
|
|
666
|
-
64
|
|
667
|
-
/* STABLE_FRAGMENT */
|
|
668
|
-
)) : createCommentVNode("v-if", true)
|
|
669
|
-
])) : (openBlock(), createElementBlock(
|
|
670
|
-
Fragment,
|
|
671
|
-
{ key: 2 },
|
|
672
|
-
[
|
|
673
|
-
createElementVNode("video", {
|
|
674
|
-
id: "videoPlayer",
|
|
675
|
-
class: "w-full h-0 grow"
|
|
676
|
-
}, [
|
|
677
|
-
createElementVNode("source", { type: "video/mp4" }),
|
|
678
|
-
createElementVNode("source", { type: "video/webm" }),
|
|
679
|
-
createElementVNode("source", { type: "video/ogg" }),
|
|
680
|
-
createTextVNode(
|
|
681
|
-
" " + toDisplayString($t$1("yourBrowserDoesNotSupportHTMLVideoPlayback")),
|
|
682
|
-
1
|
|
683
|
-
/* TEXT */
|
|
684
|
-
)
|
|
685
|
-
]),
|
|
686
|
-
createElementVNode(
|
|
687
|
-
"div",
|
|
688
|
-
{
|
|
689
|
-
class: normalizeClass(["operator-box relative w-full flex flex-row justify-between items-center pt-4 bg-[#040814] text-main", unref(isFullScreen) ? "h-[65px]" : "h-[42px]"])
|
|
690
|
-
},
|
|
691
|
-
[
|
|
692
|
-
createElementVNode("div", { class: "progress-box absolute top-0 w-full text-center" }, [
|
|
693
|
-
withDirectives(createElementVNode("input", {
|
|
694
|
-
max: "100",
|
|
695
|
-
class: "relative w-[99%] h-[6px] rounded-[20px] outline-none appearance-none bg-[#eaf5f9]",
|
|
696
|
-
style: normalizeStyle({
|
|
697
|
-
background: `linear-gradient(to right, rgb(var(--hy-theme), 1) ${unref(getPercent)(
|
|
698
|
-
unref(value),
|
|
699
|
-
100
|
|
700
|
-
)}%, rgb(var(--hy-theme), 0.5) ${unref(getPercent)(unref(value), 100)}% `
|
|
701
|
-
}),
|
|
702
|
-
type: "range",
|
|
703
|
-
onMouseup: ($event) => unref(getNowWh)($event),
|
|
704
|
-
onMousedown: ($event) => isDrop.value = true,
|
|
705
|
-
ref: "progressRef",
|
|
706
|
-
id: "progress",
|
|
707
|
-
"onUpdate:modelValue": ($event) => isRef(value) ? value.value = $event : null
|
|
708
|
-
}, null, 44, ["onMouseup", "onMousedown", "onUpdate:modelValue"]), [
|
|
709
|
-
[vModelText, unref(value)]
|
|
710
|
-
])
|
|
711
|
-
]),
|
|
712
|
-
createElementVNode("div", { class: "left-operator flex w-[120px] text-xs font-bold leading-[20px] text-auxiliary" }, [
|
|
713
|
-
createElementVNode(
|
|
714
|
-
"span",
|
|
715
|
-
{ class: "is-play-seconds shrink-0 mx-2" },
|
|
716
|
-
toDisplayString(unref(formatSeconds)(unref(curTime), Math.floor(unref(totalTime) / 3600))) + '" ',
|
|
717
|
-
1
|
|
718
|
-
/* TEXT */
|
|
719
|
-
),
|
|
720
|
-
createTextVNode(" / "),
|
|
721
|
-
createElementVNode(
|
|
722
|
-
"span",
|
|
723
|
-
{ class: "total-seconds shrink-0 mx-2" },
|
|
724
|
-
toDisplayString(unref(formatSeconds)(unref(totalTime))) + '" ',
|
|
725
|
-
1
|
|
726
|
-
/* TEXT */
|
|
727
|
-
)
|
|
728
|
-
]),
|
|
729
|
-
unref(canPlay) ? (openBlock(), createElementBlock("div", {
|
|
730
|
-
key: 0,
|
|
731
|
-
class: "center-operator flex w-[88px] justify-between items-center group-[.is-full]:h-[34px]"
|
|
732
|
-
}, [
|
|
733
|
-
createElementVNode("span", { onClick: unref(playPrevious) }, [
|
|
734
|
-
createVNode(unref(HyIcon), {
|
|
735
|
-
"svg-name": "ops-audio-audio-previous-btn",
|
|
736
|
-
class: normalizeClass(centerIconClass)
|
|
737
|
-
})
|
|
738
|
-
], 8, ["onClick"]),
|
|
739
|
-
unref(videoState) !== "PLAYING" && unref(canPlay) ? (openBlock(), createElementBlock("span", {
|
|
740
|
-
key: 0,
|
|
741
|
-
onClick: ($event) => unref(playVideo)(unref(videoUrl))
|
|
742
|
-
}, [
|
|
743
|
-
createVNode(unref(HyIcon), {
|
|
744
|
-
"svg-name": "ops-audio-audio-play-btn",
|
|
745
|
-
class: normalizeClass(centerIconClass)
|
|
746
|
-
})
|
|
747
|
-
], 8, ["onClick"])) : createCommentVNode("v-if", true),
|
|
748
|
-
unref(videoState) === "PLAYING" ? (openBlock(), createElementBlock("span", {
|
|
749
|
-
key: 1,
|
|
750
|
-
onClick: unref(pauseVideo)
|
|
751
|
-
}, [
|
|
752
|
-
createVNode(unref(HyIcon), {
|
|
753
|
-
"svg-name": "ops-audio-audio-pause-btn",
|
|
754
|
-
class: normalizeClass(centerIconClass)
|
|
755
|
-
})
|
|
756
|
-
], 8, ["onClick"])) : createCommentVNode("v-if", true),
|
|
757
|
-
createElementVNode("span", { onClick: unref(playNext) }, [
|
|
758
|
-
createVNode(unref(HyIcon), {
|
|
759
|
-
"svg-name": "ops-audio-audio-next-btn",
|
|
760
|
-
class: normalizeClass(centerIconClass)
|
|
761
|
-
})
|
|
762
|
-
], 8, ["onClick"])
|
|
763
|
-
])) : createCommentVNode("v-if", true),
|
|
764
|
-
createElementVNode("div", { class: "right-operator relative flex items-center justify-end group-[.is-full]:h-[22px]" }, [
|
|
765
|
-
createCommentVNode(" \u901F\u5EA6 "),
|
|
766
|
-
createVNode(unref(ElPopover), {
|
|
767
|
-
placement: "top",
|
|
768
|
-
appendToBody: false,
|
|
769
|
-
"popper-class": "minWidth0_popover popover_darkColor liveBroadcast w-[62px]",
|
|
770
|
-
trigger: "click"
|
|
771
|
-
}, {
|
|
772
|
-
reference: withCtx(() => [
|
|
773
|
-
createElementVNode("div", { class: "speed_box w-[60px] h-6 shrink-0 mr-[10px] rounded border border-solid border-border text-xs text-auxiliary flex items-center justify-center clickBox select-none px-1 box-border" }, [
|
|
774
|
-
createElementVNode(
|
|
775
|
-
"div",
|
|
776
|
-
{ class: "overflow-ellipsis overflow-hidden whitespace-nowrap" },
|
|
777
|
-
toDisplayString(unref(speedLabel)),
|
|
778
|
-
1
|
|
779
|
-
/* TEXT */
|
|
780
|
-
)
|
|
781
|
-
])
|
|
782
|
-
]),
|
|
783
|
-
default: withCtx(() => [
|
|
784
|
-
createElementVNode("div", { class: "flex items-center justify-center p-[10px_0]" }, [
|
|
785
|
-
createElementVNode("ul", { class: "speedList w-full text-auxiliary text-xs" }, [
|
|
786
|
-
(openBlock(true), createElementBlock(
|
|
787
|
-
Fragment,
|
|
788
|
-
null,
|
|
789
|
-
renderList(unref(speedList), (item, index) => {
|
|
790
|
-
return openBlock(), createElementBlock("li", {
|
|
791
|
-
class: normalizeClass(["clickBox h-[26px] leading-[26px] text-center hover:text-theme hover:bg-background-3", { "text-theme bg-background-3": item.value === unref(speed) }]),
|
|
792
|
-
onClick: ($event) => unref(speedFn)(item.value),
|
|
793
|
-
key: index
|
|
794
|
-
}, toDisplayString(item.label), 11, ["onClick"]);
|
|
795
|
-
}),
|
|
796
|
-
128
|
|
797
|
-
/* KEYED_FRAGMENT */
|
|
798
|
-
))
|
|
799
|
-
])
|
|
800
|
-
])
|
|
801
|
-
]),
|
|
802
|
-
_: 1
|
|
803
|
-
/* STABLE */
|
|
804
|
-
}),
|
|
805
|
-
createCommentVNode(" \u58F0\u97F3 "),
|
|
806
|
-
createVNode(unref(ElPopover), {
|
|
807
|
-
placement: "top",
|
|
808
|
-
appendToBody: false,
|
|
809
|
-
"popper-class": "popover_volumeSlider w-[40px]",
|
|
810
|
-
trigger: "click"
|
|
811
|
-
}, {
|
|
812
|
-
reference: withCtx(() => [
|
|
813
|
-
createElementVNode("div", null, [
|
|
814
|
-
createVNode(unref(ElTooltip), {
|
|
815
|
-
class: "item",
|
|
816
|
-
effect: "dark",
|
|
817
|
-
content: $t$1("adjustPlaybackVolume"),
|
|
818
|
-
placement: "top"
|
|
819
|
-
}, {
|
|
820
|
-
default: withCtx(() => [
|
|
821
|
-
createVNode(unref(HyIcon), {
|
|
822
|
-
"svg-name": "dispatch-share-audio-volumn",
|
|
823
|
-
class: normalizeClass(rightIconClass)
|
|
824
|
-
})
|
|
825
|
-
]),
|
|
826
|
-
_: 1
|
|
827
|
-
/* STABLE */
|
|
828
|
-
}, 8, ["content"])
|
|
829
|
-
])
|
|
830
|
-
]),
|
|
831
|
-
default: withCtx(() => [
|
|
832
|
-
createElementVNode("div", { class: "flex items-center justify-center" }, [
|
|
833
|
-
createVNode(unref(ElSlider), {
|
|
834
|
-
onInput: ($event) => unref(changeVolume)($event),
|
|
835
|
-
class: "volume-slider",
|
|
836
|
-
modelValue: unref(volumeValue),
|
|
837
|
-
"onUpdate:modelValue": ($event) => isRef(volumeValue) ? volumeValue.value = $event : null,
|
|
838
|
-
vertical: "",
|
|
839
|
-
height: "105px"
|
|
840
|
-
}, null, 8, ["onInput", "modelValue", "onUpdate:modelValue"])
|
|
841
|
-
])
|
|
842
|
-
]),
|
|
843
|
-
_: 1
|
|
844
|
-
/* STABLE */
|
|
845
|
-
}),
|
|
846
|
-
createCommentVNode(" \u653E\u5927 "),
|
|
847
|
-
createVNode(unref(ElTooltip), {
|
|
848
|
-
class: "item clickBox",
|
|
849
|
-
effect: "dark",
|
|
850
|
-
content: $t$1("fullScreenSwitch"),
|
|
851
|
-
placement: "top",
|
|
852
|
-
appendToBody: false
|
|
853
|
-
}, {
|
|
854
|
-
default: withCtx(() => [
|
|
855
|
-
createVNode(unref(HyIcon), {
|
|
856
|
-
onClick: unref(clickFullScreen),
|
|
857
|
-
"svg-name": unref(isFullScreen) ? "ops-audio-audio-reduce" : "ops-audio-audio-enlarge",
|
|
858
|
-
class: normalizeClass(rightIconClass)
|
|
859
|
-
}, null, 8, ["onClick", "svg-name"])
|
|
860
|
-
]),
|
|
861
|
-
_: 1
|
|
862
|
-
/* STABLE */
|
|
863
|
-
}, 8, ["content"])
|
|
864
|
-
])
|
|
865
|
-
],
|
|
866
|
-
2
|
|
867
|
-
/* CLASS */
|
|
868
|
-
)
|
|
869
|
-
],
|
|
870
|
-
64
|
|
871
|
-
/* STABLE_FRAGMENT */
|
|
872
|
-
)),
|
|
873
|
-
__props.downloadFilesType || __props.playRulesType ? (openBlock(), createElementBlock(
|
|
874
|
-
"div",
|
|
875
|
-
{
|
|
876
|
-
key: 3,
|
|
877
|
-
class: normalizeClass(["float-operator-item right-top-operator absolute top-5 right-[10px] z-[100] cursor-pointer text-main group-[.is-full]:right-4", { "!right-[43px]": unref(videoState) === "CAN_NOT_PLAY" && __props.playList?.length > 1 }])
|
|
878
|
-
},
|
|
879
|
-
[
|
|
880
|
-
createCommentVNode(" \u4E0B\u8F7D "),
|
|
881
|
-
__props.downloadFilesType ? (openBlock(), createBlock(unref(ElTooltip), {
|
|
882
|
-
key: 0,
|
|
883
|
-
class: "item clickBox",
|
|
884
|
-
effect: "dark",
|
|
885
|
-
content: $t$1("downloadFile"),
|
|
886
|
-
placement: "top"
|
|
887
|
-
}, {
|
|
888
|
-
default: withCtx(() => [
|
|
889
|
-
createVNode(unref(HyIcon), {
|
|
890
|
-
onClick: withModifiers(unref(downloadFn), ["stop"]),
|
|
891
|
-
"svg-name": "ops-audio-audio-down-btn",
|
|
892
|
-
class: normalizeClass(floatIconClass)
|
|
893
|
-
}, null, 8, ["onClick"])
|
|
894
|
-
]),
|
|
895
|
-
_: 1
|
|
896
|
-
/* STABLE */
|
|
897
|
-
}, 8, ["content"])) : createCommentVNode("v-if", true),
|
|
898
|
-
createCommentVNode(" \u64AD\u653E\u89C4\u5219 "),
|
|
899
|
-
__props.playRulesType && unref(videoState) !== "CAN_NOT_PLAY" ? (openBlock(), createElementBlock("div", {
|
|
900
|
-
key: 1,
|
|
901
|
-
class: "mt-2 [&>div+div]:mt-[10px]"
|
|
902
|
-
}, [
|
|
903
|
-
(openBlock(true), createElementBlock(
|
|
904
|
-
Fragment,
|
|
905
|
-
null,
|
|
906
|
-
renderList(unref(playRuleslist), (item, index) => {
|
|
907
|
-
return withDirectives((openBlock(), createElementBlock("div", {
|
|
908
|
-
onClick: ($event) => unref(playRulesFn)(item.value),
|
|
909
|
-
key: index + "playRuleslist"
|
|
910
|
-
}, [
|
|
911
|
-
createVNode(unref(ElTooltip), {
|
|
912
|
-
class: "item clickBox",
|
|
913
|
-
effect: "dark",
|
|
914
|
-
content: item.label,
|
|
915
|
-
placement: "top"
|
|
916
|
-
}, {
|
|
917
|
-
default: withCtx(() => [
|
|
918
|
-
createVNode(unref(HyIcon), {
|
|
919
|
-
"svg-name": item.svgName,
|
|
920
|
-
class: normalizeClass(floatIconClass)
|
|
921
|
-
}, null, 8, ["svg-name"])
|
|
922
|
-
]),
|
|
923
|
-
_: 2
|
|
924
|
-
/* DYNAMIC */
|
|
925
|
-
}, 1032, ["content"])
|
|
926
|
-
], 8, ["onClick"])), [
|
|
927
|
-
[vShow, unref(playRules) === item.value]
|
|
928
|
-
]);
|
|
929
|
-
}),
|
|
930
|
-
128
|
|
931
|
-
/* KEYED_FRAGMENT */
|
|
932
|
-
))
|
|
933
|
-
])) : createCommentVNode("v-if", true),
|
|
934
|
-
renderSlot(_ctx.$slots, "pight-control-ranel", {}, void 0, true)
|
|
935
|
-
],
|
|
936
|
-
2
|
|
937
|
-
/* CLASS */
|
|
938
|
-
)) : createCommentVNode("v-if", true)
|
|
939
|
-
],
|
|
940
|
-
2
|
|
941
|
-
/* CLASS */
|
|
942
|
-
);
|
|
943
|
-
};
|
|
944
|
-
}
|
|
945
|
-
});
|
|
946
|
-
|
|
947
|
-
export { _sfc_main as default };
|