@yimou6/common-ui 1.10.14 → 1.10.16

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.
Files changed (37) hide show
  1. package/cdn/index.cdn.js +21 -11
  2. package/cdn/index.cdn.js.map +1 -1
  3. package/cdn/index.cdn.mjs +21 -11
  4. package/cdn/index.cdn.mjs.map +1 -1
  5. package/es/components/tzj-player/index.d.ts +4764 -212
  6. package/es/components/tzj-player/src/ctyun-player.d.ts +6 -0
  7. package/es/components/tzj-player/src/ctyun-player.mjs +184 -0
  8. package/es/components/tzj-player/src/ctyun-player.mjs.map +1 -0
  9. package/es/components/tzj-player/src/ctyun-player.vue.d.ts +1519 -0
  10. package/es/components/tzj-player/src/ctyun-player.vue.mjs +6 -0
  11. package/es/components/tzj-player/src/ctyun-player.vue.mjs.map +1 -0
  12. package/es/components/tzj-player/src/ctyun-player.vue2.mjs +588 -0
  13. package/es/components/tzj-player/src/ctyun-player.vue2.mjs.map +1 -0
  14. package/es/components/tzj-player/src/easyPlayer.vue2.mjs +0 -1
  15. package/es/components/tzj-player/src/easyPlayer.vue2.mjs.map +1 -1
  16. package/es/components/tzj-player/src/tzj-player.vue.d.ts +4764 -212
  17. package/es/components/tzj-player/src/tzj-player.vue2.mjs +8 -5
  18. package/es/components/tzj-player/src/tzj-player.vue2.mjs.map +1 -1
  19. package/es/components/tzj-player/src/yunzhiyanPlayer.vue2.mjs +3 -3
  20. package/es/components/tzj-player/src/yunzhiyanPlayer.vue2.mjs.map +1 -1
  21. package/lib/components/tzj-player/index.d.ts +4764 -212
  22. package/lib/components/tzj-player/src/ctyun-player.d.ts +6 -0
  23. package/lib/components/tzj-player/src/ctyun-player.js +188 -0
  24. package/lib/components/tzj-player/src/ctyun-player.js.map +1 -0
  25. package/lib/components/tzj-player/src/ctyun-player.vue.d.ts +1519 -0
  26. package/lib/components/tzj-player/src/ctyun-player.vue.js +10 -0
  27. package/lib/components/tzj-player/src/ctyun-player.vue.js.map +1 -0
  28. package/lib/components/tzj-player/src/ctyun-player.vue2.js +592 -0
  29. package/lib/components/tzj-player/src/ctyun-player.vue2.js.map +1 -0
  30. package/lib/components/tzj-player/src/easyPlayer.vue2.js +0 -1
  31. package/lib/components/tzj-player/src/easyPlayer.vue2.js.map +1 -1
  32. package/lib/components/tzj-player/src/tzj-player.vue.d.ts +4764 -212
  33. package/lib/components/tzj-player/src/tzj-player.vue2.js +5 -2
  34. package/lib/components/tzj-player/src/tzj-player.vue2.js.map +1 -1
  35. package/lib/components/tzj-player/src/yunzhiyanPlayer.vue2.js +3 -3
  36. package/lib/components/tzj-player/src/yunzhiyanPlayer.vue2.js.map +1 -1
  37. package/package.json +1 -1
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var ctyunPlayer_vue_vue_type_script_setup_true_lang = require('./ctyun-player.vue2.js');
6
+
7
+
8
+
9
+ exports.default = ctyunPlayer_vue_vue_type_script_setup_true_lang.default;
10
+ //# sourceMappingURL=ctyun-player.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ctyun-player.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,592 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+ var ctyunPlayer = require('./ctyun-player.js');
7
+ require('./easyPlayer.vue.js');
8
+ var tzjPlayer = require('./tzj-player.js');
9
+ var easyPlayer_vue_vue_type_script_setup_true_lang = require('./easyPlayer.vue2.js');
10
+
11
+ var __defProp = Object.defineProperty;
12
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
13
+ const _hoisted_1 = {
14
+ key: 0,
15
+ class: "i-tzj-player__error"
16
+ };
17
+ const _hoisted_2 = {
18
+ key: 0,
19
+ class: "i-easy-player-bar"
20
+ };
21
+ const _hoisted_3 = { class: "i-easy-player-bar-item i-easy-player-bar-left" };
22
+ const _hoisted_4 = {
23
+ key: 2,
24
+ class: "i-easy-player-bottom-bar"
25
+ };
26
+ const _hoisted_5 = {
27
+ key: 3,
28
+ class: "i-easy-player-bottom-bar"
29
+ };
30
+ const _hoisted_6 = { class: "i-easy-player-bar-item i-easy-player-bar-right" };
31
+ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
32
+ ...{
33
+ name: "CtyunPlayer"
34
+ },
35
+ __name: "ctyun-player",
36
+ props: tzjPlayer.TzjPlayerProps,
37
+ setup(__props) {
38
+ const props = __props;
39
+ const videoUrl = vue.ref("");
40
+ const showBottomBar = vue.ref(false);
41
+ const errorMsg = vue.ref("");
42
+ const playerRef = vue.shallowRef();
43
+ const isPlaying = vue.ref(false);
44
+ const isVoice = vue.ref(false);
45
+ const isFullscreen = vue.ref(false);
46
+ const isVolumeMuted = vue.ref(true);
47
+ const isIntercomActive = vue.ref(false);
48
+ const audioContext = vue.ref(null);
49
+ const mediaStream = vue.ref(null);
50
+ const websocket = vue.ref(null);
51
+ const audioWorkletNode = vue.ref(null);
52
+ const intercomTimer = vue.ref(null);
53
+ const audioMsg = vue.ref({
54
+ type: "",
55
+ msg: ""
56
+ });
57
+ const taskId = vue.ref("");
58
+ const AUDIO_CONFIG = {
59
+ sampleRate: 48e3,
60
+ channelCount: 1,
61
+ sampleSize: 16
62
+ };
63
+ const initPlayer = /* @__PURE__ */ __name(async () => {
64
+ try {
65
+ if (!props.deviceSerial) {
66
+ errorMsg.value = "\u8BBE\u5907\u5E8F\u5217\u53F7\u4E0D\u80FD\u4E3A\u7A7A";
67
+ return;
68
+ }
69
+ const url = await ctyunPlayer.GetCtyunDeviceVideoUrl(props.deviceSerial);
70
+ if (!url) {
71
+ errorMsg.value = "\u83B7\u53D6\u89C6\u9891\u64AD\u653E\u5730\u5740\u5931\u8D25";
72
+ return;
73
+ }
74
+ videoUrl.value = url;
75
+ errorMsg.value = "";
76
+ } catch (error) {
77
+ if (props.debug) {
78
+ console.error("\u521D\u59CB\u5316\u5929\u7FFC\u4E91\u64AD\u653E\u5668\u5931\u8D25:", error);
79
+ }
80
+ errorMsg.value = `\u521D\u59CB\u5316\u5931\u8D25: ${error instanceof Error ? error.message : "\u672A\u77E5\u9519\u8BEF"}`;
81
+ }
82
+ }, "initPlayer");
83
+ const playerPlay = /* @__PURE__ */ __name(() => {
84
+ var _a;
85
+ (_a = playerRef.value) == null ? void 0 : _a.play();
86
+ }, "playerPlay");
87
+ const playerPause = /* @__PURE__ */ __name(() => {
88
+ var _a;
89
+ (_a = playerRef.value) == null ? void 0 : _a.pause();
90
+ }, "playerPause");
91
+ const playerScreenShot = /* @__PURE__ */ __name(() => {
92
+ var _a;
93
+ (_a = playerRef.value) == null ? void 0 : _a.screenshot();
94
+ }, "playerScreenShot");
95
+ const playerFullscreen = /* @__PURE__ */ __name((fullscreen) => {
96
+ var _a;
97
+ isFullscreen.value = fullscreen;
98
+ (_a = playerRef.value) == null ? void 0 : _a.fullscreen(fullscreen);
99
+ }, "playerFullscreen");
100
+ const handleVideoInfo = /* @__PURE__ */ __name(() => {
101
+ var _a;
102
+ isVolumeMuted.value = (_a = playerRef.value) == null ? void 0 : _a.isMute();
103
+ }, "handleVideoInfo");
104
+ const handleMute = /* @__PURE__ */ __name((mute) => {
105
+ isVolumeMuted.value = mute;
106
+ }, "handleMute");
107
+ const handleSetMute = /* @__PURE__ */ __name((volume) => {
108
+ var _a;
109
+ (_a = playerRef.value) == null ? void 0 : _a.setMute(volume);
110
+ }, "handleSetMute");
111
+ const audioErrorMsg = /* @__PURE__ */ __name((msg) => {
112
+ audioMsg.value = {
113
+ type: "error",
114
+ msg
115
+ };
116
+ setTimeout(() => {
117
+ audioMsg.value = {
118
+ type: "",
119
+ msg: ""
120
+ };
121
+ }, 3e3);
122
+ }, "audioErrorMsg");
123
+ const initAudioContext = /* @__PURE__ */ __name(async () => {
124
+ try {
125
+ if (typeof window === "undefined") {
126
+ throw new Error("\u975E\u6D4F\u89C8\u5668\u73AF\u5883\uFF0C\u65E0\u6CD5\u4F7F\u7528AudioContext");
127
+ }
128
+ const AudioContext = window.AudioContext || window.webkitAudioContext;
129
+ if (!AudioContext) {
130
+ throw new Error("\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301AudioContext");
131
+ }
132
+ audioContext.value = new AudioContext({
133
+ sampleRate: AUDIO_CONFIG.sampleRate
134
+ });
135
+ if (audioContext.value.state === "suspended") {
136
+ await audioContext.value.resume();
137
+ }
138
+ if (props.debug) {
139
+ console.log(
140
+ "\u97F3\u9891\u4E0A\u4E0B\u6587\u521D\u59CB\u5316\u6210\u529F\uFF0C\u91C7\u6837\u7387:",
141
+ audioContext.value.sampleRate
142
+ );
143
+ }
144
+ } catch (error) {
145
+ throw new Error(`\u97F3\u9891\u4E0A\u4E0B\u6587\u521D\u59CB\u5316\u5931\u8D25: ${error}`);
146
+ }
147
+ }, "initAudioContext");
148
+ const initMicrophone = /* @__PURE__ */ __name(async () => {
149
+ try {
150
+ if (!navigator.mediaDevices || !navigator.mediaDevices.getUserMedia) {
151
+ throw new Error("\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u9EA6\u514B\u98CE\u8BBF\u95EE");
152
+ }
153
+ const constraints = {
154
+ audio: {
155
+ channelCount: AUDIO_CONFIG.channelCount,
156
+ sampleRate: AUDIO_CONFIG.sampleRate,
157
+ echoCancellation: true,
158
+ noiseSuppression: true,
159
+ autoGainControl: true
160
+ },
161
+ video: false
162
+ };
163
+ mediaStream.value = await navigator.mediaDevices.getUserMedia(constraints);
164
+ if (props.debug) {
165
+ console.log("\u9EA6\u514B\u98CE\u521D\u59CB\u5316\u6210\u529F");
166
+ }
167
+ } catch (error) {
168
+ if (error instanceof Error) {
169
+ switch (error.name) {
170
+ case "NotAllowedError":
171
+ throw new Error("\u9EA6\u514B\u98CE\u6743\u9650\u88AB\u62D2\u7EDD\uFF0C\u8BF7\u5141\u8BB8\u8BBF\u95EE\u9EA6\u514B\u98CE");
172
+ case "NotFoundError":
173
+ throw new Error("\u672A\u627E\u5230\u53EF\u7528\u7684\u9EA6\u514B\u98CE\u8BBE\u5907");
174
+ case "NotReadableError":
175
+ throw new Error("\u9EA6\u514B\u98CE\u8BBE\u5907\u88AB\u5176\u4ED6\u5E94\u7528\u5360\u7528");
176
+ case "OverconstrainedError":
177
+ throw new Error("\u9EA6\u514B\u98CE\u8BBE\u5907\u4E0D\u652F\u6301\u6307\u5B9A\u7684\u97F3\u9891\u53C2\u6570");
178
+ default:
179
+ throw new Error(`\u9EA6\u514B\u98CE\u521D\u59CB\u5316\u5931\u8D25: ${error.message}`);
180
+ }
181
+ }
182
+ throw new Error(`\u9EA6\u514B\u98CE\u521D\u59CB\u5316\u5931\u8D25: ${error}`);
183
+ }
184
+ }, "initMicrophone");
185
+ const connectWebSocket = /* @__PURE__ */ __name(async (url) => {
186
+ return new Promise((resolve, reject) => {
187
+ try {
188
+ websocket.value = new WebSocket(url);
189
+ websocket.value.binaryType = "arraybuffer";
190
+ let isResolved = false;
191
+ websocket.value.onopen = () => {
192
+ if (props.debug) {
193
+ console.log("WebSocket\u8FDE\u63A5\u6210\u529F");
194
+ }
195
+ if (!isResolved) {
196
+ isResolved = true;
197
+ resolve();
198
+ }
199
+ };
200
+ websocket.value.onerror = (error) => {
201
+ if (props.debug) {
202
+ console.error("WebSocket\u8FDE\u63A5\u9519\u8BEF:", error);
203
+ }
204
+ if (!isResolved) {
205
+ isResolved = true;
206
+ reject(new Error("WebSocket\u8FDE\u63A5\u5931\u8D25"));
207
+ }
208
+ };
209
+ websocket.value.onclose = (event) => {
210
+ if (props.debug) {
211
+ console.log("WebSocket\u8FDE\u63A5\u5173\u95ED:", event.code, event.reason);
212
+ }
213
+ if (isIntercomActive.value) {
214
+ isIntercomActive.value = false;
215
+ isVoice.value = false;
216
+ }
217
+ };
218
+ websocket.value.onmessage = (event) => {
219
+ if (props.debug) {
220
+ console.log("\u6536\u5230\u670D\u52A1\u7AEF\u6D88\u606F:", event.data);
221
+ }
222
+ };
223
+ const timeoutId = setTimeout(() => {
224
+ var _a, _b;
225
+ if (!isResolved && ((_a = websocket.value) == null ? void 0 : _a.readyState) !== WebSocket.OPEN) {
226
+ isResolved = true;
227
+ (_b = websocket.value) == null ? void 0 : _b.close();
228
+ reject(new Error("WebSocket\u8FDE\u63A5\u8D85\u65F6"));
229
+ }
230
+ }, 1e4);
231
+ if (websocket.value) {
232
+ const originalOnOpen = websocket.value.onopen;
233
+ const originalOnError = websocket.value.onerror;
234
+ websocket.value.onopen = function(event) {
235
+ clearTimeout(timeoutId);
236
+ originalOnOpen == null ? void 0 : originalOnOpen.call(this, event);
237
+ };
238
+ websocket.value.onerror = function(event) {
239
+ clearTimeout(timeoutId);
240
+ originalOnError == null ? void 0 : originalOnError.call(this, event);
241
+ };
242
+ }
243
+ } catch (error) {
244
+ reject(new Error(`WebSocket\u521B\u5EFA\u5931\u8D25: ${error}`));
245
+ }
246
+ });
247
+ }, "connectWebSocket");
248
+ const convertToPCM16 = /* @__PURE__ */ __name((float32Array) => {
249
+ const buffer = new ArrayBuffer(float32Array.length * 2);
250
+ const view = new DataView(buffer);
251
+ for (let i = 0; i < float32Array.length; i++) {
252
+ const sample = Math.max(-1, Math.min(1, float32Array[i]));
253
+ const intSample = sample < 0 ? sample * 32768 : sample * 32767;
254
+ view.setInt16(i * 2, intSample, true);
255
+ }
256
+ return buffer;
257
+ }, "convertToPCM16");
258
+ const startAudioProcessing = /* @__PURE__ */ __name(async () => {
259
+ try {
260
+ if (!audioContext.value || !mediaStream.value) {
261
+ throw new Error("\u97F3\u9891\u4E0A\u4E0B\u6587\u6216\u5A92\u4F53\u6D41\u672A\u521D\u59CB\u5316");
262
+ }
263
+ const sourceNode = audioContext.value.createMediaStreamSource(
264
+ mediaStream.value
265
+ );
266
+ const bufferSize = 4096;
267
+ const processor = audioContext.value.createScriptProcessor(
268
+ bufferSize,
269
+ 1,
270
+ 1
271
+ );
272
+ processor.onaudioprocess = (event) => {
273
+ if (!isIntercomActive.value || !websocket.value || websocket.value.readyState !== WebSocket.OPEN) {
274
+ return;
275
+ }
276
+ try {
277
+ const inputBuffer = event.inputBuffer;
278
+ const inputData = inputBuffer.getChannelData(0);
279
+ if (inputData.length === 0) {
280
+ return;
281
+ }
282
+ const pcmData = convertToPCM16(inputData);
283
+ websocket.value.send(pcmData);
284
+ } catch (error) {
285
+ if (props.debug) {
286
+ console.error("\u97F3\u9891\u6570\u636E\u5904\u7406\u9519\u8BEF:", error);
287
+ }
288
+ }
289
+ };
290
+ sourceNode.connect(processor);
291
+ processor.connect(audioContext.value.destination);
292
+ audioWorkletNode.value = processor;
293
+ if (props.debug) {
294
+ console.log("\u97F3\u9891\u6570\u636E\u5904\u7406\u5F00\u59CB");
295
+ }
296
+ } catch (error) {
297
+ throw new Error(`\u97F3\u9891\u6570\u636E\u5904\u7406\u542F\u52A8\u5931\u8D25: ${error}`);
298
+ }
299
+ }, "startAudioProcessing");
300
+ const stopIntercom = /* @__PURE__ */ __name(async () => {
301
+ try {
302
+ if (props.debug) {
303
+ console.log("\u6B63\u5728\u505C\u6B62\u8BED\u97F3\u5BF9\u8BB2...");
304
+ }
305
+ isVoice.value = false;
306
+ isIntercomActive.value = false;
307
+ if (intercomTimer.value) {
308
+ clearTimeout(intercomTimer.value);
309
+ intercomTimer.value = null;
310
+ }
311
+ if (props.deviceSerial && taskId.value) {
312
+ try {
313
+ } catch (error) {
314
+ if (props.debug) {
315
+ console.error("\u5173\u95ED\u670D\u52A1\u7AEF\u8BED\u97F3\u5BF9\u8BB2\u5931\u8D25:", error);
316
+ }
317
+ }
318
+ }
319
+ if (websocket.value) {
320
+ if (websocket.value.readyState === WebSocket.OPEN) {
321
+ websocket.value.close(1e3, "\u7528\u6237\u4E3B\u52A8\u5173\u95ED");
322
+ }
323
+ websocket.value = null;
324
+ }
325
+ if (mediaStream.value) {
326
+ mediaStream.value.getTracks().forEach((track) => {
327
+ track.stop();
328
+ });
329
+ mediaStream.value = null;
330
+ }
331
+ if (audioContext.value && audioContext.value.state !== "closed") {
332
+ try {
333
+ await audioContext.value.close();
334
+ } catch (error) {
335
+ if (props.debug) {
336
+ console.error("\u5173\u95ED\u97F3\u9891\u4E0A\u4E0B\u6587\u5931\u8D25:", error);
337
+ }
338
+ }
339
+ audioContext.value = null;
340
+ }
341
+ if (audioWorkletNode.value) {
342
+ try {
343
+ audioWorkletNode.value.disconnect();
344
+ } catch (error) {
345
+ if (props.debug) {
346
+ console.error("\u65AD\u5F00\u97F3\u9891\u5DE5\u4F5C\u8282\u70B9\u5931\u8D25:", error);
347
+ }
348
+ }
349
+ audioWorkletNode.value = null;
350
+ }
351
+ taskId.value = "";
352
+ audioMsg.value = {
353
+ type: "",
354
+ msg: ""
355
+ };
356
+ if (props.debug) {
357
+ console.log("\u8BED\u97F3\u5BF9\u8BB2\u5DF2\u505C\u6B62");
358
+ }
359
+ } catch (error) {
360
+ if (props.debug) {
361
+ console.error("\u505C\u6B62\u8BED\u97F3\u5BF9\u8BB2\u65F6\u53D1\u751F\u9519\u8BEF:", error);
362
+ }
363
+ }
364
+ }, "stopIntercom");
365
+ const intercom = /* @__PURE__ */ __name(async () => {
366
+ try {
367
+ if (props.debug) {
368
+ console.log("\u5F00\u59CB\u8BED\u97F3\u5BF9\u8BB2...");
369
+ }
370
+ audioMsg.value = {
371
+ type: "info",
372
+ msg: "\u6B63\u5728\u8FDE\u63A5..."
373
+ };
374
+ if (isIntercomActive.value) {
375
+ if (props.debug) {
376
+ console.warn("\u8BED\u97F3\u5BF9\u8BB2\u5DF2\u5728\u8FDB\u884C\u4E2D");
377
+ }
378
+ return;
379
+ }
380
+ isVoice.value = true;
381
+ if (props.debug) {
382
+ console.log("\u6B63\u5728\u83B7\u53D6\u8BED\u97F3\u63A8\u9001\u5730\u5740...");
383
+ }
384
+ const result = await ctyunPlayer.ctyunRequest(
385
+ "POST",
386
+ `/devices/${props.deviceSerial}/startTalk`,
387
+ {
388
+ body: {
389
+ // 传输优先级 tcp/udp
390
+ TransPriority: "tcp",
391
+ // 接入协议
392
+ InProtocol: "gb28181"
393
+ }
394
+ }
395
+ );
396
+ console.log(result);
397
+ if (result.statusCode === 200) {
398
+ } else {
399
+ audioErrorMsg((result == null ? void 0 : result.message) || "\u5F00\u542F\u8BED\u97F3\u5BF9\u8BB2\u5931\u8D25");
400
+ return;
401
+ }
402
+ console.log(result);
403
+ if (props.debug) {
404
+ console.log("\u8BED\u97F3\u63A8\u9001\u5730\u5740:", "");
405
+ }
406
+ } catch (error) {
407
+ console.error("\u5F00\u542F\u8BED\u97F3\u5BF9\u8BB2\u5931\u8D25:", error);
408
+ audioErrorMsg("\u5F00\u542F\u8BED\u97F3\u5BF9\u8BB2\u5931\u8D25");
409
+ }
410
+ }, "intercom");
411
+ vue.onMounted(() => {
412
+ initPlayer();
413
+ });
414
+ return (_ctx, _cache) => {
415
+ return vue.openBlock(), vue.createElementBlock(
416
+ vue.Fragment,
417
+ null,
418
+ [
419
+ errorMsg.value ? (vue.openBlock(), vue.createElementBlock(
420
+ "div",
421
+ _hoisted_1,
422
+ vue.toDisplayString(errorMsg.value),
423
+ 1
424
+ /* TEXT */
425
+ )) : videoUrl.value ? (vue.openBlock(), vue.createBlock(easyPlayer_vue_vue_type_script_setup_true_lang.default, {
426
+ key: 1,
427
+ ref_key: "playerRef",
428
+ ref: playerRef,
429
+ url: videoUrl.value,
430
+ debug: _ctx.debug,
431
+ "access-token": _ctx.accessToken,
432
+ "platform-type-name": _ctx.platformTypeName,
433
+ "device-serial": _ctx.deviceSerial,
434
+ "area-name": _ctx.areaName,
435
+ onMouseenter: _cache[4] || (_cache[4] = ($event) => showBottomBar.value = true),
436
+ onMouseleave: _cache[5] || (_cache[5] = ($event) => showBottomBar.value = false),
437
+ onPause: _cache[6] || (_cache[6] = ($event) => isPlaying.value = false),
438
+ onPlay: _cache[7] || (_cache[7] = ($event) => isPlaying.value = true),
439
+ onVideoInfo: handleVideoInfo,
440
+ onMute: handleMute
441
+ }, {
442
+ customBar: vue.withCtx(() => [
443
+ showBottomBar.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
444
+ vue.createCommentVNode(" \u5DE6\u4FA7\uFF1A\u64AD\u653E/\u6682\u505C "),
445
+ vue.createElementVNode("div", _hoisted_3, [
446
+ vue.createCommentVNode(" \u64AD\u653E "),
447
+ !isPlaying.value ? (vue.openBlock(), vue.createElementBlock("div", {
448
+ key: 0,
449
+ class: "i-easy-player-bottom-bar",
450
+ onClick: playerPlay
451
+ }, _cache[8] || (_cache[8] = [
452
+ vue.createElementVNode(
453
+ "i",
454
+ { class: "iconfont icon-playfill" },
455
+ null,
456
+ -1
457
+ /* CACHED */
458
+ )
459
+ ]))) : (vue.openBlock(), vue.createElementBlock(
460
+ vue.Fragment,
461
+ { key: 1 },
462
+ [
463
+ vue.createCommentVNode(" \u6682\u505C "),
464
+ vue.createElementVNode("div", {
465
+ class: "i-easy-player-bottom-bar",
466
+ onClick: playerPause
467
+ }, _cache[9] || (_cache[9] = [
468
+ vue.createElementVNode(
469
+ "i",
470
+ { class: "iconfont icon-stop" },
471
+ null,
472
+ -1
473
+ /* CACHED */
474
+ )
475
+ ]))
476
+ ],
477
+ 2112
478
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
479
+ )),
480
+ !isVolumeMuted.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
481
+ vue.createCommentVNode(" \u97F3\u91CF\u56FE\u6807 "),
482
+ vue.createElementVNode("i", {
483
+ class: "iconfont icon-notificationfill",
484
+ onClick: _cache[0] || (_cache[0] = ($event) => handleSetMute(1))
485
+ })
486
+ ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_5, [
487
+ vue.createCommentVNode(" \u9759\u97F3\u56FE\u6807 "),
488
+ vue.createElementVNode("i", {
489
+ class: "iconfont icon-notificationforbidfill",
490
+ onClick: _cache[1] || (_cache[1] = ($event) => handleSetMute(0))
491
+ })
492
+ ]))
493
+ ]),
494
+ vue.createCommentVNode(" \u622A\u56FE,\u5168\u5C4F "),
495
+ vue.createElementVNode("div", _hoisted_6, [
496
+ vue.createCommentVNode(" \u8BED\u97F3\u5BF9\u8BB2:\u5173\u95ED\u72B6\u6001 "),
497
+ !isVoice.value ? (vue.openBlock(), vue.createElementBlock("div", {
498
+ key: 0,
499
+ class: "i-easy-player-bottom-bar",
500
+ onClick: intercom
501
+ }, _cache[10] || (_cache[10] = [
502
+ vue.createElementVNode(
503
+ "i",
504
+ { class: "iconfont icon-voice" },
505
+ null,
506
+ -1
507
+ /* CACHED */
508
+ )
509
+ ]))) : vue.createCommentVNode("v-if", true),
510
+ vue.createCommentVNode(" \u8BED\u97F3\u5BF9\u8BB2:\u5F00\u542F\u72B6\u6001 "),
511
+ isVoice.value ? (vue.openBlock(), vue.createElementBlock("div", {
512
+ key: 1,
513
+ class: "i-easy-player-bottom-bar",
514
+ onClick: stopIntercom
515
+ }, _cache[11] || (_cache[11] = [
516
+ vue.createElementVNode(
517
+ "i",
518
+ { class: "iconfont icon-voicefill" },
519
+ null,
520
+ -1
521
+ /* CACHED */
522
+ )
523
+ ]))) : vue.createCommentVNode("v-if", true),
524
+ vue.createCommentVNode(" \u622A\u56FE "),
525
+ vue.createElementVNode("div", {
526
+ class: "i-easy-player-bottom-bar",
527
+ onClick: playerScreenShot
528
+ }, _cache[12] || (_cache[12] = [
529
+ vue.createElementVNode(
530
+ "i",
531
+ { class: "iconfont icon-picfill" },
532
+ null,
533
+ -1
534
+ /* CACHED */
535
+ )
536
+ ])),
537
+ vue.createCommentVNode(" \u5168\u5C4F "),
538
+ !isFullscreen.value ? (vue.openBlock(), vue.createElementBlock("div", {
539
+ key: 2,
540
+ title: "\u5168\u5C4F",
541
+ class: "i-easy-player-bottom-bar",
542
+ onClick: _cache[2] || (_cache[2] = ($event) => playerFullscreen(true))
543
+ }, _cache[13] || (_cache[13] = [
544
+ vue.createElementVNode(
545
+ "i",
546
+ { class: "iconfont icon-full" },
547
+ null,
548
+ -1
549
+ /* CACHED */
550
+ )
551
+ ]))) : vue.createCommentVNode("v-if", true),
552
+ vue.createCommentVNode(" \u53D6\u6D88\u5168\u5C4F "),
553
+ isFullscreen.value ? (vue.openBlock(), vue.createElementBlock("div", {
554
+ key: 3,
555
+ class: "i-easy-player-bottom-bar",
556
+ onClick: _cache[3] || (_cache[3] = ($event) => playerFullscreen(false))
557
+ }, _cache[14] || (_cache[14] = [
558
+ vue.createElementVNode(
559
+ "i",
560
+ { class: "iconfont icon-reduction" },
561
+ null,
562
+ -1
563
+ /* CACHED */
564
+ )
565
+ ]))) : vue.createCommentVNode("v-if", true)
566
+ ])
567
+ ])) : vue.createCommentVNode("v-if", true)
568
+ ]),
569
+ _: 1
570
+ /* STABLE */
571
+ }, 8, ["url", "debug", "access-token", "platform-type-name", "device-serial", "area-name"])) : vue.createCommentVNode("v-if", true),
572
+ vue.createCommentVNode(" \u8BED\u97F3\u5BF9\u8BB2\u9519\u8BEF\u63D0\u793A "),
573
+ audioMsg.value.msg ? (vue.openBlock(), vue.createElementBlock(
574
+ "div",
575
+ {
576
+ key: 2,
577
+ class: vue.normalizeClass(["i-tzj-player__voice-default", `i-tzj-player__voice-${audioMsg.value.type}`])
578
+ },
579
+ vue.toDisplayString(audioMsg.value.msg),
580
+ 3
581
+ /* TEXT, CLASS */
582
+ )) : vue.createCommentVNode("v-if", true)
583
+ ],
584
+ 64
585
+ /* STABLE_FRAGMENT */
586
+ );
587
+ };
588
+ }
589
+ });
590
+
591
+ exports.default = _sfc_main;
592
+ //# sourceMappingURL=ctyun-player.vue2.js.map