hy-dispatch-ui-v3 0.2.86 → 0.2.87

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