ranui 0.1.8 → 0.1.10-alpha.1

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 (176) hide show
  1. package/dist/_commonjs-dynamic-modules-DLbDWi6a.js +12 -0
  2. package/dist/arrow-down-C9jBUUt3.js +30 -0
  3. package/dist/assets/image/failImage.d.ts +2 -0
  4. package/dist/button.js +7 -0
  5. package/dist/checkbox.js +7 -0
  6. package/dist/colorpicker.js +13 -0
  7. package/dist/{colz-746223ab.js → colz-CRDozfZA.js} +1 -5
  8. package/dist/components/button/index.d.ts +38 -1
  9. package/dist/components/checkbox/index.d.ts +27 -0
  10. package/dist/components/colorpicker/index.d.ts +122 -0
  11. package/dist/components/content/index.d.ts +15 -0
  12. package/dist/components/input/index.d.ts +208 -1
  13. package/dist/components/message/index.d.ts +2 -0
  14. package/dist/components/option/index.d.ts +2 -1
  15. package/dist/components/player/index.d.ts +207 -493
  16. package/dist/components/popover/index.d.ts +39 -0
  17. package/dist/components/preview/docx.d.ts +1 -1
  18. package/dist/components/preview/index.d.ts +2 -0
  19. package/dist/components/preview/pptx/process_pptx.d.ts +1 -1
  20. package/dist/components/progress/index.d.ts +11 -5
  21. package/dist/components/radar/index.d.ts +1 -1
  22. package/dist/components/scratch/index.d.ts +23 -0
  23. package/dist/components/select/index.d.ts +18 -6
  24. package/dist/components/tab/index.d.ts +5 -0
  25. package/dist/components/tabpane/index.d.ts +5 -0
  26. package/dist/content.js +6 -0
  27. package/dist/docx-ajDUtnbM.js +3665 -0
  28. package/dist/global-DOfcrQ2N.js +4 -0
  29. package/dist/icon.js +6 -0
  30. package/dist/iconShadowless.js +6 -0
  31. package/dist/image.js +4 -0
  32. package/dist/index-0fvHQjmN.js +298 -0
  33. package/dist/{index-f6d6982d.js → index-BLepXisd.js} +101 -84
  34. package/dist/{index-b2be6bef.js → index-BOoNI-Al.js} +904 -1078
  35. package/dist/index-BPBRPxND.js +195 -0
  36. package/dist/{index-b90299ca.js → index-BpOERe9M.js} +1 -1
  37. package/dist/index-Bv6Z6rIe.js +498 -0
  38. package/dist/index-ByJ7zZdQ.js +65641 -0
  39. package/dist/{index-5975bbc0.js → index-C1x9Popy.js} +1 -1
  40. package/dist/index-CCNK5H8T.js +103 -0
  41. package/dist/{index-a1a53af6.js → index-CD09p_mF.js} +7 -31
  42. package/dist/index-CFnsLnrb.js +496 -0
  43. package/dist/{index-a43b144f.js → index-CJZp9lE4.js} +29 -50
  44. package/dist/{index-57492b9b.js → index-CSnBqUsQ.js} +48 -1
  45. package/dist/index-CWWI8SHO.js +206 -0
  46. package/dist/{index-7b8840f9.js → index-CZlEoE62.js} +220 -1010
  47. package/dist/index-CbyMC6Yz.js +59 -0
  48. package/dist/index-CiBVH-oH.js +258 -0
  49. package/dist/{index-0e7229ea.js → index-DUMmFdJ7.js} +9 -21
  50. package/dist/{index-aea75a9f.js → index-Du-Biu-I.js} +1 -1
  51. package/dist/index-EnzWG8R0.js +521 -0
  52. package/dist/index-F2RO3OU4.js +501 -0
  53. package/dist/{index-7f513a14.js → index-GavQwMDL.js} +11 -29
  54. package/dist/{index-48653b79.js → index-suip9eAw.js} +2 -2
  55. package/dist/index.d.ts +18 -14
  56. package/dist/index.js +23 -19
  57. package/dist/info-circle-fill-CFeVMdci.js +4 -0
  58. package/dist/input.js +6 -0
  59. package/dist/inputShadowless.js +6 -0
  60. package/dist/jszip.min-Ca6PjkYs.js +2674 -0
  61. package/dist/message.js +5 -0
  62. package/dist/modal.js +4 -0
  63. package/dist/{components/option/index.js → option.js} +3 -6
  64. package/dist/{pdf-bdb7818a.js → pdf-B2a6ll8f.js} +1 -1
  65. package/dist/player.js +8 -0
  66. package/dist/popover.js +6 -0
  67. package/dist/preview.js +7 -0
  68. package/dist/progress.js +7 -0
  69. package/dist/radar.js +6 -0
  70. package/dist/select.js +10 -0
  71. package/dist/selectShadowless.js +10 -0
  72. package/dist/{umd/components/image → shadowless/icon}/index.d.ts +1 -0
  73. package/dist/shadowless/input/index.d.ts +210 -0
  74. package/dist/{umd/components → shadowless}/select/index.d.ts +19 -11
  75. package/dist/shadowless/shadowless/index.js +14 -0
  76. package/dist/shadowless.d.ts +3 -0
  77. package/dist/skeleton.js +4 -0
  78. package/dist/sprite-CH2zLtZy.js +141 -0
  79. package/dist/style.css +1 -1
  80. package/dist/tab.js +6 -0
  81. package/dist/tabpane.js +4 -0
  82. package/dist/tsconfig.json +29 -0
  83. package/dist/umd/index.umd.cjs +21 -32
  84. package/dist/umd/shadowless/shadowless.umd.cjs +1 -0
  85. package/dist/umd/shadowless/style.css +1 -0
  86. package/dist/umd/style.css +1 -1
  87. package/dist/utils/color.d.ts +52 -0
  88. package/dist/utils/index.d.ts +9 -1
  89. package/dist/utils-BMBEcoPj.js +356 -0
  90. package/dist/vite.config.d.ts +1 -0
  91. package/package.json +61 -39
  92. package/readme.md +14 -14
  93. package/typings.d.ts +101 -0
  94. package/dist/components/button/index.js +0 -7
  95. package/dist/components/icon/index.js +0 -6
  96. package/dist/components/image/index.js +0 -4
  97. package/dist/components/input/index.js +0 -5
  98. package/dist/components/message/index.js +0 -4
  99. package/dist/components/modal/index.js +0 -4
  100. package/dist/components/player/index.js +0 -11
  101. package/dist/components/preview/index.js +0 -8
  102. package/dist/components/progress/index.js +0 -8
  103. package/dist/components/radar/index.js +0 -7
  104. package/dist/components/select/index.js +0 -11
  105. package/dist/components/skeleton/index.js +0 -4
  106. package/dist/components/tab/index.js +0 -7
  107. package/dist/components/tabpane/index.js +0 -4
  108. package/dist/docx-c5d02d8c.js +0 -21
  109. package/dist/index-183517e7.js +0 -265
  110. package/dist/index-4d873a42.js +0 -195
  111. package/dist/index-a216f328.js +0 -662
  112. package/dist/index-d2d69b06.js +0 -225
  113. package/dist/index-ecaed5cc.js +0 -439
  114. package/dist/info-circle-fill-90ec9aa9.js +0 -14
  115. package/dist/umd/build/config.d.ts +0 -3
  116. package/dist/umd/build/config.umd.d.ts +0 -2
  117. package/dist/umd/components/button/index.d.ts +0 -2
  118. package/dist/umd/components/form/index.d.ts +0 -2
  119. package/dist/umd/components/icon/index.d.ts +0 -2
  120. package/dist/umd/components/input/index.d.ts +0 -2
  121. package/dist/umd/components/message/index.d.ts +0 -14
  122. package/dist/umd/components/modal/index.d.ts +0 -2
  123. package/dist/umd/components/option/index.d.ts +0 -2
  124. package/dist/umd/components/player/index.d.ts +0 -524
  125. package/dist/umd/components/preview/colz.d.ts +0 -72
  126. package/dist/umd/components/preview/docx.d.ts +0 -8
  127. package/dist/umd/components/preview/excel/excel.d.ts +0 -2
  128. package/dist/umd/components/preview/excel/index.d.ts +0 -1
  129. package/dist/umd/components/preview/excel/media.d.ts +0 -37
  130. package/dist/umd/components/preview/index.d.ts +0 -6
  131. package/dist/umd/components/preview/pdf.d.ts +0 -1
  132. package/dist/umd/components/preview/pptx/index.d.ts +0 -16
  133. package/dist/umd/components/preview/pptx/process_pptx.d.ts +0 -23
  134. package/dist/umd/components/preview/pptx/t_xml.d.ts +0 -1
  135. package/dist/umd/components/preview/pptx/worker.d.ts +0 -1
  136. package/dist/umd/components/progress/index.d.ts +0 -36
  137. package/dist/umd/components/radar/index.d.ts +0 -2
  138. package/dist/umd/components/skeleton/index.d.ts +0 -2
  139. package/dist/umd/components/tab/index.d.ts +0 -403
  140. package/dist/umd/components/tabpane/index.d.ts +0 -347
  141. package/dist/umd/index.d.ts +0 -14
  142. package/dist/umd/playwright.config.d.ts +0 -9
  143. package/dist/umd/plugins/auto-import-file.d.ts +0 -0
  144. package/dist/umd/plugins/load-style.d.ts +0 -6
  145. package/dist/umd/plugins/load-svg.d.ts +0 -9
  146. package/dist/umd/tests/button.spec.d.ts +0 -1
  147. package/dist/umd/utils/image.d.ts +0 -32
  148. package/dist/umd/utils/index.d.ts +0 -64
  149. package/dist/umd/utils/math.d.ts +0 -26
  150. package/dist/umd/utils/tween.d.ts +0 -21
  151. package/dist/umd/vite.config.d.ts +0 -6
  152. package/dist/vendor-f71e6f68.js +0 -92126
  153. /package/dist/{add-user-b2bed3e7.js → add-user-BN1JlY7e.js} +0 -0
  154. /package/dist/{book-b11a68eb.js → book-nTEFXU2x.js} +0 -0
  155. /package/dist/{umd/build/config.es.d.ts → build/config.sha.d.ts} +0 -0
  156. /package/dist/{check-circle-fill-dc284144.js → check-circle-fill-B_pd8ZSs.js} +0 -0
  157. /package/dist/{check-circle-74bd09c3.js → check-circle-szyAJiap.js} +0 -0
  158. /package/dist/{close-20925345.js → close-CFnkhudp.js} +0 -0
  159. /package/dist/{close-circle-720c18be.js → close-circle-CwmuN2C6.js} +0 -0
  160. /package/dist/{close-circle-fill-238a66b1.js → close-circle-fill-jSqPPw9i.js} +0 -0
  161. /package/dist/{eye-5e742329.js → eye-D_mEt17f.js} +0 -0
  162. /package/dist/{eye-close-3874f1ae.js → eye-close-BVr3NJtg.js} +0 -0
  163. /package/dist/{home-c4a05e8b.js → home-BUQ4USMk.js} +0 -0
  164. /package/dist/{index-8e1e2573.js → index-CQTJoWhb.js} +0 -0
  165. /package/dist/{info-circle-5826decc.js → info-circle-COnL5bTJ.js} +0 -0
  166. /package/dist/{loading-09ca52df.js → loading-Dcc5RApI.js} +0 -0
  167. /package/dist/{lock-1d2487c9.js → lock-Cr7BnmWN.js} +0 -0
  168. /package/dist/{message-b2bfdea7.js → message-D36_Zo2l.js} +0 -0
  169. /package/dist/{power-off-6ade5a91.js → power-off-lQRbiBak.js} +0 -0
  170. /package/dist/{preview-b291aea8.js → preview-CJbz9GjO.js} +0 -0
  171. /package/dist/{setting-1e5ccb6d.js → setting-DemlgzVC.js} +0 -0
  172. /package/dist/{team-ca6a12e1.js → team-tl4NJXPC.js} +0 -0
  173. /package/dist/{unlock-f56086fd.js → unlock-CeU74z9n.js} +0 -0
  174. /package/dist/{user-5c01e665.js → user-B-eVXwuk.js} +0 -0
  175. /package/dist/{warning-circle-035e025c.js → warning-circle-DDUgEDIv.js} +0 -0
  176. /package/dist/{warning-circle-fill-d17c37c9.js → warning-circle-fill-lODUKz0i.js} +0 -0
@@ -1,5 +1,24 @@
1
- import { SyncHook } from 'ranuts';
2
- import type { Progress } from '../progress';
1
+ /// <reference types="node" />
2
+ import '@/assets/js/hls.js';
3
+ import type { Progress } from '@/components/progress';
4
+ import '@/components/select';
5
+ import './index.less';
6
+ type Callback = (...args: unknown[]) => unknown;
7
+ type EventName = string | symbol;
8
+ type EventItem = {
9
+ name?: string | symbol;
10
+ callback: Callback;
11
+ initialCallback?: Callback;
12
+ };
13
+ export declare class SHook {
14
+ private _events;
15
+ constructor();
16
+ tap: (eventName: EventName, eventItem: EventItem | Callback) => void;
17
+ call: (eventName: EventName, ...args: Array<unknown>) => void;
18
+ callSync: (eventName: EventName, ...args: Array<unknown>) => Promise<void>;
19
+ once: (eventName: EventName, eventItem: EventItem | Callback) => void;
20
+ off: (eventName: EventName, eventItem: EventItem | Callback) => void;
21
+ }
3
22
  export interface HlsPlayer {
4
23
  startLoad(): () => void;
5
24
  off: (s: string, f: Function) => void;
@@ -18,7 +37,7 @@ export interface Level {
18
37
  videoCodec: string;
19
38
  }
20
39
  export interface Context {
21
- action: SyncHook;
40
+ action: SHook;
22
41
  currentState: string;
23
42
  duration: number;
24
43
  currentTime: number;
@@ -30,495 +49,190 @@ export interface Context {
30
49
  levelMap: Map<string, string>;
31
50
  clarity: string;
32
51
  }
33
- declare const _default: {
34
- new (): {
35
- ctx: Context;
36
- _player: HTMLDivElement;
37
- _container: HTMLDivElement;
38
- _slot: HTMLSlotElement;
39
- _playerController: HTMLDivElement;
40
- _playerBtn: HTMLDivElement;
41
- _progress: HTMLDivElement;
42
- _progressDot: HTMLDivElement;
43
- _progressWrap: HTMLDivElement;
44
- _progressWrapValue: HTMLDivElement;
45
- requestAnimationFrameId?: number | undefined;
46
- moveProgress: {
47
- percentage: number;
48
- mouseDown: boolean;
49
- };
50
- _playerControllerBottom: HTMLDivElement;
51
- _playerControllerBottomRight: HTMLDivElement;
52
- _playerControllerBottomLeft: HTMLDivElement;
53
- _playerControllerBottomPlayBtn: HTMLDivElement;
54
- _playerControllerBottomTimeCurrent: HTMLDivElement;
55
- _playerControllerBottomTimeDuration: HTMLDivElement;
56
- _playerControllerBottomTimeDivide: HTMLDivElement;
57
- _playControllerBottomClarity: HTMLElement;
58
- _playControllerBottomSpeed: HTMLDivElement;
59
- _playControllerBottomSpeedIcon: HTMLDivElement;
60
- _playControllerBottomVolumeProgress: Progress;
61
- _playControllerBottomRightFullScreen: HTMLDivElement;
62
- _playControllerBottomVolume: HTMLDivElement;
63
- _playControllerBottomSpeedPopover: HTMLElement;
64
- controllerBarTimeId?: NodeJS.Timeout | undefined;
65
- _playerTip: HTMLDivElement;
66
- _playerTipTime: HTMLDivElement;
67
- _playerTipText: HTMLDivElement;
68
- _volume?: number | undefined;
69
- _video?: HTMLVideoElement | undefined;
70
- _hls?: HlsPlayer | undefined;
71
- src: string;
72
- volume: string;
73
- currentTime: string;
74
- playbackRate: string;
75
- changeClarityToSetVideo: () => void;
76
- changeClarity: (e: Event) => void;
77
- createClaritySelect: () => void;
78
- manifestLoaded: (type: string, data: {
79
- levels: Level[];
80
- url: string;
81
- }) => void;
82
- /**
83
- * @description: 初始化 video 和更新 video 方法
84
- * @return {*}
85
- */
86
- updatePlayer: () => void;
87
- change: (name: string, value: unknown) => void;
88
- onCanplay: (e: Event) => void;
89
- onCanplaythrough: (e: Event) => void;
90
- onComplete: (e: Event) => void;
91
- onDurationchange: (e: Event) => void;
92
- onEmptied: (e: Event) => void;
93
- onEnded: (e: Event) => void;
94
- onError: (e: Event) => void;
95
- onLoadedmetadata: (e: Event) => void;
96
- onLoadstart: (e: Event) => void;
97
- onProgress: (e: Event) => void;
98
- onRatechange: (e: Event) => void;
99
- onSeeked: (e: Event) => void;
100
- onSeeking: (e: Event) => void;
101
- onStalled: (e: Event) => void;
102
- onSuspend: (e: Event) => void;
103
- onLoadeddata: (e: Event) => void;
104
- onTimeupdate: (e: Event) => void;
105
- onVolumechange: (e: Event) => void;
106
- onWaiting: (e: Event) => void;
107
- onPlay: (e: Event) => void;
108
- onPlaying: (e: Event) => void;
109
- onPause: (e: Event) => void;
110
- clearListenerEvent: () => void;
111
- /**
112
- * @description: 用户行为和 video 之间的交互
113
- * @return {*}
114
- */
115
- listenEvent: () => void;
116
- showControllerBar: (e?: MouseEvent | undefined) => void;
117
- /**
118
- * @description: 进度条点击事件
119
- * @param {MouseEvent} e
120
- * @return {*}
121
- */
122
- progressClick: (e: MouseEvent) => void;
123
- /**
124
- * @description: 进度条鼠标按下事件
125
- * @param {MouseEvent} e
126
- * @return {*}
127
- */
128
- progressDotMouseDown: (e: MouseEvent) => void;
129
- /**
130
- * @description: 进度条鼠标移动事件
131
- * @param {MouseEvent} e
132
- * @return {*}
133
- */
134
- progressDotMouseMove: (e: MouseEvent) => void;
135
- /**
136
- * @description: 进度条鼠标松开事件
137
- * @param {MouseEvent} e
138
- * @return {*}
139
- */
140
- progressDotMouseUp: () => void;
141
- /**
142
- * @description: 更新页面样式
143
- * @param {Function} fn
144
- * @return {*}
145
- */
146
- requestAnimationFrame: (fn: Function) => void;
147
- /**
148
- * @description: 取消页面动画
149
- * @param {Function} fn
150
- * @return {*}
151
- */
152
- cancelAnimationFrame: () => void;
153
- /**
154
- * @description: 更新进度条
155
- * @param {*} void
156
- * @return {*}
157
- */
158
- updateCurrentProgress: () => void;
159
- changeAttribute: (k: string, o: string, n: string, attribute: string, callback: Function) => void;
160
- /**
161
- * @description: 点击整个视频时,触发的事件
162
- * @param {*} void
163
- * @return {*}
164
- */
165
- dispatchClickPlayerContainerAction: (e: Event) => void;
166
- /**
167
- * @description: 空格事件
168
- * @param {KeyboardEvent} e
169
- * @return {*}
170
- */
171
- SpaceKeyDown: (e: KeyboardEvent) => void;
172
- /**
173
- * @description: 点击player-btn,触发的事件
174
- * @param {*} void
175
- * @return {*}
176
- */
177
- dispatchClickPlayerBtnAction: (e: Event) => void;
178
- changeVolumeProgress: (e: Event) => void;
179
- openFullScreen: () => void;
180
- changeSpeed: (e: Event) => void;
181
- progressMouseEnter: (e: MouseEvent) => void;
182
- progressMouseLeave: (e: MouseEvent) => void;
183
- progressMouseMove: (e: MouseEvent) => void;
184
- changePlayerVolume: () => void;
185
- resize: () => void;
186
- fullScreenChange: () => void;
187
- getPlaybackRate: () => number;
188
- setPlaybackRate: (n: number) => number;
189
- setVolume: (n: number) => number;
190
- getVolume: () => number;
191
- setCurrentTime: (n: number) => number;
192
- getCurrentTime: () => number;
193
- getTotalTime: () => number;
194
- play: (n?: number | undefined) => void;
195
- pause: () => void;
196
- connectedCallback(): void;
197
- disconnectCallback(): void;
198
- attributeChangedCallback(k: string, o: string, n: string): void;
199
- accessKey: string;
200
- readonly accessKeyLabel: string;
201
- autocapitalize: string;
202
- dir: string;
203
- draggable: boolean;
204
- hidden: boolean;
205
- inert: boolean;
206
- innerText: string;
207
- lang: string;
208
- readonly offsetHeight: number;
209
- readonly offsetLeft: number;
210
- readonly offsetParent: Element | null;
211
- readonly offsetTop: number;
212
- readonly offsetWidth: number;
213
- outerText: string;
214
- popover: string | null;
215
- spellcheck: boolean;
216
- title: string;
217
- translate: boolean;
218
- attachInternals(): ElementInternals;
219
- click(): void;
220
- hidePopover(): void;
221
- showPopover(): void;
222
- togglePopover(force?: boolean | undefined): void;
223
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
224
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
225
- removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
226
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
227
- readonly attributes: NamedNodeMap;
228
- readonly classList: DOMTokenList;
229
- className: string;
230
- readonly clientHeight: number;
231
- readonly clientLeft: number;
232
- readonly clientTop: number;
233
- readonly clientWidth: number;
234
- id: string;
235
- readonly localName: string;
236
- readonly namespaceURI: string | null;
237
- onfullscreenchange: ((this: Element, ev: Event) => any) | null;
238
- onfullscreenerror: ((this: Element, ev: Event) => any) | null;
239
- outerHTML: string;
240
- readonly ownerDocument: Document;
241
- readonly part: DOMTokenList;
242
- readonly prefix: string | null;
243
- readonly scrollHeight: number;
244
- scrollLeft: number;
245
- scrollTop: number;
246
- readonly scrollWidth: number;
247
- readonly shadowRoot: ShadowRoot | null;
248
- slot: string;
249
- readonly tagName: string;
250
- attachShadow(init: ShadowRootInit): ShadowRoot;
251
- checkVisibility(options?: CheckVisibilityOptions | undefined): boolean;
252
- closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
253
- closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
254
- closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4] | null;
255
- closest<E extends Element = Element>(selectors: string): E | null;
256
- computedStyleMap(): StylePropertyMapReadOnly;
257
- getAttribute(qualifiedName: string): string | null;
258
- getAttributeNS(namespace: string | null, localName: string): string | null;
259
- getAttributeNames(): string[];
260
- getAttributeNode(qualifiedName: string): Attr | null;
261
- getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
262
- getBoundingClientRect(): DOMRect;
263
- getClientRects(): DOMRectList;
264
- getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
265
- getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
266
- getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
267
- getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
268
- getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
269
- getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
270
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
271
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
272
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
273
- getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
274
- hasAttribute(qualifiedName: string): boolean;
275
- hasAttributeNS(namespace: string | null, localName: string): boolean;
276
- hasAttributes(): boolean;
277
- hasPointerCapture(pointerId: number): boolean;
278
- insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
279
- insertAdjacentHTML(position: InsertPosition, text: string): void;
280
- insertAdjacentText(where: InsertPosition, data: string): void;
281
- matches(selectors: string): boolean;
282
- releasePointerCapture(pointerId: number): void;
283
- removeAttribute(qualifiedName: string): void;
284
- removeAttributeNS(namespace: string | null, localName: string): void;
285
- removeAttributeNode(attr: Attr): Attr;
286
- requestFullscreen(options?: FullscreenOptions | undefined): Promise<void>;
287
- requestPointerLock(): void;
288
- scroll(options?: ScrollToOptions | undefined): void;
289
- scroll(x: number, y: number): void;
290
- scrollBy(options?: ScrollToOptions | undefined): void;
291
- scrollBy(x: number, y: number): void;
292
- scrollIntoView(arg?: boolean | ScrollIntoViewOptions | undefined): void;
293
- scrollTo(options?: ScrollToOptions | undefined): void;
294
- scrollTo(x: number, y: number): void;
295
- setAttribute(qualifiedName: string, value: string): void;
296
- setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
297
- setAttributeNode(attr: Attr): Attr | null;
298
- setAttributeNodeNS(attr: Attr): Attr | null;
299
- setPointerCapture(pointerId: number): void;
300
- toggleAttribute(qualifiedName: string, force?: boolean | undefined): boolean;
301
- webkitMatchesSelector(selectors: string): boolean;
302
- readonly baseURI: string;
303
- readonly childNodes: NodeListOf<ChildNode>;
304
- readonly firstChild: ChildNode | null;
305
- readonly isConnected: boolean;
306
- readonly lastChild: ChildNode | null;
307
- readonly nextSibling: ChildNode | null;
308
- readonly nodeName: string;
309
- readonly nodeType: number;
310
- nodeValue: string | null;
311
- readonly parentElement: HTMLElement | null;
312
- readonly parentNode: ParentNode | null;
313
- readonly previousSibling: ChildNode | null;
314
- textContent: string | null;
315
- appendChild<T extends Node>(node: T): T;
316
- cloneNode(deep?: boolean | undefined): Node;
317
- compareDocumentPosition(other: Node): number;
318
- contains(other: Node | null): boolean;
319
- getRootNode(options?: GetRootNodeOptions | undefined): Node;
320
- hasChildNodes(): boolean;
321
- insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
322
- isDefaultNamespace(namespace: string | null): boolean;
323
- isEqualNode(otherNode: Node | null): boolean;
324
- isSameNode(otherNode: Node | null): boolean;
325
- lookupNamespaceURI(prefix: string | null): string | null;
326
- lookupPrefix(namespace: string | null): string | null;
327
- normalize(): void;
328
- removeChild<T_2 extends Node>(child: T_2): T_2;
329
- replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
330
- readonly ELEMENT_NODE: 1;
331
- readonly ATTRIBUTE_NODE: 2;
332
- readonly TEXT_NODE: 3;
333
- readonly CDATA_SECTION_NODE: 4;
334
- readonly ENTITY_REFERENCE_NODE: 5;
335
- readonly ENTITY_NODE: 6;
336
- readonly PROCESSING_INSTRUCTION_NODE: 7;
337
- readonly COMMENT_NODE: 8;
338
- readonly DOCUMENT_NODE: 9;
339
- readonly DOCUMENT_TYPE_NODE: 10;
340
- readonly DOCUMENT_FRAGMENT_NODE: 11;
341
- readonly NOTATION_NODE: 12;
342
- readonly DOCUMENT_POSITION_DISCONNECTED: 1;
343
- readonly DOCUMENT_POSITION_PRECEDING: 2;
344
- readonly DOCUMENT_POSITION_FOLLOWING: 4;
345
- readonly DOCUMENT_POSITION_CONTAINS: 8;
346
- readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
347
- readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
348
- dispatchEvent(event: Event): boolean;
349
- ariaAtomic: string | null;
350
- ariaAutoComplete: string | null;
351
- ariaBusy: string | null;
352
- ariaChecked: string | null;
353
- ariaColCount: string | null;
354
- ariaColIndex: string | null;
355
- ariaColSpan: string | null;
356
- ariaCurrent: string | null;
357
- ariaDisabled: string | null;
358
- ariaExpanded: string | null;
359
- ariaHasPopup: string | null;
360
- ariaHidden: string | null;
361
- ariaInvalid: string | null;
362
- ariaKeyShortcuts: string | null;
363
- ariaLabel: string | null;
364
- ariaLevel: string | null;
365
- ariaLive: string | null;
366
- ariaModal: string | null;
367
- ariaMultiLine: string | null;
368
- ariaMultiSelectable: string | null;
369
- ariaOrientation: string | null;
370
- ariaPlaceholder: string | null;
371
- ariaPosInSet: string | null;
372
- ariaPressed: string | null;
373
- ariaReadOnly: string | null;
374
- ariaRequired: string | null;
375
- ariaRoleDescription: string | null;
376
- ariaRowCount: string | null;
377
- ariaRowIndex: string | null;
378
- ariaRowSpan: string | null;
379
- ariaSelected: string | null;
380
- ariaSetSize: string | null;
381
- ariaSort: string | null;
382
- ariaValueMax: string | null;
383
- ariaValueMin: string | null;
384
- ariaValueNow: string | null;
385
- ariaValueText: string | null;
386
- role: string | null;
387
- animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
388
- getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
389
- after(...nodes: (string | Node)[]): void;
390
- before(...nodes: (string | Node)[]): void;
391
- remove(): void;
392
- replaceWith(...nodes: (string | Node)[]): void;
393
- innerHTML: string;
394
- readonly nextElementSibling: Element | null;
395
- readonly previousElementSibling: Element | null;
396
- readonly childElementCount: number;
397
- readonly children: HTMLCollection;
398
- readonly firstElementChild: Element | null;
399
- readonly lastElementChild: Element | null;
400
- append(...nodes: (string | Node)[]): void;
401
- prepend(...nodes: (string | Node)[]): void;
402
- querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9] | null;
403
- querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10] | null;
404
- querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11] | null;
405
- querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12] | null;
406
- querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
407
- querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
408
- querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
409
- querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
410
- querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
411
- querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
412
- replaceChildren(...nodes: (string | Node)[]): void;
413
- readonly assignedSlot: HTMLSlotElement | null;
414
- readonly attributeStyleMap: StylePropertyMap;
415
- readonly style: CSSStyleDeclaration;
416
- contentEditable: string;
417
- enterKeyHint: string;
418
- inputMode: string;
419
- readonly isContentEditable: boolean;
420
- onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
421
- onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
422
- onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
423
- onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
424
- onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
425
- onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
426
- onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
427
- onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
428
- oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
429
- oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
430
- oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
431
- onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
432
- onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
433
- onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
434
- oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
435
- oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
436
- oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
437
- oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
438
- ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
439
- ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
440
- ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
441
- ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
442
- ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
443
- ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
444
- ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
445
- ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
446
- ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
447
- onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
448
- onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
449
- onerror: OnErrorEventHandler;
450
- onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
451
- onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
452
- ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
453
- oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
454
- oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
455
- onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
456
- onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
457
- onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
458
- onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
459
- onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
460
- onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
461
- onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
462
- onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
463
- onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
464
- onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
465
- onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
466
- onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
467
- onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
468
- onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
469
- onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
470
- onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
471
- onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
472
- onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
473
- onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
474
- onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
475
- onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
476
- onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
477
- onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
478
- onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
479
- onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
480
- onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
481
- onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
482
- onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
483
- onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
484
- onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
485
- onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
486
- onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
487
- onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
488
- onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
489
- onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
490
- onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
491
- onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
492
- onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
493
- onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
494
- onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
495
- onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
496
- onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
497
- onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
498
- ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
499
- ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
500
- ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
501
- ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
502
- ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
503
- ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
504
- ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
505
- ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
506
- ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
507
- ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
508
- onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
509
- onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
510
- onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
511
- onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
512
- onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
513
- onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
514
- onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
515
- autofocus: boolean;
516
- readonly dataset: DOMStringMap;
517
- nonce?: string | undefined;
518
- tabIndex: number;
519
- blur(): void;
520
- focus(options?: FocusOptions | undefined): void;
52
+ declare const RanPlayer_base: {
53
+ new (): HTMLElement;
54
+ prototype: HTMLElement;
55
+ };
56
+ export declare class RanPlayer extends RanPlayer_base {
57
+ ctx: Context;
58
+ _player: HTMLDivElement;
59
+ _container: HTMLDivElement;
60
+ _slot: HTMLSlotElement;
61
+ _playerController: HTMLDivElement;
62
+ _playerBtn: HTMLDivElement;
63
+ _progress: HTMLDivElement;
64
+ _progressDot: HTMLDivElement;
65
+ _progressWrap: HTMLDivElement;
66
+ _progressWrapValue: HTMLDivElement;
67
+ requestAnimationFrameId?: number;
68
+ moveProgress: {
69
+ percentage: number;
70
+ mouseDown: boolean;
521
71
  };
522
- readonly observedAttributes: string[];
523
- } | undefined;
72
+ _playerControllerBottom: HTMLDivElement;
73
+ _playerControllerBottomRight: HTMLDivElement;
74
+ _playerControllerBottomLeft: HTMLDivElement;
75
+ _playerControllerBottomPlayBtn: HTMLDivElement;
76
+ _playerControllerBottomTimeCurrent: HTMLDivElement;
77
+ _playerControllerBottomTimeDuration: HTMLDivElement;
78
+ _playerControllerBottomTimeDivide: HTMLDivElement;
79
+ _playControllerBottomClarity: HTMLElement;
80
+ _playControllerBottomSpeed: HTMLDivElement;
81
+ _playControllerBottomSpeedIcon: HTMLDivElement;
82
+ _playControllerBottomVolumeProgress: Progress;
83
+ _playControllerBottomRightFullScreen: HTMLDivElement;
84
+ _playControllerBottomVolume: HTMLDivElement;
85
+ _playControllerBottomSpeedPopover: HTMLElement;
86
+ controllerBarTimeId?: NodeJS.Timeout;
87
+ _playerTip: HTMLDivElement;
88
+ _playerTipTime: HTMLDivElement;
89
+ _playerTipText: HTMLDivElement;
90
+ _volume?: number;
91
+ _video?: HTMLVideoElement;
92
+ _hls?: HlsPlayer;
93
+ static get observedAttributes(): string[];
94
+ /**
95
+ * @description: 初始化 view 和 video 的全局上下文
96
+ * @return {*}
97
+ */
98
+ constructor();
99
+ get src(): string;
100
+ set src(value: string);
101
+ get debug(): string;
102
+ set debug(value: string);
103
+ get volume(): string;
104
+ set volume(value: string);
105
+ get currentTime(): string;
106
+ set currentTime(value: string);
107
+ get playbackRate(): string;
108
+ set playbackRate(value: string);
109
+ changeClarityToSetVideo: () => void;
110
+ changeClarity: (e: Event) => void;
111
+ createClaritySelect: () => void;
112
+ manifestLoaded: (type: string, data: {
113
+ levels: Level[];
114
+ url: string;
115
+ }) => void;
116
+ /**
117
+ * @description: 初始化 video 和更新 video 方法
118
+ * @return {*}
119
+ */
120
+ updatePlayer: () => void;
121
+ hlsError: (event: unknown, data: unknown) => void;
122
+ change: (name: string, value: unknown) => void;
123
+ onCanplay: (e: Event) => void;
124
+ onCanplaythrough: (e: Event) => void;
125
+ onComplete: (e: Event) => void;
126
+ onDurationchange: (e: Event) => void;
127
+ onEmptied: (e: Event) => void;
128
+ onEnded: (e: Event) => void;
129
+ onError: (e: Event) => void;
130
+ onLoadedmetadata: (e: Event) => void;
131
+ onLoadstart: (e: Event) => void;
132
+ onProgress: (e: Event) => void;
133
+ onRatechange: (e: Event) => void;
134
+ onSeeked: (e: Event) => void;
135
+ onSeeking: (e: Event) => void;
136
+ onStalled: (e: Event) => void;
137
+ onSuspend: (e: Event) => void;
138
+ onLoadeddata: (e: Event) => void;
139
+ onTimeupdate: (e: Event) => void;
140
+ onVolumechange: (e: Event) => void;
141
+ onWaiting: (e: Event) => void;
142
+ onPlay: (e: Event) => void;
143
+ onPlaying: (e: Event) => void;
144
+ onPause: (e: Event) => void;
145
+ clearListenerEvent: () => void;
146
+ /**
147
+ * @description: 用户行为和 video 之间的交互
148
+ * @return {*}
149
+ */
150
+ listenEvent: () => void;
151
+ showControllerBar: (e?: MouseEvent) => void;
152
+ /**
153
+ * @description: 进度条点击事件
154
+ * @param {MouseEvent} e
155
+ * @return {*}
156
+ */
157
+ progressClick: (e: MouseEvent) => void;
158
+ /**
159
+ * @description: 进度条鼠标按下事件
160
+ * @param {MouseEvent} e
161
+ * @return {*}
162
+ */
163
+ progressDotMouseDown: (e: MouseEvent) => void;
164
+ /**
165
+ * @description: 进度条鼠标移动事件
166
+ * @param {MouseEvent} e
167
+ * @return {*}
168
+ */
169
+ progressDotMouseMove: (e: MouseEvent) => void;
170
+ /**
171
+ * @description: 进度条鼠标松开事件
172
+ * @param {MouseEvent} e
173
+ * @return {*}
174
+ */
175
+ progressDotMouseUp: () => void;
176
+ /**
177
+ * @description: 更新页面样式
178
+ * @param {Function} fn
179
+ * @return {*}
180
+ */
181
+ requestAnimationFrame: (fn: Function) => void;
182
+ /**
183
+ * @description: 取消页面动画
184
+ * @param {Function} fn
185
+ * @return {*}
186
+ */
187
+ cancelAnimationFrame: () => void;
188
+ /**
189
+ * @description: 更新进度条
190
+ * @param {*} void
191
+ * @return {*}
192
+ */
193
+ updateCurrentProgress: () => void;
194
+ changeAttribute: (k: string, o: string, n: string, attribute: string, callback: Function) => void;
195
+ /**
196
+ * @description: 点击整个视频时,触发的事件
197
+ * @param {*} void
198
+ * @return {*}
199
+ */
200
+ dispatchClickPlayerContainerAction: (e: Event) => void;
201
+ /**
202
+ * @description: 空格事件
203
+ * @param {KeyboardEvent} e
204
+ * @return {*}
205
+ */
206
+ SpaceKeyDown: (e: KeyboardEvent) => void;
207
+ /**
208
+ * @description: 点击 player-btn,触发的事件
209
+ * @param {*} void
210
+ * @return {*}
211
+ */
212
+ dispatchClickPlayerBtnAction: (e: Event) => void;
213
+ changeVolumeProgress: (e: Event) => void;
214
+ customRequestFullscreen: (options?: FullscreenOptions) => Promise<void>;
215
+ customExitFullscreen: () => Promise<void>;
216
+ openFullScreen: () => void;
217
+ changeSpeed: (e: Event) => void;
218
+ progressMouseEnter: (e: MouseEvent) => void;
219
+ progressMouseLeave: (e: MouseEvent) => void;
220
+ progressMouseMove: (e: MouseEvent) => void;
221
+ changePlayerVolume: () => void;
222
+ resize: () => void;
223
+ fullScreenChange: () => void;
224
+ getPlaybackRate: () => number;
225
+ setPlaybackRate: (n: number) => number;
226
+ setVolume: (n: number) => number;
227
+ getVolume: () => number;
228
+ setCurrentTime: (n: number) => number;
229
+ getCurrentTime: () => number;
230
+ getTotalTime: () => number;
231
+ play: (n?: number) => void;
232
+ pause: () => void;
233
+ connectedCallback(): void;
234
+ disconnectCallback(): void;
235
+ attributeChangedCallback(k: string, o: string, n: string): void;
236
+ }
237
+ declare const _default: typeof RanPlayer | undefined;
524
238
  export default _default;