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