@dcloudio/uni-app-x 0.7.62 → 0.7.63

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 (80) hide show
  1. package/package.json +1 -1
  2. package/types/app.d.ts +36 -1
  3. package/types/dom2/UniCSSProperty.d.ts +446 -0
  4. package/types/dom2/UniCSSType.d.ts +72 -0
  5. package/types/dom2/UniCommon.d.ts +40 -0
  6. package/types/dom2/UniCustomViewElement.d.ts +12 -0
  7. package/types/dom2/UniElement.d.ts +354 -0
  8. package/types/dom2/UniElementType.d.ts +37 -0
  9. package/types/dom2/UniImageElement.d.ts +102 -0
  10. package/types/dom2/UniNativeBaseView.d.ts +178 -0
  11. package/types/dom2/UniNativeCustomView.d.ts +13 -0
  12. package/types/dom2/UniNativeDefines.d.ts +435 -0
  13. package/types/dom2/UniNativeImageView.d.ts +34 -0
  14. package/types/dom2/UniNativeScrollView.d.ts +42 -0
  15. package/types/dom2/UniNativeTextView.d.ts +25 -0
  16. package/types/dom2/UniNativeView.d.ts +51 -0
  17. package/types/dom2/UniNativeViewType.d.ts +22 -0
  18. package/types/dom2/UniPage.d.ts +55 -0
  19. package/types/dom2/UniScrollViewElement.d.ts +13 -0
  20. package/types/dom2/UniTextElement.d.ts +20 -0
  21. package/types/dom2/UniTextLayout.d.ts +386 -0
  22. package/types/dom2/UniViewElement.d.ts +57 -0
  23. package/types/dom2/global.d.ts +189 -0
  24. package/types/dom2/index.d.ts +40 -0
  25. package/types/dom2/sharedData.d.ts +227 -0
  26. package/types/index.d.ts +2 -1
  27. package/types/native/DOMRect.d.ts +2 -1
  28. package/types/native/DrawableContext.d.ts +1665 -1661
  29. package/types/native/IUniElement.d.ts +3514 -2877
  30. package/types/native/SnapshotOptions.d.ts +2 -2
  31. package/types/native/UniAnimation.d.ts +11 -10
  32. package/types/native/UniEvent.d.ts +108 -3
  33. package/types/native/UniPage.d.ts +891 -887
  34. package/types/native/UniTextElement.d.ts +37 -0
  35. package/types/native/UniTextLayout.d.ts +387 -0
  36. package/types/native/UniVideoElement.d.ts +20 -17
  37. package/types/native/Worker.d.ts +19 -0
  38. package/types/native/global.d.ts +28 -68
  39. package/types/native/index.d.ts +18 -1
  40. package/types/page.d.ts +1862 -599
  41. package/types/uni/uts-plugin-api/global.d.ts +2 -0
  42. package/types/uni/uts-plugin-api/index.d.ts +2 -0
  43. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +1 -1
  44. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +10 -10
  45. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +0 -1
  46. package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/global.d.ts +22 -0
  47. package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/index.d.ts +10 -0
  48. package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/interface.d.ts +524 -0
  49. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +985 -76
  50. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +79 -55
  51. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +77 -53
  52. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +458 -407
  53. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +420 -0
  54. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/interface.d.ts +80 -80
  55. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/global.d.ts +12 -4
  56. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/index.d.ts +6 -2
  57. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +713 -91
  58. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +4 -0
  59. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +3 -3
  60. package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/interface.d.ts +3 -1
  61. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +71 -1
  62. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +1 -1
  63. package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/global.d.ts +56 -0
  64. package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/index.d.ts +27 -0
  65. package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/interface.d.ts +842 -0
  66. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +11 -11
  67. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +1 -1
  68. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +63 -42
  69. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +2 -2
  70. package/types/uni/uts-plugin-biz/lib/uni-facialVerify/utssdk/interface.d.ts +2 -2
  71. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/global.d.ts +4 -0
  72. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/index.d.ts +2 -0
  73. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/interface.d.ts +1007 -314
  74. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/global.d.ts +4 -0
  75. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/index.d.ts +2 -0
  76. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/interface.d.ts +1727 -10
  77. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +235 -30
  78. package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +1 -1
  79. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +17 -17
  80. package/uts-plugin.d.ts +11 -0
@@ -1,5 +1,3 @@
1
- import { LivePlayerErrorCode } from './unierror.uts'
2
-
3
1
  export type StreamingContextListener = {
4
2
  play: () => void
5
3
  pause: () => void
@@ -36,7 +34,7 @@ interface LivePlayerEvent {
36
34
  target ?: UniElement | null
37
35
  currentTarget ?: UniElement | null
38
36
  // #ifdef APP-ANDROID
39
- timeStamp : Long
37
+ readonly timeStamp : Long
40
38
  // #endif
41
39
  // #ifdef APP-IOS
42
40
  timeStamp : number
@@ -49,22 +47,270 @@ interface LivePlayerEvent {
49
47
  * 播放状态变化事件
50
48
  */
51
49
  export interface UniLivePlayerStatechangeEvent extends LivePlayerEvent {
52
- detail : UniLivePlayerStatechangeEventDetail
50
+ readonly detail : UniLivePlayerStatechangeEventDetail
53
51
  }
54
52
 
55
53
  export type UniLivePlayerStatechangeEventDetail = {
56
- code : number
54
+ /**
55
+ * 状态码
56
+ * @uniPlatform {
57
+ * "app": {
58
+ * "android": {
59
+ * "osVer": "5.0",
60
+ * "uniVer": "x",
61
+ * "unixVer": "4.81"
62
+ * },
63
+ * "ios": {
64
+ * "osVer": "12.0",
65
+ * "uniVer": "x",
66
+ * "unixVer": "4.81"
67
+ * },
68
+ * "harmony": {
69
+ * "osVer": "5.0.0",
70
+ * "uniVer": "x",
71
+ * "unixVer": "x"
72
+ * }
73
+ * },
74
+ * "web": {
75
+ * "uniVer": "x",
76
+ * "unixVer": "x"
77
+ * },
78
+ * "mp": {
79
+ * "weixin": {
80
+ * "hostVer": "1.9.6",
81
+ * "uniVer": "√",
82
+ * "unixVer": "x"
83
+ * },
84
+ * "alipay": {
85
+ * "hostVer": "1.10.0",
86
+ * "uniVer": "√",
87
+ * "unixVer": "x"
88
+ * },
89
+ * "baidu": {
90
+ * "hostVer": "√",
91
+ * "uniVer": "√",
92
+ * "unixVer": "x"
93
+ * },
94
+ * "toutiao": {
95
+ * "hostVer": "√",
96
+ * "uniVer": "√",
97
+ * "unixVer": "x"
98
+ * },
99
+ * "lark": {
100
+ * "hostVer": "√",
101
+ * "uniVer": "√",
102
+ * "unixVer": "x"
103
+ * },
104
+ * "qq": {
105
+ * "hostVer": "√",
106
+ * "uniVer": "√",
107
+ * "unixVer": "x"
108
+ * },
109
+ * "kuaishou": {
110
+ * "hostVer": "√",
111
+ * "uniVer": "√",
112
+ * "unixVer": "x"
113
+ * },
114
+ * "jd": {
115
+ * "hostVer": "√",
116
+ * "uniVer": "√",
117
+ * "unixVer": "x"
118
+ * }
119
+ * }
120
+ * }
121
+ */
122
+ code : LivePlayerStateCode
57
123
  }
58
124
 
125
+ export type LivePlayerStateCode =
126
+ 10000 |
127
+ /**
128
+ * 初始化
129
+ */
130
+ 10001 |
131
+ /**
132
+ * 准备播放
133
+ */
134
+ 10002 |
135
+ /**
136
+ * 播放中
137
+ */
138
+ 10004 |
139
+ /**
140
+ * 停止渲染
141
+ */
142
+ 10006 |
143
+ /**
144
+ * 播放完成
145
+ */
146
+ 10007 |
147
+ /**
148
+ * 播放进度跳转中
149
+ */
150
+ 10008 |
151
+ /**
152
+ * 播放停止
153
+ */
154
+ 10009 |
155
+ /**
156
+ * 播放错误
157
+ */
158
+ 10010 |
159
+ /**
160
+ * 播放结束
161
+ */
162
+ 10011 |
163
+ 10012 |
164
+ /**
165
+ * 资源释放
166
+ */
167
+ 10013
168
+
59
169
  /**
60
170
  * 全屏事件
61
171
  */
62
172
  export interface UniLivePlayerFullscreenchangeEvent extends LivePlayerEvent {
63
- detail: UniLivePlayerFullscreenchangeEventDetail
173
+ readonly detail: UniLivePlayerFullscreenchangeEventDetail
64
174
  }
65
175
 
66
176
  export type UniLivePlayerFullscreenchangeEventDetail = {
177
+ /**
178
+ * 屏幕方向
179
+ * @uniPlatform {
180
+ * "app": {
181
+ * "android": {
182
+ * "osVer": "5.0",
183
+ * "uniVer": "x",
184
+ * "unixVer": "4.81"
185
+ * },
186
+ * "ios": {
187
+ * "osVer": "12.0",
188
+ * "uniVer": "x",
189
+ * "unixVer": "4.81"
190
+ * },
191
+ * "harmony": {
192
+ * "osVer": "5.0.0",
193
+ * "uniVer": "x",
194
+ * "unixVer": "x"
195
+ * }
196
+ * },
197
+ * "web": {
198
+ * "uniVer": "x",
199
+ * "unixVer": "x"
200
+ * },
201
+ * "mp": {
202
+ * "weixin": {
203
+ * "hostVer": "1.9.6",
204
+ * "uniVer": "√",
205
+ * "unixVer": "x"
206
+ * },
207
+ * "alipay": {
208
+ * "hostVer": "1.10.0",
209
+ * "uniVer": "√",
210
+ * "unixVer": "x"
211
+ * },
212
+ * "baidu": {
213
+ * "hostVer": "√",
214
+ * "uniVer": "√",
215
+ * "unixVer": "x"
216
+ * },
217
+ * "toutiao": {
218
+ * "hostVer": "√",
219
+ * "uniVer": "√",
220
+ * "unixVer": "x"
221
+ * },
222
+ * "lark": {
223
+ * "hostVer": "√",
224
+ * "uniVer": "√",
225
+ * "unixVer": "x"
226
+ * },
227
+ * "qq": {
228
+ * "hostVer": "√",
229
+ * "uniVer": "√",
230
+ * "unixVer": "x"
231
+ * },
232
+ * "kuaishou": {
233
+ * "hostVer": "√",
234
+ * "uniVer": "√",
235
+ * "unixVer": "x"
236
+ * },
237
+ * "jd": {
238
+ * "hostVer": "√",
239
+ * "uniVer": "√",
240
+ * "unixVer": "x"
241
+ * }
242
+ * }
243
+ * }
244
+ */
67
245
  direction : string
246
+ /**
247
+ * 是否全屏
248
+ * @uniPlatform {
249
+ * "app": {
250
+ * "android": {
251
+ * "osVer": "5.0",
252
+ * "uniVer": "x",
253
+ * "unixVer": "4.81"
254
+ * },
255
+ * "ios": {
256
+ * "osVer": "12.0",
257
+ * "uniVer": "x",
258
+ * "unixVer": "4.81"
259
+ * },
260
+ * "harmony": {
261
+ * "osVer": "5.0.0",
262
+ * "uniVer": "x",
263
+ * "unixVer": "x"
264
+ * }
265
+ * },
266
+ * "web": {
267
+ * "uniVer": "x",
268
+ * "unixVer": "x"
269
+ * },
270
+ * "mp": {
271
+ * "weixin": {
272
+ * "hostVer": "1.9.6",
273
+ * "uniVer": "√",
274
+ * "unixVer": "x"
275
+ * },
276
+ * "alipay": {
277
+ * "hostVer": "1.10.0",
278
+ * "uniVer": "√",
279
+ * "unixVer": "x"
280
+ * },
281
+ * "baidu": {
282
+ * "hostVer": "√",
283
+ * "uniVer": "√",
284
+ * "unixVer": "x"
285
+ * },
286
+ * "toutiao": {
287
+ * "hostVer": "√",
288
+ * "uniVer": "√",
289
+ * "unixVer": "x"
290
+ * },
291
+ * "lark": {
292
+ * "hostVer": "√",
293
+ * "uniVer": "√",
294
+ * "unixVer": "x"
295
+ * },
296
+ * "qq": {
297
+ * "hostVer": "√",
298
+ * "uniVer": "√",
299
+ * "unixVer": "x"
300
+ * },
301
+ * "kuaishou": {
302
+ * "hostVer": "√",
303
+ * "uniVer": "√",
304
+ * "unixVer": "x"
305
+ * },
306
+ * "jd": {
307
+ * "hostVer": "√",
308
+ * "uniVer": "√",
309
+ * "unixVer": "x"
310
+ * }
311
+ * }
312
+ * }
313
+ */
68
314
  fullScreen: boolean
69
315
  }
70
316
 
@@ -72,14 +318,35 @@ export type UniLivePlayerFullscreenchangeEventDetail = {
72
318
  * 错误事件
73
319
  */
74
320
  export interface UniLivePlayerErrorEvent extends LivePlayerEvent {
75
- detail : UniLivePlayerError
321
+ readonly detail : UniLivePlayerError
76
322
  }
77
323
 
78
- export type UniLivePlayerError = {
79
- errCode : LivePlayerErrorCode
80
- errMsg : string
324
+ export interface UniLivePlayerError extends IUniError {
325
+ errCode : LivePlayerErrorCode
81
326
  }
82
327
 
328
+ export type LivePlayerErrorCode =
329
+ /**
330
+ * 当前视频格式不支持,视频无法播放
331
+ */
332
+ 3001 |
333
+ /**
334
+ * 视频解码失败
335
+ */
336
+ 3002 |
337
+ /**
338
+ * 不支持的解码格式
339
+ */
340
+ 3003 |
341
+ /**
342
+ * 重连失败,请检查网络情况
343
+ */
344
+ 3004 |
345
+ /**
346
+ * 视频播放失败,请检查网络或视频资源
347
+ */
348
+ 3005
349
+
83
350
  export type LivePlayerSuccess = UTSJSONObject;
84
351
  export type LivePlayerSuccessCallback = (res : LivePlayerSuccess) => void;
85
352
  export type LivePlayerFail = UTSJSONObject;
@@ -91,355 +358,781 @@ export type LivePlayerCompleteCallback = (res : LivePlayerComplete) => void;
91
358
  * 方法调用参数
92
359
  */
93
360
  export type LivePlayerOptions = {
361
+ /**
362
+ * 接口调用成功的回调函数
363
+ * @uniPlatform {
364
+ * "app": {
365
+ * "android": {
366
+ * "osVer": "5.0",
367
+ * "uniVer": "x",
368
+ * "unixVer": "4.81"
369
+ * },
370
+ * "ios": {
371
+ * "osVer": "12.0",
372
+ * "uniVer": "x",
373
+ * "unixVer": "4.81"
374
+ * },
375
+ * "harmony": {
376
+ * "osVer": "5.0.0",
377
+ * "uniVer": "x",
378
+ * "unixVer": "x"
379
+ * }
380
+ * },
381
+ * "web": {
382
+ * "uniVer": "x",
383
+ * "unixVer": "x"
384
+ * },
385
+ * "mp": {
386
+ * "weixin": {
387
+ * "hostVer": "1.9.6",
388
+ * "uniVer": "√",
389
+ * "unixVer": "x"
390
+ * },
391
+ * "alipay": {
392
+ * "hostVer": "1.10.0",
393
+ * "uniVer": "√",
394
+ * "unixVer": "x"
395
+ * },
396
+ * "baidu": {
397
+ * "hostVer": "√",
398
+ * "uniVer": "√",
399
+ * "unixVer": "x"
400
+ * },
401
+ * "toutiao": {
402
+ * "hostVer": "√",
403
+ * "uniVer": "√",
404
+ * "unixVer": "x"
405
+ * },
406
+ * "lark": {
407
+ * "hostVer": "√",
408
+ * "uniVer": "√",
409
+ * "unixVer": "x"
410
+ * },
411
+ * "qq": {
412
+ * "hostVer": "√",
413
+ * "uniVer": "√",
414
+ * "unixVer": "x"
415
+ * },
416
+ * "kuaishou": {
417
+ * "hostVer": "√",
418
+ * "uniVer": "√",
419
+ * "unixVer": "x"
420
+ * },
421
+ * "jd": {
422
+ * "hostVer": "√",
423
+ * "uniVer": "√",
424
+ * "unixVer": "x"
425
+ * }
426
+ * }
427
+ * }
428
+ */
94
429
  success?: LivePlayerSuccessCallback | null,
430
+ /**
431
+ * 接口调用失败的回调函数
432
+ * @uniPlatform {
433
+ * "app": {
434
+ * "android": {
435
+ * "osVer": "5.0",
436
+ * "uniVer": "x",
437
+ * "unixVer": "4.81"
438
+ * },
439
+ * "ios": {
440
+ * "osVer": "12.0",
441
+ * "uniVer": "x",
442
+ * "unixVer": "4.81"
443
+ * },
444
+ * "harmony": {
445
+ * "osVer": "5.0.0",
446
+ * "uniVer": "x",
447
+ * "unixVer": "x"
448
+ * }
449
+ * },
450
+ * "web": {
451
+ * "uniVer": "x",
452
+ * "unixVer": "x"
453
+ * },
454
+ * "mp": {
455
+ * "weixin": {
456
+ * "hostVer": "1.9.6",
457
+ * "uniVer": "√",
458
+ * "unixVer": "x"
459
+ * },
460
+ * "alipay": {
461
+ * "hostVer": "1.10.0",
462
+ * "uniVer": "√",
463
+ * "unixVer": "x"
464
+ * },
465
+ * "baidu": {
466
+ * "hostVer": "√",
467
+ * "uniVer": "√",
468
+ * "unixVer": "x"
469
+ * },
470
+ * "toutiao": {
471
+ * "hostVer": "√",
472
+ * "uniVer": "√",
473
+ * "unixVer": "x"
474
+ * },
475
+ * "lark": {
476
+ * "hostVer": "√",
477
+ * "uniVer": "√",
478
+ * "unixVer": "x"
479
+ * },
480
+ * "qq": {
481
+ * "hostVer": "√",
482
+ * "uniVer": "√",
483
+ * "unixVer": "x"
484
+ * },
485
+ * "kuaishou": {
486
+ * "hostVer": "√",
487
+ * "uniVer": "√",
488
+ * "unixVer": "x"
489
+ * },
490
+ * "jd": {
491
+ * "hostVer": "√",
492
+ * "uniVer": "√",
493
+ * "unixVer": "x"
494
+ * }
495
+ * }
496
+ * }
497
+ */
95
498
  fail?: LivePlayerFailCallback | null,
499
+ /**
500
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
501
+ * @uniPlatform {
502
+ * "app": {
503
+ * "android": {
504
+ * "osVer": "5.0",
505
+ * "uniVer": "x",
506
+ * "unixVer": "4.81"
507
+ * },
508
+ * "ios": {
509
+ * "osVer": "12.0",
510
+ * "uniVer": "x",
511
+ * "unixVer": "4.81"
512
+ * },
513
+ * "harmony": {
514
+ * "osVer": "5.0.0",
515
+ * "uniVer": "x",
516
+ * "unixVer": "x"
517
+ * }
518
+ * },
519
+ * "web": {
520
+ * "uniVer": "x",
521
+ * "unixVer": "x"
522
+ * },
523
+ * "mp": {
524
+ * "weixin": {
525
+ * "hostVer": "1.9.6",
526
+ * "uniVer": "√",
527
+ * "unixVer": "x"
528
+ * },
529
+ * "alipay": {
530
+ * "hostVer": "1.10.0",
531
+ * "uniVer": "√",
532
+ * "unixVer": "x"
533
+ * },
534
+ * "baidu": {
535
+ * "hostVer": "√",
536
+ * "uniVer": "√",
537
+ * "unixVer": "x"
538
+ * },
539
+ * "toutiao": {
540
+ * "hostVer": "√",
541
+ * "uniVer": "√",
542
+ * "unixVer": "x"
543
+ * },
544
+ * "lark": {
545
+ * "hostVer": "√",
546
+ * "uniVer": "√",
547
+ * "unixVer": "x"
548
+ * },
549
+ * "qq": {
550
+ * "hostVer": "√",
551
+ * "uniVer": "√",
552
+ * "unixVer": "x"
553
+ * },
554
+ * "kuaishou": {
555
+ * "hostVer": "√",
556
+ * "uniVer": "√",
557
+ * "unixVer": "x"
558
+ * },
559
+ * "jd": {
560
+ * "hostVer": "√",
561
+ * "uniVer": "√",
562
+ * "unixVer": "x"
563
+ * }
564
+ * }
565
+ * }
566
+ */
96
567
  complete?: LivePlayerCompleteCallback | null
97
568
  }
98
569
 
99
570
  export interface LivePlayerContext {
100
- /**
571
+ /**
101
572
  * 播放
102
- * @uniPlatform {
103
- * "mp": {
104
- * "weixin": {
105
- * "hostVer": "",
106
- * "uniVer": "",
107
- * "unixVer": "4.41"
108
- * },
109
- * "alipay": {
110
- * "hostVer": "-",
111
- * "uniVer": "-",
112
- * "unixVer": "-"
113
- * },
114
- * "baidu": {
115
- * "hostVer": "-",
116
- * "uniVer": "-",
117
- * "unixVer": "-"
118
- * },
119
- * "toutiao": {
120
- * "hostVer": "-",
121
- * "uniVer": "-",
122
- * "unixVer": "-"
123
- * },
124
- * "lark": {
125
- * "hostVer": "-",
126
- * "uniVer": "-",
127
- * "unixVer": "-"
128
- * },
129
- * "qq": {
130
- * "hostVer": "-",
131
- * "uniVer": "-",
132
- * "unixVer": "-"
133
- * },
134
- * "kuaishou": {
135
- * "hostVer": "-",
136
- * "uniVer": "-",
137
- * "unixVer": "-"
138
- * },
139
- * "jd": {
140
- * "hostVer": "-",
141
- * "uniVer": "-",
142
- * "unixVer": "-"
143
- * }
144
- * }
145
- * }
146
- */
573
+ * @uniPlatform {
574
+ * "app": {
575
+ * "android": {
576
+ * "osVer": "5.0",
577
+ * "uniVer": "x",
578
+ * "unixVer": "4.81"
579
+ * },
580
+ * "ios": {
581
+ * "osVer": "12.0",
582
+ * "uniVer": "x",
583
+ * "unixVer": "4.81"
584
+ * },
585
+ * "harmony": {
586
+ * "osVer": "5.0.0",
587
+ * "uniVer": "x",
588
+ * "unixVer": "x"
589
+ * }
590
+ * },
591
+ * "web": {
592
+ * "uniVer": "x",
593
+ * "unixVer": "x"
594
+ * },
595
+ * "mp": {
596
+ * "weixin": {
597
+ * "hostVer": "1.9.6",
598
+ * "uniVer": "",
599
+ * "unixVer": "x"
600
+ * },
601
+ * "alipay": {
602
+ * "hostVer": "1.10.0",
603
+ * "uniVer": "",
604
+ * "unixVer": "x"
605
+ * },
606
+ * "baidu": {
607
+ * "hostVer": "",
608
+ * "uniVer": "",
609
+ * "unixVer": "x"
610
+ * },
611
+ * "toutiao": {
612
+ * "hostVer": "",
613
+ * "uniVer": "",
614
+ * "unixVer": "x"
615
+ * },
616
+ * "lark": {
617
+ * "hostVer": "√",
618
+ * "uniVer": "√",
619
+ * "unixVer": "x"
620
+ * },
621
+ * "qq": {
622
+ * "hostVer": "√",
623
+ * "uniVer": "√",
624
+ * "unixVer": "x"
625
+ * },
626
+ * "kuaishou": {
627
+ * "hostVer": "√",
628
+ * "uniVer": "√",
629
+ * "unixVer": "x"
630
+ * },
631
+ * "jd": {
632
+ * "hostVer": "√",
633
+ * "uniVer": "√",
634
+ * "unixVer": "x"
635
+ * }
636
+ * }
637
+ * }
638
+ */
147
639
  play(options?: LivePlayerOptions) : void
148
640
  /**
149
641
  * 暂停
150
- * @uniPlatform {
151
- * "mp": {
152
- * "weixin": {
153
- * "hostVer": "",
154
- * "uniVer": "",
155
- * "unixVer": "4.41"
156
- * },
157
- * "alipay": {
158
- * "hostVer": "-",
159
- * "uniVer": "-",
160
- * "unixVer": "-"
161
- * },
162
- * "baidu": {
163
- * "hostVer": "-",
164
- * "uniVer": "-",
165
- * "unixVer": "-"
166
- * },
167
- * "toutiao": {
168
- * "hostVer": "-",
169
- * "uniVer": "-",
170
- * "unixVer": "-"
171
- * },
172
- * "lark": {
173
- * "hostVer": "-",
174
- * "uniVer": "-",
175
- * "unixVer": "-"
176
- * },
177
- * "qq": {
178
- * "hostVer": "-",
179
- * "uniVer": "-",
180
- * "unixVer": "-"
181
- * },
182
- * "kuaishou": {
183
- * "hostVer": "-",
184
- * "uniVer": "-",
185
- * "unixVer": "-"
186
- * },
187
- * "jd": {
188
- * "hostVer": "-",
189
- * "uniVer": "-",
190
- * "unixVer": "-"
191
- * }
192
- * }
193
- * }
194
- */
642
+ * @uniPlatform {
643
+ * "app": {
644
+ * "android": {
645
+ * "osVer": "5.0",
646
+ * "uniVer": "x",
647
+ * "unixVer": "4.81"
648
+ * },
649
+ * "ios": {
650
+ * "osVer": "12.0",
651
+ * "uniVer": "x",
652
+ * "unixVer": "4.81"
653
+ * },
654
+ * "harmony": {
655
+ * "osVer": "5.0.0",
656
+ * "uniVer": "x",
657
+ * "unixVer": "x"
658
+ * }
659
+ * },
660
+ * "web": {
661
+ * "uniVer": "x",
662
+ * "unixVer": "x"
663
+ * },
664
+ * "mp": {
665
+ * "weixin": {
666
+ * "hostVer": "1.9.6",
667
+ * "uniVer": "",
668
+ * "unixVer": "x"
669
+ * },
670
+ * "alipay": {
671
+ * "hostVer": "1.10.0",
672
+ * "uniVer": "",
673
+ * "unixVer": "x"
674
+ * },
675
+ * "baidu": {
676
+ * "hostVer": "",
677
+ * "uniVer": "",
678
+ * "unixVer": "x"
679
+ * },
680
+ * "toutiao": {
681
+ * "hostVer": "",
682
+ * "uniVer": "",
683
+ * "unixVer": "x"
684
+ * },
685
+ * "lark": {
686
+ * "hostVer": "√",
687
+ * "uniVer": "√",
688
+ * "unixVer": "x"
689
+ * },
690
+ * "qq": {
691
+ * "hostVer": "√",
692
+ * "uniVer": "√",
693
+ * "unixVer": "x"
694
+ * },
695
+ * "kuaishou": {
696
+ * "hostVer": "√",
697
+ * "uniVer": "√",
698
+ * "unixVer": "x"
699
+ * },
700
+ * "jd": {
701
+ * "hostVer": "√",
702
+ * "uniVer": "√",
703
+ * "unixVer": "x"
704
+ * }
705
+ * }
706
+ * }
707
+ */
195
708
  pause(options?: LivePlayerOptions) : void
196
709
  /**
197
710
  * 停止
198
- * @uniPlatform {
199
- * "mp": {
200
- * "weixin": {
201
- * "hostVer": "",
202
- * "uniVer": "",
203
- * "unixVer": "4.41"
204
- * },
205
- * "alipay": {
206
- * "hostVer": "-",
207
- * "uniVer": "-",
208
- * "unixVer": "-"
209
- * },
210
- * "baidu": {
211
- * "hostVer": "-",
212
- * "uniVer": "-",
213
- * "unixVer": "-"
214
- * },
215
- * "toutiao": {
216
- * "hostVer": "-",
217
- * "uniVer": "-",
218
- * "unixVer": "-"
219
- * },
220
- * "lark": {
221
- * "hostVer": "-",
222
- * "uniVer": "-",
223
- * "unixVer": "-"
224
- * },
225
- * "qq": {
226
- * "hostVer": "-",
227
- * "uniVer": "-",
228
- * "unixVer": "-"
229
- * },
230
- * "kuaishou": {
231
- * "hostVer": "-",
232
- * "uniVer": "-",
233
- * "unixVer": "-"
234
- * },
235
- * "jd": {
236
- * "hostVer": "-",
237
- * "uniVer": "-",
238
- * "unixVer": "-"
239
- * }
240
- * }
241
- * }
242
- */
711
+ * @uniPlatform {
712
+ * "app": {
713
+ * "android": {
714
+ * "osVer": "5.0",
715
+ * "uniVer": "x",
716
+ * "unixVer": "4.81"
717
+ * },
718
+ * "ios": {
719
+ * "osVer": "12.0",
720
+ * "uniVer": "x",
721
+ * "unixVer": "4.81"
722
+ * },
723
+ * "harmony": {
724
+ * "osVer": "5.0.0",
725
+ * "uniVer": "x",
726
+ * "unixVer": "x"
727
+ * }
728
+ * },
729
+ * "web": {
730
+ * "uniVer": "x",
731
+ * "unixVer": "x"
732
+ * },
733
+ * "mp": {
734
+ * "weixin": {
735
+ * "hostVer": "1.9.6",
736
+ * "uniVer": "",
737
+ * "unixVer": "x"
738
+ * },
739
+ * "alipay": {
740
+ * "hostVer": "1.10.0",
741
+ * "uniVer": "",
742
+ * "unixVer": "x"
743
+ * },
744
+ * "baidu": {
745
+ * "hostVer": "",
746
+ * "uniVer": "",
747
+ * "unixVer": "x"
748
+ * },
749
+ * "toutiao": {
750
+ * "hostVer": "",
751
+ * "uniVer": "",
752
+ * "unixVer": "x"
753
+ * },
754
+ * "lark": {
755
+ * "hostVer": "√",
756
+ * "uniVer": "√",
757
+ * "unixVer": "x"
758
+ * },
759
+ * "qq": {
760
+ * "hostVer": "√",
761
+ * "uniVer": "√",
762
+ * "unixVer": "x"
763
+ * },
764
+ * "kuaishou": {
765
+ * "hostVer": "√",
766
+ * "uniVer": "√",
767
+ * "unixVer": "x"
768
+ * },
769
+ * "jd": {
770
+ * "hostVer": "√",
771
+ * "uniVer": "√",
772
+ * "unixVer": "x"
773
+ * }
774
+ * }
775
+ * }
776
+ */
243
777
  stop(options?: LivePlayerOptions) : void
244
778
  /**
245
779
  * 恢复
246
- * @uniPlatform {
247
- * "mp": {
248
- * "weixin": {
249
- * "hostVer": "",
250
- * "uniVer": "",
251
- * "unixVer": "4.41"
252
- * },
253
- * "alipay": {
254
- * "hostVer": "-",
255
- * "uniVer": "-",
256
- * "unixVer": "-"
257
- * },
258
- * "baidu": {
259
- * "hostVer": "-",
260
- * "uniVer": "-",
261
- * "unixVer": "-"
262
- * },
263
- * "toutiao": {
264
- * "hostVer": "-",
265
- * "uniVer": "-",
266
- * "unixVer": "-"
267
- * },
268
- * "lark": {
269
- * "hostVer": "-",
270
- * "uniVer": "-",
271
- * "unixVer": "-"
272
- * },
273
- * "qq": {
274
- * "hostVer": "-",
275
- * "uniVer": "-",
276
- * "unixVer": "-"
277
- * },
278
- * "kuaishou": {
279
- * "hostVer": "-",
280
- * "uniVer": "-",
281
- * "unixVer": "-"
282
- * },
283
- * "jd": {
284
- * "hostVer": "-",
285
- * "uniVer": "-",
286
- * "unixVer": "-"
287
- * }
288
- * }
289
- * }
290
- */
780
+ * @uniPlatform {
781
+ * "app": {
782
+ * "android": {
783
+ * "osVer": "5.0",
784
+ * "uniVer": "x",
785
+ * "unixVer": "4.81"
786
+ * },
787
+ * "ios": {
788
+ * "osVer": "12.0",
789
+ * "uniVer": "x",
790
+ * "unixVer": "4.81"
791
+ * },
792
+ * "harmony": {
793
+ * "osVer": "5.0.0",
794
+ * "uniVer": "x",
795
+ * "unixVer": "x"
796
+ * }
797
+ * },
798
+ * "web": {
799
+ * "uniVer": "x",
800
+ * "unixVer": "x"
801
+ * },
802
+ * "mp": {
803
+ * "weixin": {
804
+ * "hostVer": "1.9.6",
805
+ * "uniVer": "",
806
+ * "unixVer": "x"
807
+ * },
808
+ * "alipay": {
809
+ * "hostVer": "1.10.0",
810
+ * "uniVer": "",
811
+ * "unixVer": "x"
812
+ * },
813
+ * "baidu": {
814
+ * "hostVer": "",
815
+ * "uniVer": "",
816
+ * "unixVer": "x"
817
+ * },
818
+ * "toutiao": {
819
+ * "hostVer": "",
820
+ * "uniVer": "",
821
+ * "unixVer": "x"
822
+ * },
823
+ * "lark": {
824
+ * "hostVer": "√",
825
+ * "uniVer": "√",
826
+ * "unixVer": "x"
827
+ * },
828
+ * "qq": {
829
+ * "hostVer": "√",
830
+ * "uniVer": "√",
831
+ * "unixVer": "x"
832
+ * },
833
+ * "kuaishou": {
834
+ * "hostVer": "√",
835
+ * "uniVer": "√",
836
+ * "unixVer": "x"
837
+ * },
838
+ * "jd": {
839
+ * "hostVer": "√",
840
+ * "uniVer": "√",
841
+ * "unixVer": "x"
842
+ * }
843
+ * }
844
+ * }
845
+ */
291
846
  resume(options?: LivePlayerOptions) : void
292
847
  /**
293
848
  * 静音
294
- * @uniPlatform {
295
- * "mp": {
296
- * "weixin": {
297
- * "hostVer": "",
298
- * "uniVer": "",
299
- * "unixVer": "4.41"
300
- * },
301
- * "alipay": {
302
- * "hostVer": "-",
303
- * "uniVer": "-",
304
- * "unixVer": "-"
305
- * },
306
- * "baidu": {
307
- * "hostVer": "-",
308
- * "uniVer": "-",
309
- * "unixVer": "-"
310
- * },
311
- * "toutiao": {
312
- * "hostVer": "-",
313
- * "uniVer": "-",
314
- * "unixVer": "-"
315
- * },
316
- * "lark": {
317
- * "hostVer": "-",
318
- * "uniVer": "-",
319
- * "unixVer": "-"
320
- * },
321
- * "qq": {
322
- * "hostVer": "-",
323
- * "uniVer": "-",
324
- * "unixVer": "-"
325
- * },
326
- * "kuaishou": {
327
- * "hostVer": "-",
328
- * "uniVer": "-",
329
- * "unixVer": "-"
330
- * },
331
- * "jd": {
332
- * "hostVer": "-",
333
- * "uniVer": "-",
334
- * "unixVer": "-"
335
- * }
336
- * }
337
- * }
338
- */
849
+ * @uniPlatform {
850
+ * "app": {
851
+ * "android": {
852
+ * "osVer": "5.0",
853
+ * "uniVer": "x",
854
+ * "unixVer": "4.81"
855
+ * },
856
+ * "ios": {
857
+ * "osVer": "12.0",
858
+ * "uniVer": "x",
859
+ * "unixVer": "4.81"
860
+ * },
861
+ * "harmony": {
862
+ * "osVer": "5.0.0",
863
+ * "uniVer": "x",
864
+ * "unixVer": "x"
865
+ * }
866
+ * },
867
+ * "web": {
868
+ * "uniVer": "x",
869
+ * "unixVer": "x"
870
+ * },
871
+ * "mp": {
872
+ * "weixin": {
873
+ * "hostVer": "1.9.6",
874
+ * "uniVer": "",
875
+ * "unixVer": "x"
876
+ * },
877
+ * "alipay": {
878
+ * "hostVer": "1.10.0",
879
+ * "uniVer": "",
880
+ * "unixVer": "x"
881
+ * },
882
+ * "baidu": {
883
+ * "hostVer": "",
884
+ * "uniVer": "",
885
+ * "unixVer": "x"
886
+ * },
887
+ * "toutiao": {
888
+ * "hostVer": "",
889
+ * "uniVer": "",
890
+ * "unixVer": "x"
891
+ * },
892
+ * "lark": {
893
+ * "hostVer": "√",
894
+ * "uniVer": "√",
895
+ * "unixVer": "x"
896
+ * },
897
+ * "qq": {
898
+ * "hostVer": "√",
899
+ * "uniVer": "√",
900
+ * "unixVer": "x"
901
+ * },
902
+ * "kuaishou": {
903
+ * "hostVer": "√",
904
+ * "uniVer": "√",
905
+ * "unixVer": "x"
906
+ * },
907
+ * "jd": {
908
+ * "hostVer": "√",
909
+ * "uniVer": "√",
910
+ * "unixVer": "x"
911
+ * }
912
+ * }
913
+ * }
914
+ */
339
915
  mute(options?: LivePlayerOptions): void
340
916
  /**
341
917
  * 全屏
342
- * @uniPlatform {
343
- * "mp": {
344
- * "weixin": {
345
- * "hostVer": "",
346
- * "uniVer": "",
347
- * "unixVer": "4.41"
348
- * },
349
- * "alipay": {
350
- * "hostVer": "-",
351
- * "uniVer": "-",
352
- * "unixVer": "-"
353
- * },
354
- * "baidu": {
355
- * "hostVer": "-",
356
- * "uniVer": "-",
357
- * "unixVer": "-"
358
- * },
359
- * "toutiao": {
360
- * "hostVer": "-",
361
- * "uniVer": "-",
362
- * "unixVer": "-"
363
- * },
364
- * "lark": {
365
- * "hostVer": "-",
366
- * "uniVer": "-",
367
- * "unixVer": "-"
368
- * },
369
- * "qq": {
370
- * "hostVer": "-",
371
- * "uniVer": "-",
372
- * "unixVer": "-"
373
- * },
374
- * "kuaishou": {
375
- * "hostVer": "-",
376
- * "uniVer": "-",
377
- * "unixVer": "-"
378
- * },
379
- * "jd": {
380
- * "hostVer": "-",
381
- * "uniVer": "-",
382
- * "unixVer": "-"
383
- * }
384
- * }
385
- * }
386
- */
918
+ * @uniPlatform {
919
+ * "app": {
920
+ * "android": {
921
+ * "osVer": "5.0",
922
+ * "uniVer": "x",
923
+ * "unixVer": "4.81"
924
+ * },
925
+ * "ios": {
926
+ * "osVer": "12.0",
927
+ * "uniVer": "x",
928
+ * "unixVer": "4.81"
929
+ * },
930
+ * "harmony": {
931
+ * "osVer": "5.0.0",
932
+ * "uniVer": "x",
933
+ * "unixVer": "x"
934
+ * }
935
+ * },
936
+ * "web": {
937
+ * "uniVer": "x",
938
+ * "unixVer": "x"
939
+ * },
940
+ * "mp": {
941
+ * "weixin": {
942
+ * "hostVer": "1.9.6",
943
+ * "uniVer": "",
944
+ * "unixVer": "x"
945
+ * },
946
+ * "alipay": {
947
+ * "hostVer": "1.10.0",
948
+ * "uniVer": "",
949
+ * "unixVer": "x"
950
+ * },
951
+ * "baidu": {
952
+ * "hostVer": "",
953
+ * "uniVer": "",
954
+ * "unixVer": "x"
955
+ * },
956
+ * "toutiao": {
957
+ * "hostVer": "",
958
+ * "uniVer": "",
959
+ * "unixVer": "x"
960
+ * },
961
+ * "lark": {
962
+ * "hostVer": "√",
963
+ * "uniVer": "√",
964
+ * "unixVer": "x"
965
+ * },
966
+ * "qq": {
967
+ * "hostVer": "√",
968
+ * "uniVer": "√",
969
+ * "unixVer": "x"
970
+ * },
971
+ * "kuaishou": {
972
+ * "hostVer": "√",
973
+ * "uniVer": "√",
974
+ * "unixVer": "x"
975
+ * },
976
+ * "jd": {
977
+ * "hostVer": "√",
978
+ * "uniVer": "√",
979
+ * "unixVer": "x"
980
+ * }
981
+ * }
982
+ * }
983
+ */
387
984
  requestFullScreen(options?: LivePlayerOptions): void
388
985
  /**
389
986
  * 退出全屏
390
- * @uniPlatform {
987
+ * @uniPlatform {
988
+ * "app": {
989
+ * "android": {
990
+ * "osVer": "5.0",
991
+ * "uniVer": "x",
992
+ * "unixVer": "4.81"
993
+ * },
994
+ * "ios": {
995
+ * "osVer": "12.0",
996
+ * "uniVer": "x",
997
+ * "unixVer": "4.81"
998
+ * },
999
+ * "harmony": {
1000
+ * "osVer": "5.0.0",
1001
+ * "uniVer": "x",
1002
+ * "unixVer": "x"
1003
+ * }
1004
+ * },
1005
+ * "web": {
1006
+ * "uniVer": "x",
1007
+ * "unixVer": "x"
1008
+ * },
1009
+ * "mp": {
1010
+ * "weixin": {
1011
+ * "hostVer": "1.9.6",
1012
+ * "uniVer": "√",
1013
+ * "unixVer": "x"
1014
+ * },
1015
+ * "alipay": {
1016
+ * "hostVer": "1.10.0",
1017
+ * "uniVer": "√",
1018
+ * "unixVer": "x"
1019
+ * },
1020
+ * "baidu": {
1021
+ * "hostVer": "√",
1022
+ * "uniVer": "√",
1023
+ * "unixVer": "x"
1024
+ * },
1025
+ * "toutiao": {
1026
+ * "hostVer": "√",
1027
+ * "uniVer": "√",
1028
+ * "unixVer": "x"
1029
+ * },
1030
+ * "lark": {
1031
+ * "hostVer": "√",
1032
+ * "uniVer": "√",
1033
+ * "unixVer": "x"
1034
+ * },
1035
+ * "qq": {
1036
+ * "hostVer": "√",
1037
+ * "uniVer": "√",
1038
+ * "unixVer": "x"
1039
+ * },
1040
+ * "kuaishou": {
1041
+ * "hostVer": "√",
1042
+ * "uniVer": "√",
1043
+ * "unixVer": "x"
1044
+ * },
1045
+ * "jd": {
1046
+ * "hostVer": "√",
1047
+ * "uniVer": "√",
1048
+ * "unixVer": "x"
1049
+ * }
1050
+ * }
1051
+ * }
1052
+ */
1053
+ exitFullScreen(options?: LivePlayerOptions): void
1054
+ }
1055
+
1056
+ /**
1057
+ * 创建 liveplayer context
1058
+ */
1059
+ export type CreateLivePlayerContext = (livePlayerId : string, component ?: ComponentPublicInstance | null) => LivePlayerContext | null
1060
+
1061
+ export interface Uni {
1062
+ /**
1063
+ * 创建并返回 live-player 组件上下文 LivePlayerContext 对象
1064
+ * @uniPlatform {
1065
+ * "app": {
1066
+ * "android": {
1067
+ * "osVer": "5.0",
1068
+ * "uniVer": "x",
1069
+ * "unixVer": "4.81"
1070
+ * },
1071
+ * "ios": {
1072
+ * "osVer": "12.0",
1073
+ * "uniVer": "x",
1074
+ * "unixVer": "4.81"
1075
+ * },
1076
+ * "harmony": {
1077
+ * "osVer": "5.0.0",
1078
+ * "uniVer": "x",
1079
+ * "unixVer": "x"
1080
+ * }
1081
+ * },
1082
+ * "web": {
1083
+ * "uniVer": "x",
1084
+ * "unixVer": "x"
1085
+ * },
391
1086
  * "mp": {
392
1087
  * "weixin": {
393
- * "hostVer": "",
1088
+ * "hostVer": "1.9.6",
394
1089
  * "uniVer": "√",
395
- * "unixVer": "4.41"
1090
+ * "unixVer": "x"
396
1091
  * },
397
1092
  * "alipay": {
398
- * "hostVer": "-",
399
- * "uniVer": "-",
400
- * "unixVer": "-"
1093
+ * "hostVer": "1.10.0",
1094
+ * "uniVer": "",
1095
+ * "unixVer": "x"
401
1096
  * },
402
1097
  * "baidu": {
403
- * "hostVer": "-",
404
- * "uniVer": "-",
405
- * "unixVer": "-"
1098
+ * "hostVer": "",
1099
+ * "uniVer": "",
1100
+ * "unixVer": "x"
406
1101
  * },
407
1102
  * "toutiao": {
408
- * "hostVer": "-",
409
- * "uniVer": "-",
410
- * "unixVer": "-"
1103
+ * "hostVer": "",
1104
+ * "uniVer": "",
1105
+ * "unixVer": "x"
411
1106
  * },
412
1107
  * "lark": {
413
- * "hostVer": "-",
414
- * "uniVer": "-",
415
- * "unixVer": "-"
1108
+ * "hostVer": "",
1109
+ * "uniVer": "",
1110
+ * "unixVer": "x"
416
1111
  * },
417
1112
  * "qq": {
418
- * "hostVer": "-",
419
- * "uniVer": "-",
420
- * "unixVer": "-"
1113
+ * "hostVer": "",
1114
+ * "uniVer": "",
1115
+ * "unixVer": "x"
421
1116
  * },
422
1117
  * "kuaishou": {
423
- * "hostVer": "-",
424
- * "uniVer": "-",
425
- * "unixVer": "-"
1118
+ * "hostVer": "",
1119
+ * "uniVer": "",
1120
+ * "unixVer": "x"
426
1121
  * },
427
1122
  * "jd": {
428
- * "hostVer": "-",
429
- * "uniVer": "-",
430
- * "unixVer": "-"
1123
+ * "hostVer": "",
1124
+ * "uniVer": "",
1125
+ * "unixVer": "x"
431
1126
  * }
432
1127
  * }
433
1128
  * }
1129
+ * @uniVueVersion 2,3
1130
+ * @return {LivePlayerContext} live-player 组件上下文对象
1131
+ *
1132
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/media/live-player-context.html#createLivePlayerContext
1133
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/create-live-player-context.html#createLivePlayerContext
1134
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/create-live-player-context.html#createLivePlayerContext
1135
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePlayerContext.html
434
1136
  */
435
- exitFullScreen(options?: LivePlayerOptions): void
436
- }
437
-
438
- /**
439
- * 创建 liveplayer context
440
- */
441
- export type CreateLivePlayerContext = (livePlayerId : string, component ?: ComponentPublicInstance | null) => LivePlayerContext | null
442
-
443
- export interface Uni {
444
1137
  createLivePlayerContext : (livePlayerId : string, component ?: ComponentPublicInstance | null) => LivePlayerContext | null;
445
1138
  }