@dcloudio/uni-app-x 0.7.113 → 0.7.114

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 (34) hide show
  1. package/package.json +1 -1
  2. package/types/dom2-internal/UniCSSPropertyId.d.ts +356 -351
  3. package/types/dom2-internal/sharedData.d.ts +219 -0
  4. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/interface.d.ts +2 -3
  5. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/interface.d.ts +2 -3
  6. package/types/uni/uts-plugin-component/.temp/uni-camera/utssdk/interface.uts +0 -1155
  7. package/types/uni/uts-plugin-component/.temp/uni-camera.d.ts +0 -38
  8. package/types/uni/uts-plugin-component/.temp/uni-camera.ts +0 -52
  9. package/types/uni/uts-plugin-component/.temp/uni-canvas/utssdk/interface.uts +0 -976
  10. package/types/uni/uts-plugin-component/.temp/uni-canvas-dom2/utssdk/interface.uts +0 -976
  11. package/types/uni/uts-plugin-component/.temp/uni-editor.d.ts +0 -171
  12. package/types/uni/uts-plugin-component/.temp/uni-editor.ts +0 -237
  13. package/types/uni/uts-plugin-component/.temp/uni-form.d.ts +0 -2
  14. package/types/uni/uts-plugin-component/.temp/uni-form.ts +0 -1
  15. package/types/uni/uts-plugin-component/.temp/uni-input/utssdk/interface.uts +0 -0
  16. package/types/uni/uts-plugin-component/.temp/uni-map-tencent.d.ts +0 -56
  17. package/types/uni/uts-plugin-component/.temp/uni-map-tencent.ts +0 -88
  18. package/types/uni/uts-plugin-component/.temp/uni-match-media.d.ts +0 -2
  19. package/types/uni/uts-plugin-component/.temp/uni-match-media.ts +0 -2
  20. package/types/uni/uts-plugin-component/.temp/uni-navigator.d.ts +0 -2
  21. package/types/uni/uts-plugin-component/.temp/uni-navigator.ts +0 -1
  22. package/types/uni/uts-plugin-component/.temp/uni-page-container.d.ts +0 -0
  23. package/types/uni/uts-plugin-component/.temp/uni-page-container.ts +0 -2
  24. package/types/uni/uts-plugin-component/.temp/uni-progress.d.ts +0 -2
  25. package/types/uni/uts-plugin-component/.temp/uni-progress.ts +0 -1
  26. package/types/uni/uts-plugin-component/.temp/uni-rich-text.d.ts +0 -7
  27. package/types/uni/uts-plugin-component/.temp/uni-rich-text.ts +0 -12
  28. package/types/uni/uts-plugin-component/.temp/uni-textarea/utssdk/interface.uts +0 -0
  29. package/types/uni/uts-plugin-component/.temp/uni-video/utssdk/interface.uts +0 -936
  30. package/types/uni/uts-plugin-component/.temp/uni-video.d.ts +0 -134
  31. package/types/uni/uts-plugin-component/.temp/uni-video.ts +0 -180
  32. package/types/uni/uts-plugin-component/.temp/uni-web-view/utssdk/interface.uts +0 -452
  33. package/types/uni/uts-plugin-component/.temp/uni-web-view.d.ts +0 -51
  34. package/types/uni/uts-plugin-component/.temp/uni-web-view.ts +0 -86
@@ -1,936 +0,0 @@
1
- export type CreateVideoContext = (videoId: string.VideoIdString, component?: ComponentPublicInstance | null) => VideoContext | null;
2
-
3
- export type Danmu = {
4
- /**
5
- * 弹幕文字
6
- */
7
- text?: string | null,
8
- /**
9
- * 弹幕颜色
10
- */
11
- color?: string | null,
12
- /**
13
- * 显示时刻
14
- */
15
- time?: number | null
16
- };
17
-
18
- export type RequestFullScreenOptions = {
19
- /**
20
- * direction
21
- * @uniPlatform {
22
- * "app": {
23
- * "android": {
24
- * "osVer": "4.4",
25
- * "uniVer": "√",
26
- * "unixVer": "3.9.0"
27
- * },
28
- * "ios": {
29
- * "osVer": "12.0",
30
- * "uniVer": "√",
31
- * "unixVer": "4.11"
32
- * }
33
- * },
34
- * "mp": {
35
- * "weixin": {
36
- * "hostVer": "√",
37
- * "uniVer": "√",
38
- * "unixVer": "4.41"
39
- * },
40
- * "alipay": {
41
- * "hostVer": "√",
42
- * "uniVer": "√",
43
- * "unixVer": "x"
44
- * },
45
- * "baidu": {
46
- * "hostVer": "√",
47
- * "uniVer": "√",
48
- * "unixVer": "x"
49
- * },
50
- * "toutiao": {
51
- * "hostVer": "√",
52
- * "uniVer": "√",
53
- * "unixVer": "x"
54
- * },
55
- * "lark": {
56
- * "hostVer": "√",
57
- * "uniVer": "√",
58
- * "unixVer": "x"
59
- * },
60
- * "qq": {
61
- * "hostVer": "√",
62
- * "uniVer": "√",
63
- * "unixVer": "x"
64
- * },
65
- * "kuaishou": {
66
- * "hostVer": "√",
67
- * "uniVer": "√",
68
- * "unixVer": "x"
69
- * },
70
- * "jd": {
71
- * "hostVer": "√",
72
- * "uniVer": "√",
73
- * "unixVer": "x"
74
- * }
75
- * },
76
- * "web": {
77
- * "uniVer": "x",
78
- * "unixVer": "x"
79
- * }
80
- * }
81
- */
82
- direction?:
83
- /**
84
- * 正常竖向
85
- */
86
- 0 |
87
- /**
88
- * 屏幕逆时针90度
89
- */
90
- 90 |
91
- /**
92
- * 屏幕顺时针90度
93
- */
94
- -90 | null
95
- };
96
-
97
- export interface VideoContext {
98
- /**
99
- * @description 播放
100
- * @uniPlatform {
101
- * "app": {
102
- * "android": {
103
- * "osVer": "4.4",
104
- * "uniVer": "√",
105
- * "unixVer": "3.9.0"
106
- * },
107
- * "ios": {
108
- * "osVer": "12.0",
109
- * "uniVer": "√",
110
- * "unixVer": "4.11"
111
- * },
112
- * "harmony": {
113
- * "osVer": "3.0",
114
- * "uniVer": "4.23",
115
- * "unixVer": "4.61",
116
- * "unixvVer": "5.0"
117
- * }
118
- * },
119
- * "mp": {
120
- * "weixin": {
121
- * "hostVer": "√",
122
- * "uniVer": "√",
123
- * "unixVer": "4.41"
124
- * },
125
- * "alipay": {
126
- * "hostVer": "√",
127
- * "uniVer": "√",
128
- * "unixVer": "x"
129
- * },
130
- * "baidu": {
131
- * "hostVer": "√",
132
- * "uniVer": "√",
133
- * "unixVer": "x"
134
- * },
135
- * "toutiao": {
136
- * "hostVer": "√",
137
- * "uniVer": "√",
138
- * "unixVer": "x"
139
- * },
140
- * "lark": {
141
- * "hostVer": "√",
142
- * "uniVer": "√",
143
- * "unixVer": "x"
144
- * },
145
- * "qq": {
146
- * "hostVer": "√",
147
- * "uniVer": "√",
148
- * "unixVer": "x"
149
- * },
150
- * "kuaishou": {
151
- * "hostVer": "√",
152
- * "uniVer": "√",
153
- * "unixVer": "x"
154
- * },
155
- * "jd": {
156
- * "hostVer": "√",
157
- * "uniVer": "√",
158
- * "unixVer": "x"
159
- * }
160
- * },
161
- * "web": {
162
- * "uniVer": "√",
163
- * "unixVer": "4.0"
164
- * }
165
- * }
166
- * @uniVueVersion 2,3
167
- */
168
- play(): void;
169
- /**
170
- * @description 暂停
171
- * @uniPlatform {
172
- * "app": {
173
- * "android": {
174
- * "osVer": "4.4",
175
- * "uniVer": "√",
176
- * "unixVer": "3.9.0"
177
- * },
178
- * "ios": {
179
- * "osVer": "12.0",
180
- * "uniVer": "√",
181
- * "unixVer": "4.11"
182
- * },
183
- * "harmony": {
184
- * "osVer": "3.0",
185
- * "uniVer": "4.23",
186
- * "unixVer": "4.61",
187
- * "unixvVer": "5.0"
188
- * }
189
- * },
190
- * "mp": {
191
- * "weixin": {
192
- * "hostVer": "√",
193
- * "uniVer": "√",
194
- * "unixVer": "4.41"
195
- * },
196
- * "alipay": {
197
- * "hostVer": "√",
198
- * "uniVer": "√",
199
- * "unixVer": "x"
200
- * },
201
- * "baidu": {
202
- * "hostVer": "√",
203
- * "uniVer": "√",
204
- * "unixVer": "x"
205
- * },
206
- * "toutiao": {
207
- * "hostVer": "√",
208
- * "uniVer": "√",
209
- * "unixVer": "x"
210
- * },
211
- * "lark": {
212
- * "hostVer": "√",
213
- * "uniVer": "√",
214
- * "unixVer": "x"
215
- * },
216
- * "qq": {
217
- * "hostVer": "√",
218
- * "uniVer": "√",
219
- * "unixVer": "x"
220
- * },
221
- * "kuaishou": {
222
- * "hostVer": "√",
223
- * "uniVer": "√",
224
- * "unixVer": "x"
225
- * },
226
- * "jd": {
227
- * "hostVer": "√",
228
- * "uniVer": "√",
229
- * "unixVer": "x"
230
- * }
231
- * },
232
- * "web": {
233
- * "uniVer": "√",
234
- * "unixVer": "4.0"
235
- * }
236
- * }
237
- * @uniVueVersion 2,3
238
- */
239
- pause(): void;
240
- /**
241
- * @description 跳转到指定位置
242
- * @param {number} position 跳转到指定位置(秒)
243
- * @uniPlatform {
244
- * "app": {
245
- * "android": {
246
- * "osVer": "4.4",
247
- * "uniVer": "√",
248
- * "unixVer": "3.9.0"
249
- * },
250
- * "ios": {
251
- * "osVer": "12.0",
252
- * "uniVer": "√",
253
- * "unixVer": "4.11"
254
- * },
255
- * "harmony": {
256
- * "osVer": "3.0",
257
- * "uniVer": "4.23",
258
- * "unixVer": "4.61",
259
- * "unixvVer": "5.0"
260
- * }
261
- * },
262
- * "mp": {
263
- * "weixin": {
264
- * "hostVer": "√",
265
- * "uniVer": "√",
266
- * "unixVer": "4.41"
267
- * },
268
- * "alipay": {
269
- * "hostVer": "√",
270
- * "uniVer": "√",
271
- * "unixVer": "x"
272
- * },
273
- * "baidu": {
274
- * "hostVer": "√",
275
- * "uniVer": "√",
276
- * "unixVer": "x"
277
- * },
278
- * "toutiao": {
279
- * "hostVer": "√",
280
- * "uniVer": "√",
281
- * "unixVer": "x"
282
- * },
283
- * "lark": {
284
- * "hostVer": "√",
285
- * "uniVer": "√",
286
- * "unixVer": "x"
287
- * },
288
- * "qq": {
289
- * "hostVer": "√",
290
- * "uniVer": "√",
291
- * "unixVer": "x"
292
- * },
293
- * "kuaishou": {
294
- * "hostVer": "√",
295
- * "uniVer": "√",
296
- * "unixVer": "x"
297
- * },
298
- * "jd": {
299
- * "hostVer": "√",
300
- * "uniVer": "√",
301
- * "unixVer": "x"
302
- * }
303
- * },
304
- * "web": {
305
- * "uniVer": "√",
306
- * "unixVer": "4.0"
307
- * }
308
- * }
309
- * @uniVueVersion 2,3
310
- */
311
- seek(position: number): void;
312
- /**
313
- * @description 停止视频
314
- * @uniPlatform {
315
- * "app": {
316
- * "android": {
317
- * "osVer": "4.4",
318
- * "uniVer": "√",
319
- * "unixVer": "3.9.0"
320
- * },
321
- * "ios": {
322
- * "osVer": "12.0",
323
- * "uniVer": "√",
324
- * "unixVer": "4.11"
325
- * },
326
- * "harmony": {
327
- * "osVer": "3.0",
328
- * "uniVer": "4.23",
329
- * "unixVer": "4.61",
330
- * "unixvVer": "5.0"
331
- * }
332
- * },
333
- * "mp": {
334
- * "weixin": {
335
- * "hostVer": "√",
336
- * "uniVer": "√",
337
- * "unixVer": "4.41"
338
- * },
339
- * "alipay": {
340
- * "hostVer": "√",
341
- * "uniVer": "√",
342
- * "unixVer": "x"
343
- * },
344
- * "baidu": {
345
- * "hostVer": "√",
346
- * "uniVer": "√",
347
- * "unixVer": "x"
348
- * },
349
- * "toutiao": {
350
- * "hostVer": "√",
351
- * "uniVer": "√",
352
- * "unixVer": "x"
353
- * },
354
- * "lark": {
355
- * "hostVer": "√",
356
- * "uniVer": "√",
357
- * "unixVer": "x"
358
- * },
359
- * "qq": {
360
- * "hostVer": "√",
361
- * "uniVer": "√",
362
- * "unixVer": "x"
363
- * },
364
- * "kuaishou": {
365
- * "hostVer": "√",
366
- * "uniVer": "√",
367
- * "unixVer": "x"
368
- * },
369
- * "jd": {
370
- * "hostVer": "√",
371
- * "uniVer": "√",
372
- * "unixVer": "x"
373
- * }
374
- * },
375
- * "web": {
376
- * "uniVer": "√",
377
- * "unixVer": "4.0"
378
- * }
379
- * }
380
- * @uniVueVersion 2,3
381
- */
382
- stop(): void;
383
- /**
384
- * @description 发送弹幕
385
- * @param {Danmu} 属性 text, color
386
- * @uniPlatform {
387
- * "app": {
388
- * "android": {
389
- * "osVer": "4.4",
390
- * "uniVer": "√",
391
- * "unixVer": "3.9.0"
392
- * },
393
- * "ios": {
394
- * "osVer": "12.0",
395
- * "uniVer": "√",
396
- * "unixVer": "4.11"
397
- * },
398
- * "harmony": {
399
- * "osVer": "3.0",
400
- * "uniVer": "4.23",
401
- * "unixVer": "4.61",
402
- * "unixvVer": "5.0"
403
- * }
404
- * },
405
- * "mp": {
406
- * "weixin": {
407
- * "hostVer": "√",
408
- * "uniVer": "√",
409
- * "unixVer": "4.41"
410
- * },
411
- * "alipay": {
412
- * "hostVer": "√",
413
- * "uniVer": "√",
414
- * "unixVer": "x"
415
- * },
416
- * "baidu": {
417
- * "hostVer": "√",
418
- * "uniVer": "√",
419
- * "unixVer": "x"
420
- * },
421
- * "toutiao": {
422
- * "hostVer": "√",
423
- * "uniVer": "√",
424
- * "unixVer": "x"
425
- * },
426
- * "lark": {
427
- * "hostVer": "√",
428
- * "uniVer": "√",
429
- * "unixVer": "x"
430
- * },
431
- * "qq": {
432
- * "hostVer": "√",
433
- * "uniVer": "√",
434
- * "unixVer": "x"
435
- * },
436
- * "kuaishou": {
437
- * "hostVer": "√",
438
- * "uniVer": "√",
439
- * "unixVer": "x"
440
- * },
441
- * "jd": {
442
- * "hostVer": "√",
443
- * "uniVer": "√",
444
- * "unixVer": "x"
445
- * }
446
- * },
447
- * "web": {
448
- * "uniVer": "√",
449
- * "unixVer": "4.0"
450
- * }
451
- * }
452
- * @uniVueVersion 2,3
453
- */
454
- sendDanmu(danmu: Danmu): void;
455
- /**
456
- * @description 设置倍速播放
457
- * @param {number} rate, 支持倍率 0.5/0.8/1.0/1.25/1.5
458
- * @uniPlatform {
459
- * "app": {
460
- * "android": {
461
- * "osVer": "4.4",
462
- * "uniVer": "√",
463
- * "unixVer": "3.9.0"
464
- * },
465
- * "ios": {
466
- * "osVer": "12.0",
467
- * "uniVer": "√",
468
- * "unixVer": "4.11"
469
- * },
470
- * "harmony": {
471
- * "osVer": "3.0",
472
- * "uniVer": "4.23",
473
- * "unixVer": "4.61",
474
- * "unixvVer": "5.0"
475
- * }
476
- * },
477
- * "mp": {
478
- * "weixin": {
479
- * "hostVer": "√",
480
- * "uniVer": "√",
481
- * "unixVer": "4.41"
482
- * },
483
- * "alipay": {
484
- * "hostVer": "√",
485
- * "uniVer": "√",
486
- * "unixVer": "x"
487
- * },
488
- * "baidu": {
489
- * "hostVer": "√",
490
- * "uniVer": "√",
491
- * "unixVer": "x"
492
- * },
493
- * "toutiao": {
494
- * "hostVer": "√",
495
- * "uniVer": "√",
496
- * "unixVer": "x"
497
- * },
498
- * "lark": {
499
- * "hostVer": "√",
500
- * "uniVer": "√",
501
- * "unixVer": "x"
502
- * },
503
- * "qq": {
504
- * "hostVer": "√",
505
- * "uniVer": "√",
506
- * "unixVer": "x"
507
- * },
508
- * "kuaishou": {
509
- * "hostVer": "√",
510
- * "uniVer": "√",
511
- * "unixVer": "x"
512
- * },
513
- * "jd": {
514
- * "hostVer": "√",
515
- * "uniVer": "√",
516
- * "unixVer": "x"
517
- * }
518
- * },
519
- * "web": {
520
- * "uniVer": "√",
521
- * "unixVer": "4.0"
522
- * }
523
- * }
524
- * @uniVueVersion 2,3
525
- */
526
- playbackRate(rate: number): void;
527
- /**
528
- * @description 进入全屏
529
- * @param {RequestFullScreenOptions} direction, 0|正常竖向, 90|屏幕逆时针90度, -90|屏幕顺时针90度
530
- * @uniPlatform {
531
- * "app": {
532
- * "android": {
533
- * "osVer": "4.4",
534
- * "uniVer": "√",
535
- * "unixVer": "3.9.0"
536
- * },
537
- * "ios": {
538
- * "osVer": "12.0",
539
- * "uniVer": "√",
540
- * "unixVer": "4.11"
541
- * },
542
- * "harmony": {
543
- * "osVer": "3.0",
544
- * "uniVer": "4.23",
545
- * "unixVer": "4.61",
546
- * "unixvVer": "5.0"
547
- * }
548
- * },
549
- * "mp": {
550
- * "weixin": {
551
- * "hostVer": "√",
552
- * "uniVer": "√",
553
- * "unixVer": "4.41"
554
- * },
555
- * "alipay": {
556
- * "hostVer": "√",
557
- * "uniVer": "√",
558
- * "unixVer": "x"
559
- * },
560
- * "baidu": {
561
- * "hostVer": "√",
562
- * "uniVer": "√",
563
- * "unixVer": "x"
564
- * },
565
- * "toutiao": {
566
- * "hostVer": "√",
567
- * "uniVer": "√",
568
- * "unixVer": "x"
569
- * },
570
- * "lark": {
571
- * "hostVer": "√",
572
- * "uniVer": "√",
573
- * "unixVer": "x"
574
- * },
575
- * "qq": {
576
- * "hostVer": "√",
577
- * "uniVer": "√",
578
- * "unixVer": "x"
579
- * },
580
- * "kuaishou": {
581
- * "hostVer": "√",
582
- * "uniVer": "√",
583
- * "unixVer": "x"
584
- * },
585
- * "jd": {
586
- * "hostVer": "√",
587
- * "uniVer": "√",
588
- * "unixVer": "x"
589
- * }
590
- * },
591
- * "web": {
592
- * "uniVer": "√",
593
- * "unixVer": "4.0"
594
- * }
595
- * }
596
- * @uniVueVersion 2,3
597
- */
598
- requestFullScreen(direction?: RequestFullScreenOptions | null): void;
599
- /**
600
- * 退出全屏
601
- * @description 退出全屏
602
- * @uniPlatform {
603
- * "app": {
604
- * "android": {
605
- * "osVer": "4.4",
606
- * "uniVer": "√",
607
- * "unixVer": "3.9.0"
608
- * },
609
- * "ios": {
610
- * "osVer": "12.0",
611
- * "uniVer": "√",
612
- * "unixVer": "4.11"
613
- * },
614
- * "harmony": {
615
- * "osVer": "3.0",
616
- * "uniVer": "4.23",
617
- * "unixVer": "4.61",
618
- * "unixvVer": "5.0"
619
- * }
620
- * },
621
- * "mp": {
622
- * "weixin": {
623
- * "hostVer": "√",
624
- * "uniVer": "√",
625
- * "unixVer": "4.41"
626
- * },
627
- * "alipay": {
628
- * "hostVer": "√",
629
- * "uniVer": "√",
630
- * "unixVer": "x"
631
- * },
632
- * "baidu": {
633
- * "hostVer": "√",
634
- * "uniVer": "√",
635
- * "unixVer": "x"
636
- * },
637
- * "toutiao": {
638
- * "hostVer": "√",
639
- * "uniVer": "√",
640
- * "unixVer": "x"
641
- * },
642
- * "lark": {
643
- * "hostVer": "√",
644
- * "uniVer": "√",
645
- * "unixVer": "x"
646
- * },
647
- * "qq": {
648
- * "hostVer": "√",
649
- * "uniVer": "√",
650
- * "unixVer": "x"
651
- * },
652
- * "kuaishou": {
653
- * "hostVer": "√",
654
- * "uniVer": "√",
655
- * "unixVer": "x"
656
- * },
657
- * "jd": {
658
- * "hostVer": "√",
659
- * "uniVer": "√",
660
- * "unixVer": "x"
661
- * }
662
- * },
663
- * "web": {
664
- * "uniVer": "√",
665
- * "unixVer": "4.0"
666
- * }
667
- * }
668
- * @uniVueVersion 2,3
669
- */
670
- exitFullScreen(): void;
671
- }
672
-
673
- export interface Uni {
674
- /**
675
- * 创建并返回 video 上下文 videoContext 对象
676
- * @uniPlatform {
677
- * "app": {
678
- * "android": {
679
- * "osVer": "4.4",
680
- * "uniVer": "√",
681
- * "unixVer": "√"
682
- * },
683
- * "ios": {
684
- * "osVer": "12.0",
685
- * "uniVer": "√",
686
- * "unixVer": "4.11"
687
- * },
688
- * "harmony": {
689
- * "osVer": "5.0.0",
690
- * "uniVer": "4.23",
691
- * "unixVer": "4.61",
692
- * "unixvVer": "5.0"
693
- * }
694
- * },
695
- * "web": {
696
- * "uniVer": "√",
697
- * "unixVer": "4.0"
698
- * },
699
- * "mp": {
700
- * "weixin": {
701
- * "hostVer": "1.9.6",
702
- * "uniVer": "√",
703
- * "unixVer": "4.41"
704
- * },
705
- * "alipay": {
706
- * "hostVer": "1.10.0",
707
- * "uniVer": "√",
708
- * "unixVer": "x"
709
- * },
710
- * "baidu": {
711
- * "hostVer": "√",
712
- * "uniVer": "√",
713
- * "unixVer": "x"
714
- * },
715
- * "toutiao": {
716
- * "hostVer": "√",
717
- * "uniVer": "√",
718
- * "unixVer": "x"
719
- * },
720
- * "lark": {
721
- * "hostVer": "√",
722
- * "uniVer": "√",
723
- * "unixVer": "x"
724
- * },
725
- * "qq": {
726
- * "hostVer": "√",
727
- * "uniVer": "√",
728
- * "unixVer": "x"
729
- * },
730
- * "kuaishou": {
731
- * "hostVer": "√",
732
- * "uniVer": "√",
733
- * "unixVer": "x"
734
- * },
735
- * "jd": {
736
- * "hostVer": "√",
737
- * "uniVer": "√",
738
- * "unixVer": "x"
739
- * }
740
- * }
741
- * }
742
- * @uniVueVersion 2,3
743
- * @return {VideoContext} video组件上下文对象
744
- *
745
- * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/media/video-context.html#createvideocontext
746
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/create-video-context.html#createvideocontext
747
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/create-video-context.html#createvideocontext
748
- * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/media/video/VideoContext.html
749
- */
750
- createVideoContext: CreateVideoContext
751
- }
752
-
753
- /**
754
- * 通用事件
755
- * 临时方案,规避组件Event接口无法直接继承UniEvent的问题
756
- */
757
- export interface UniVideoEvent {
758
- /**
759
- * 是否冒泡
760
- */
761
- bubbles: boolean
762
- /**
763
- * 是否可以取消
764
- */
765
- cancelable: boolean
766
- /**
767
- * 事件类型
768
- */
769
- type: string
770
- /**
771
- * 触发事件的组件
772
- */
773
- target?: UniElement | null
774
- /**
775
- * 当前组件
776
- */
777
- currentTarget?: UniElement | null
778
- /**
779
- * 事件发生时的时间戳
780
- */
781
- timeStamp: number
782
- /**
783
- * 阻止当前事件的进一步传播
784
- */
785
- stopPropagation(): void
786
- /**
787
- * 阻止当前事件的默认行为
788
- */
789
- preventDefault(): void
790
- }
791
-
792
- /**
793
- * timeupdate 事件
794
- * 播放进度变化时触发
795
- */
796
- export interface UniVideoTimeUpdateEvent extends UniVideoEvent {
797
- readonly detail: UniVideoTimeUpdateEventDetail
798
- }
799
-
800
- export type UniVideoTimeUpdateEventDetail = {
801
- /**
802
- * 当前进度
803
- */
804
- currentTime: number,
805
- /**
806
- * 总进度
807
- */
808
- duration: number
809
- }
810
-
811
- /**
812
- * fullscreenchange 事件
813
- * 当视频进入和退出全屏是触发
814
- */
815
- export interface UniVideoFullScreenChangeEvent extends UniVideoEvent {
816
- readonly detail: UniVideoFullScreenChangeEventDetail
817
- }
818
-
819
- export type UniVideoFullScreenDirection =
820
- /**
821
- * 竖屏
822
- */
823
- 'vertical' |
824
- /**
825
- * 横屏
826
- */
827
- 'horizontal'
828
-
829
- export type UniVideoFullScreenChangeEventDetail = {
830
- /**
831
- * 是否全屏
832
- */
833
- fullScreen: boolean,
834
- /**
835
- * 横竖屏
836
- */
837
- direction: UniVideoFullScreenDirection
838
- }
839
-
840
- /**
841
- * error 事件
842
- * 视频播放出错时触发
843
- */
844
- export interface UniVideoErrorEvent extends UniVideoEvent {
845
- readonly detail: VideoError
846
- }
847
-
848
- /**
849
- * 统一错误码
850
- */
851
- export type VideoErrorCode =
852
- /**
853
- * 网络错误
854
- */
855
- 100001 |
856
- /**
857
- * 内部错误
858
- */
859
- 200001 |
860
- /**
861
- * SDK错误
862
- */
863
- 300001
864
-
865
- export interface VideoError extends IUniError {
866
- errCode: VideoErrorCode
867
- }
868
-
869
- /**
870
- * progress 事件
871
- * 加载进度变化时触发
872
- */
873
- export interface UniVideoProgressEvent extends UniVideoEvent {
874
- readonly detail: UniVideoProgressEventDetail
875
- }
876
-
877
- export type UniVideoProgressEventDetail = {
878
- /**
879
- * 加载进度百分比
880
- */
881
- buffered: number
882
- }
883
-
884
- /**
885
- * fullscreenclick 事件
886
- * 视频播放全屏播放时点击事件
887
- */
888
- export interface UniVideoFullScreenClickEvent extends UniVideoEvent {
889
- readonly detail: UniVideoFullScreenClickEventDetail
890
- }
891
-
892
- export type UniVideoFullScreenClickEventDetail = {
893
- /**
894
- * 点击点相对于屏幕左侧边缘的 X 轴坐标
895
- */
896
- screenX: number,
897
- /**
898
- * 点击点相对于屏幕顶部边缘的 Y 轴坐标
899
- */
900
- screenY: number,
901
- /**
902
- * 屏幕总宽度
903
- */
904
- screenWidth: number,
905
- /**
906
- * 屏幕总高度
907
- */
908
- screenHeight: number
909
- }
910
-
911
- /**
912
- * controlstoggle 事件
913
- * 切换播放控件显示隐藏时触发
914
- */
915
- export interface UniVideoControlsToggleEvent extends UniVideoEvent {
916
- readonly detail: UniVideoControlsToggleEventDetail
917
- }
918
-
919
- export type UniVideoControlsToggleEventDetail = {
920
- /**
921
- * 是否显示
922
- */
923
- show: boolean
924
- }
925
-
926
- export type VideoTimeUpdateEvent = UniVideoTimeUpdateEvent
927
- export type VideoTimeUpdateEventDetail = UniVideoTimeUpdateEventDetail
928
- export type VideoFullScreenChangeEvent = UniVideoFullScreenChangeEvent
929
- export type VideoFullScreenChangeEventDetail = UniVideoFullScreenChangeEventDetail
930
- export type VideoErrorEvent = UniVideoErrorEvent
931
- export type VideoProgressEvent = UniVideoProgressEvent
932
- export type VideoProgressEventDetail = UniVideoProgressEventDetail
933
- export type VideoFullScreenClickEvent = UniVideoFullScreenClickEvent
934
- export type VideoFullScreenClickEventDetail = UniVideoFullScreenClickEventDetail
935
- export type VideoControlsToggleEvent = UniVideoControlsToggleEvent
936
- export type VideoControlsToggleEventDetail = UniVideoControlsToggleEventDetail