@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,895 +1,1891 @@
|
|
|
1
1
|
export type MediaOrientation =
|
|
2
|
-
| 'up'
|
|
3
|
-
| 'down'
|
|
4
|
-
| 'left'
|
|
5
|
-
| 'right'
|
|
6
|
-
| 'up-mirrored'
|
|
7
|
-
| 'down-mirrored'
|
|
8
|
-
| 'left-mirrored'
|
|
9
|
-
| 'right-mirrored'
|
|
2
|
+
| 'up'
|
|
3
|
+
| 'down'
|
|
4
|
+
| 'left'
|
|
5
|
+
| 'right'
|
|
6
|
+
| 'up-mirrored'
|
|
7
|
+
| 'down-mirrored'
|
|
8
|
+
| 'left-mirrored'
|
|
9
|
+
| 'right-mirrored'
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* 错误码
|
|
13
13
|
*/
|
|
14
14
|
export type MediaErrorCode =
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
1101001 |
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
1101002 |
|
|
23
|
-
/**
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
1101003 |
|
|
27
|
-
/**
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
1101004 |
|
|
31
|
-
/**
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
1101005 |
|
|
35
|
-
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
1101006 |
|
|
39
|
-
/**
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
1101007 |
|
|
43
|
-
/**
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
1101008 |
|
|
47
|
-
/**
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
1101009 |
|
|
51
|
-
/**
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
1101010;
|
|
15
|
+
/**
|
|
16
|
+
* 用户取消
|
|
17
|
+
*/
|
|
18
|
+
1101001 |
|
|
19
|
+
/**
|
|
20
|
+
* urls至少包含一张图片地址
|
|
21
|
+
*/
|
|
22
|
+
1101002 |
|
|
23
|
+
/**
|
|
24
|
+
* 文件不存在
|
|
25
|
+
*/
|
|
26
|
+
1101003 |
|
|
27
|
+
/**
|
|
28
|
+
* 图片加载失败
|
|
29
|
+
*/
|
|
30
|
+
1101004 |
|
|
31
|
+
/**
|
|
32
|
+
* 未获取权限
|
|
33
|
+
*/
|
|
34
|
+
1101005 |
|
|
35
|
+
/**
|
|
36
|
+
* 图片或视频保存失败
|
|
37
|
+
*/
|
|
38
|
+
1101006 |
|
|
39
|
+
/**
|
|
40
|
+
* 图片裁剪失败
|
|
41
|
+
*/
|
|
42
|
+
1101007 |
|
|
43
|
+
/**
|
|
44
|
+
* 拍照或录像失败
|
|
45
|
+
*/
|
|
46
|
+
1101008 |
|
|
47
|
+
/**
|
|
48
|
+
* 图片压缩失败
|
|
49
|
+
*/
|
|
50
|
+
1101009 |
|
|
51
|
+
/**
|
|
52
|
+
* 其他错误
|
|
53
|
+
*/
|
|
54
|
+
1101010;
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
57
|
* 图片或视频操作失败的错误回调
|
|
58
58
|
*/
|
|
59
59
|
export interface IMediaError extends IUniError {
|
|
60
|
-
|
|
60
|
+
errCode: MediaErrorCode
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
export type ChooseImageTempFile = {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
64
|
+
/**
|
|
65
|
+
* 本地文件路径
|
|
66
|
+
*/
|
|
67
|
+
path: string,
|
|
68
|
+
/**
|
|
69
|
+
* 本地文件大小,单位:B
|
|
70
|
+
*/
|
|
71
|
+
size: number,
|
|
72
|
+
/**
|
|
73
|
+
* 包含扩展名的文件名称,仅H5支持
|
|
74
|
+
*/
|
|
75
|
+
name?: string | null,
|
|
76
|
+
/**
|
|
77
|
+
* 文件类型,仅H5支持
|
|
78
|
+
*/
|
|
79
|
+
type?: string | null
|
|
80
80
|
}
|
|
81
81
|
export type ChooseImageSuccess = {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
82
|
+
/**
|
|
83
|
+
* 调用API的名称
|
|
84
|
+
*/
|
|
85
|
+
errSubject: string,
|
|
86
|
+
/**
|
|
87
|
+
* 描述信息
|
|
88
|
+
*/
|
|
89
|
+
errMsg: string,
|
|
90
|
+
/**
|
|
91
|
+
* 图片的本地文件路径列表
|
|
92
|
+
* @type string | string []
|
|
93
|
+
*/
|
|
94
|
+
tempFilePaths: Array<string>,
|
|
95
|
+
/**
|
|
96
|
+
* 图片的本地文件列表
|
|
97
|
+
*/
|
|
98
|
+
tempFiles: ChooseImageTempFile[]
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
export type ChooseImageFail = IMediaError;
|
|
102
|
-
export type ChooseImageSuccessCallback = (callback
|
|
103
|
-
export type ChooseImageFailCallback = (callback
|
|
104
|
-
export type ChooseImageCompleteCallback = (callback
|
|
102
|
+
export type ChooseImageSuccessCallback = (callback: ChooseImageSuccess) => void
|
|
103
|
+
export type ChooseImageFailCallback = (callback: ChooseImageFail) => void
|
|
104
|
+
export type ChooseImageCompleteCallback = (callback: any) => void
|
|
105
105
|
|
|
106
106
|
export type ChooseImageCropOptions = {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
107
|
+
/**
|
|
108
|
+
* 裁剪的宽度,单位为px,用于计算裁剪宽高比。
|
|
109
|
+
*/
|
|
110
|
+
width: number;
|
|
111
|
+
/**
|
|
112
|
+
* 裁剪的高度,单位为px,用于计算裁剪宽高比。
|
|
113
|
+
*/
|
|
114
|
+
height: number;
|
|
115
|
+
/**
|
|
116
|
+
* 取值范围为1-100,数值越小,质量越低(仅对jpg格式有效)。默认值为80。
|
|
117
|
+
* @defaultValue 80
|
|
118
|
+
*/
|
|
119
|
+
quality?: (number) | null;
|
|
120
|
+
/**
|
|
121
|
+
* 是否将width和height作为裁剪保存图片真实的像素值。默认值为true。注:设置为false时在裁剪编辑界面显示图片的像素值,设置为true时不显示。
|
|
122
|
+
* @type boolean
|
|
123
|
+
*/
|
|
124
|
+
resize?: (boolean) | null;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
+
export type ChooseImagePageOrientation =
|
|
128
|
+
/**
|
|
129
|
+
* 自动
|
|
130
|
+
*/
|
|
131
|
+
"auto" |
|
|
132
|
+
/**
|
|
133
|
+
* 竖屏显示
|
|
134
|
+
*/
|
|
135
|
+
"portrait" |
|
|
136
|
+
/**
|
|
137
|
+
* 横屏显示
|
|
138
|
+
*/
|
|
139
|
+
"landscape"
|
|
140
|
+
|
|
141
|
+
export type ChooseImageAlbumMode =
|
|
142
|
+
/**
|
|
143
|
+
* 自定义媒体选择器
|
|
144
|
+
*/
|
|
145
|
+
"custom" |
|
|
146
|
+
/**
|
|
147
|
+
* 系统媒体选择器
|
|
148
|
+
*/
|
|
149
|
+
"system"
|
|
150
|
+
|
|
127
151
|
export type ChooseImageOptions = {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
152
|
+
/**
|
|
153
|
+
* 屏幕方向。默认为page.json中的pageOrientation。
|
|
154
|
+
* @uniPlatform {
|
|
155
|
+
* "app": {
|
|
156
|
+
* "android": {
|
|
157
|
+
* "osVer": "5.0",
|
|
158
|
+
* "uniVer": "4.33",
|
|
159
|
+
* "unixVer": "4.33"
|
|
160
|
+
* },
|
|
161
|
+
* "ios": {
|
|
162
|
+
* "osVer": "10.0",
|
|
163
|
+
* "uniVer": "4.33",
|
|
164
|
+
* "unixVer": "4.33"
|
|
165
|
+
* },
|
|
138
166
|
* "harmony": {
|
|
139
167
|
* "osVer": "3.0",
|
|
140
|
-
* "uniVer": "4.23",
|
|
141
|
-
* "unixVer": "x"
|
|
142
|
-
* }
|
|
143
|
-
* },
|
|
144
|
-
* "web": {
|
|
145
|
-
* "uniVer": "x",
|
|
146
|
-
* "unixVer": "x"
|
|
147
|
-
* }
|
|
148
|
-
* }
|
|
149
|
-
*/
|
|
150
|
-
sizeType ?: (string[]) | null,
|
|
151
|
-
/**
|
|
152
|
-
* album 从相册选图,camera 使用相机,默认二者都有
|
|
153
|
-
* @defaultValue ['album','camera']
|
|
154
|
-
*/
|
|
155
|
-
sourceType ?: (string[]) | null,
|
|
156
|
-
/**
|
|
157
|
-
* 根据文件拓展名过滤,每一项都不能是空字符串。默认不过滤。仅H5支持
|
|
158
|
-
* @uniPlatform {
|
|
159
|
-
* "app": {
|
|
160
|
-
* "android": {
|
|
161
|
-
* "osVer": "5.0",
|
|
162
|
-
* "uniVer": "√",
|
|
163
|
-
* "unixVer": "x"
|
|
164
|
-
* },
|
|
165
|
-
* "harmony": {
|
|
166
|
-
* "osVer": "x",
|
|
167
|
-
* "uniVer": "x",
|
|
168
|
-
* "unixVer": "x"
|
|
169
|
-
* }
|
|
170
|
-
* },
|
|
171
|
-
* "web": {
|
|
172
|
-
* "uniVer": "2.9.9",
|
|
173
|
-
* "unixVer": "4.0"
|
|
174
|
-
* }
|
|
175
|
-
* }
|
|
176
|
-
*/
|
|
177
|
-
extension ?: (string[]) | null,
|
|
178
|
-
/**
|
|
179
|
-
* 图像裁剪参数,设置后 sizeType 失效。
|
|
180
|
-
* @uniPlatform {
|
|
181
|
-
* "app":{
|
|
182
|
-
* "harmony": {
|
|
183
|
-
* "osVer": "x",
|
|
184
168
|
* "uniVer": "x",
|
|
185
169
|
* "unixVer": "x"
|
|
186
170
|
* }
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
171
|
+
* },
|
|
172
|
+
* "mp": {
|
|
173
|
+
* "weixin": {
|
|
174
|
+
* "hostVer": "√",
|
|
175
|
+
* "uniVer": "√",
|
|
176
|
+
* "unixVer": "4.41"
|
|
177
|
+
* },
|
|
178
|
+
* "alipay": {
|
|
179
|
+
* "hostVer": "√",
|
|
180
|
+
* "uniVer": "√",
|
|
181
|
+
* "unixVer": "x"
|
|
182
|
+
* },
|
|
183
|
+
* "baidu": {
|
|
184
|
+
* "hostVer": "√",
|
|
185
|
+
* "uniVer": "√",
|
|
186
|
+
* "unixVer": "x"
|
|
187
|
+
* },
|
|
188
|
+
* "toutiao": {
|
|
189
|
+
* "hostVer": "√",
|
|
190
|
+
* "uniVer": "√",
|
|
191
|
+
* "unixVer": "x"
|
|
192
|
+
* },
|
|
193
|
+
* "lark": {
|
|
194
|
+
* "hostVer": "√",
|
|
195
|
+
* "uniVer": "√",
|
|
196
|
+
* "unixVer": "x"
|
|
197
|
+
* },
|
|
198
|
+
* "qq": {
|
|
199
|
+
* "hostVer": "√",
|
|
200
|
+
* "uniVer": "√",
|
|
201
|
+
* "unixVer": "x"
|
|
202
|
+
* },
|
|
203
|
+
* "kuaishou": {
|
|
204
|
+
* "hostVer": "√",
|
|
205
|
+
* "uniVer": "√",
|
|
206
|
+
* "unixVer": "x"
|
|
207
|
+
* },
|
|
208
|
+
* "jd": {
|
|
209
|
+
* "hostVer": "√",
|
|
210
|
+
* "uniVer": "√",
|
|
211
|
+
* "unixVer": "x"
|
|
212
|
+
* }
|
|
213
|
+
* },
|
|
214
|
+
* "web": {
|
|
215
|
+
* "uniVer": "x",
|
|
216
|
+
* "unixVer": "x"
|
|
217
|
+
* }
|
|
218
|
+
* }
|
|
219
|
+
*/
|
|
220
|
+
pageOrientation?: ChooseImagePageOrientation | null,
|
|
221
|
+
/**
|
|
222
|
+
* 图片选择模式
|
|
223
|
+
* @default "custom"
|
|
224
|
+
* @uniPlatform {
|
|
225
|
+
* "app": {
|
|
226
|
+
* "android": {
|
|
227
|
+
* "osVer": "5.0",
|
|
228
|
+
* "uniVer": "4.33",
|
|
229
|
+
* "unixVer": "4.33"
|
|
230
|
+
* },
|
|
231
|
+
* "ios": {
|
|
232
|
+
* "osVer": "10.0",
|
|
233
|
+
* "uniVer": "x",
|
|
234
|
+
* "unixVer": "x"
|
|
235
|
+
* },
|
|
236
|
+
* "harmony": {
|
|
237
|
+
* "osVer": "3.0",
|
|
238
|
+
* "uniVer": "x",
|
|
239
|
+
* "unixVer": "x"
|
|
240
|
+
* }
|
|
241
|
+
* },
|
|
242
|
+
* "web": {
|
|
243
|
+
* "uniVer": "x",
|
|
244
|
+
* "unixVer": "x"
|
|
245
|
+
* }
|
|
246
|
+
* }
|
|
247
|
+
*/
|
|
248
|
+
albumMode?: ChooseImageAlbumMode | null,
|
|
249
|
+
/**
|
|
250
|
+
* 最多可以选择的图片张数,app端不限制,微信小程序最多可支持20个。
|
|
251
|
+
* @defaultValue 9
|
|
252
|
+
*/
|
|
253
|
+
count?: (number) | null,
|
|
254
|
+
/**
|
|
255
|
+
* original 原图,compressed 压缩图,默认二者都有
|
|
256
|
+
* @defaultValue ['original','compressed']
|
|
257
|
+
* @uniPlatform {
|
|
258
|
+
* "app":{
|
|
259
|
+
* "android": {
|
|
260
|
+
* "osVer": "5.0",
|
|
261
|
+
* "uniVer": "√",
|
|
262
|
+
* "unixVer": "3.9"
|
|
263
|
+
* },
|
|
264
|
+
* "ios": {
|
|
265
|
+
* "osVer": "10.0",
|
|
266
|
+
* "uniVer": "√",
|
|
267
|
+
* "unixVer": "4.11"
|
|
268
|
+
* },
|
|
269
|
+
* "harmony": {
|
|
270
|
+
* "osVer": "3.0",
|
|
271
|
+
* "uniVer": "4.23",
|
|
272
|
+
* "unixVer": "x"
|
|
273
|
+
* }
|
|
274
|
+
* },
|
|
275
|
+
* "mp": {
|
|
276
|
+
* "weixin": {
|
|
277
|
+
* "hostVer": "√",
|
|
278
|
+
* "uniVer": "√",
|
|
279
|
+
* "unixVer": "4.41"
|
|
280
|
+
* },
|
|
281
|
+
* "alipay": {
|
|
282
|
+
* "hostVer": "√",
|
|
283
|
+
* "uniVer": "√",
|
|
284
|
+
* "unixVer": "x"
|
|
285
|
+
* },
|
|
286
|
+
* "baidu": {
|
|
287
|
+
* "hostVer": "√",
|
|
288
|
+
* "uniVer": "√",
|
|
289
|
+
* "unixVer": "x"
|
|
290
|
+
* },
|
|
291
|
+
* "toutiao": {
|
|
292
|
+
* "hostVer": "√",
|
|
293
|
+
* "uniVer": "√",
|
|
294
|
+
* "unixVer": "x"
|
|
295
|
+
* },
|
|
296
|
+
* "lark": {
|
|
297
|
+
* "hostVer": "√",
|
|
298
|
+
* "uniVer": "√",
|
|
299
|
+
* "unixVer": "x"
|
|
300
|
+
* },
|
|
301
|
+
* "qq": {
|
|
302
|
+
* "hostVer": "√",
|
|
303
|
+
* "uniVer": "√",
|
|
304
|
+
* "unixVer": "x"
|
|
305
|
+
* },
|
|
306
|
+
* "kuaishou": {
|
|
307
|
+
* "hostVer": "√",
|
|
308
|
+
* "uniVer": "√",
|
|
309
|
+
* "unixVer": "x"
|
|
310
|
+
* },
|
|
311
|
+
* "jd": {
|
|
312
|
+
* "hostVer": "√",
|
|
313
|
+
* "uniVer": "√",
|
|
314
|
+
* "unixVer": "x"
|
|
315
|
+
* }
|
|
316
|
+
* },
|
|
317
|
+
* "web": {
|
|
318
|
+
* "uniVer": "x",
|
|
319
|
+
* "unixVer": "x"
|
|
320
|
+
* }
|
|
321
|
+
* }
|
|
322
|
+
*/
|
|
323
|
+
sizeType?: (string[]) | null,
|
|
324
|
+
/**
|
|
325
|
+
* album 从相册选图,camera 使用相机,默认二者都有
|
|
326
|
+
* @defaultValue ['album','camera']
|
|
327
|
+
*/
|
|
328
|
+
sourceType?: (string[]) | null,
|
|
329
|
+
/**
|
|
330
|
+
* 根据文件拓展名过滤,每一项都不能是空字符串。默认不过滤。仅H5支持
|
|
331
|
+
* @uniPlatform {
|
|
332
|
+
* "app": {
|
|
333
|
+
* "android": {
|
|
334
|
+
* "osVer": "5.0",
|
|
335
|
+
* "uniVer": "x",
|
|
336
|
+
* "unixVer": "x"
|
|
337
|
+
* },
|
|
338
|
+
* "ios": {
|
|
339
|
+
* "osVer": "10.0",
|
|
340
|
+
* "uniVer": "x",
|
|
341
|
+
* "unixVer": "x"
|
|
342
|
+
* },
|
|
343
|
+
* "harmony": {
|
|
344
|
+
* "osVer": "x",
|
|
345
|
+
* "uniVer": "x",
|
|
346
|
+
* "unixVer": "x"
|
|
347
|
+
* }
|
|
348
|
+
* },
|
|
349
|
+
* "mp": {
|
|
350
|
+
* "weixin": {
|
|
351
|
+
* "hostVer": "√",
|
|
352
|
+
* "uniVer": "√",
|
|
353
|
+
* "unixVer": "4.41"
|
|
354
|
+
* },
|
|
355
|
+
* "alipay": {
|
|
356
|
+
* "hostVer": "√",
|
|
357
|
+
* "uniVer": "√",
|
|
358
|
+
* "unixVer": "x"
|
|
359
|
+
* },
|
|
360
|
+
* "baidu": {
|
|
361
|
+
* "hostVer": "√",
|
|
362
|
+
* "uniVer": "√",
|
|
363
|
+
* "unixVer": "x"
|
|
364
|
+
* },
|
|
365
|
+
* "toutiao": {
|
|
366
|
+
* "hostVer": "√",
|
|
367
|
+
* "uniVer": "√",
|
|
368
|
+
* "unixVer": "x"
|
|
369
|
+
* },
|
|
370
|
+
* "lark": {
|
|
371
|
+
* "hostVer": "√",
|
|
372
|
+
* "uniVer": "√",
|
|
373
|
+
* "unixVer": "x"
|
|
374
|
+
* },
|
|
375
|
+
* "qq": {
|
|
376
|
+
* "hostVer": "√",
|
|
377
|
+
* "uniVer": "√",
|
|
378
|
+
* "unixVer": "x"
|
|
379
|
+
* },
|
|
380
|
+
* "kuaishou": {
|
|
381
|
+
* "hostVer": "√",
|
|
382
|
+
* "uniVer": "√",
|
|
383
|
+
* "unixVer": "x"
|
|
384
|
+
* },
|
|
385
|
+
* "jd": {
|
|
386
|
+
* "hostVer": "√",
|
|
387
|
+
* "uniVer": "√",
|
|
388
|
+
* "unixVer": "x"
|
|
389
|
+
* }
|
|
390
|
+
* },
|
|
391
|
+
* "web": {
|
|
392
|
+
* "uniVer": "2.9.9",
|
|
393
|
+
* "unixVer": "4.0"
|
|
394
|
+
* }
|
|
395
|
+
* }
|
|
396
|
+
*/
|
|
397
|
+
extension?: (string[]) | null,
|
|
398
|
+
/**
|
|
399
|
+
* 图像裁剪参数,设置后 sizeType 失效。
|
|
400
|
+
* @uniPlatform {
|
|
401
|
+
* "app":{
|
|
402
|
+
* "android": {
|
|
403
|
+
* "osVer": "5.0",
|
|
404
|
+
* "uniVer": "√",
|
|
405
|
+
* "unixVer": "3.9"
|
|
406
|
+
* },
|
|
407
|
+
* "ios": {
|
|
408
|
+
* "osVer": "10.0",
|
|
409
|
+
* "uniVer": "√",
|
|
410
|
+
* "unixVer": "4.11"
|
|
411
|
+
* },
|
|
412
|
+
* "harmony": {
|
|
413
|
+
* "osVer": "x",
|
|
414
|
+
* "uniVer": "x",
|
|
415
|
+
* "unixVer": "x"
|
|
416
|
+
* }
|
|
417
|
+
* },
|
|
418
|
+
* "web": {
|
|
419
|
+
* "uniVer": "x",
|
|
420
|
+
* "unixVer": "x"
|
|
421
|
+
* }
|
|
422
|
+
* }
|
|
423
|
+
*/
|
|
424
|
+
crop?: (ChooseImageCropOptions) | null,
|
|
425
|
+
/**
|
|
426
|
+
* 成功则返回图片的本地文件路径列表 tempFilePaths
|
|
427
|
+
*/
|
|
428
|
+
success?: (ChooseImageSuccessCallback) | null,
|
|
429
|
+
/**
|
|
430
|
+
* 接口调用失败的回调函数
|
|
431
|
+
*/
|
|
432
|
+
fail?: (ChooseImageFailCallback) | null,
|
|
433
|
+
/**
|
|
434
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
435
|
+
*/
|
|
436
|
+
complete?: (ChooseImageCompleteCallback) | null
|
|
207
437
|
}
|
|
208
438
|
|
|
209
|
-
export type ChooseImage = (options
|
|
439
|
+
export type ChooseImage = (options: ChooseImageOptions) => void
|
|
210
440
|
|
|
211
441
|
export type PreviewImageSuccess = {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
442
|
+
/**
|
|
443
|
+
* 调用API的名称
|
|
444
|
+
*/
|
|
445
|
+
errSubject: string,
|
|
446
|
+
/**
|
|
447
|
+
* 描述信息
|
|
448
|
+
*/
|
|
449
|
+
errMsg: string
|
|
220
450
|
}
|
|
221
451
|
|
|
222
452
|
export type LongPressActionsSuccessData = {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
453
|
+
/**
|
|
454
|
+
* 接口调用失败的回调函数
|
|
455
|
+
*/
|
|
456
|
+
tapIndex: number,
|
|
457
|
+
/**
|
|
458
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
459
|
+
*/
|
|
460
|
+
index: number
|
|
231
461
|
};
|
|
232
462
|
export type LongPressActionsOptions = {
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
463
|
+
/**
|
|
464
|
+
* 按钮的文字数组
|
|
465
|
+
*/
|
|
466
|
+
itemList: string[],
|
|
467
|
+
/**
|
|
468
|
+
* 按钮的文字颜色,字符串格式,默认为"#000000"
|
|
469
|
+
*/
|
|
470
|
+
itemColor: string | null,
|
|
471
|
+
/**
|
|
472
|
+
* 接口调用成功的回调函数
|
|
473
|
+
*/
|
|
474
|
+
success: ((result: LongPressActionsSuccessData) => void) | null,
|
|
475
|
+
/**
|
|
476
|
+
* 接口调用失败的回调函数
|
|
477
|
+
*/
|
|
478
|
+
fail: ((result: any) => void) | null,
|
|
479
|
+
/**
|
|
480
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
481
|
+
*/
|
|
482
|
+
complete: ((result: any) => void) | null
|
|
253
483
|
};
|
|
254
484
|
|
|
255
485
|
|
|
256
486
|
export type PreviewImageFail = IMediaError;
|
|
257
|
-
export type PreviewImageSuccessCallback = (callback
|
|
258
|
-
export type PreviewImageFailCallback = (callback
|
|
487
|
+
export type PreviewImageSuccessCallback = (callback: PreviewImageSuccess) => void
|
|
488
|
+
export type PreviewImageFailCallback = (callback: PreviewImageFail) => void
|
|
259
489
|
export type PreviewImageCompleteCallback = ChooseImageCompleteCallback
|
|
260
490
|
|
|
261
491
|
export type PreviewImageOptions = {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
492
|
+
/**
|
|
493
|
+
* current 为当前显示图片的链接/索引值,不填或填写的值无效则为 urls 的第一张。APP平台仅支持索引值。
|
|
494
|
+
* @type string | number
|
|
495
|
+
*/
|
|
496
|
+
current?: any | null,
|
|
497
|
+
/**
|
|
498
|
+
* 需要预览的图片链接列表
|
|
499
|
+
*/
|
|
500
|
+
urls: Array<string.ImageURIString>,
|
|
501
|
+
/**
|
|
502
|
+
* 是否显示长按菜单
|
|
503
|
+
*
|
|
504
|
+
* @uniPlatform {
|
|
505
|
+
* "app": {
|
|
506
|
+
* "android": {
|
|
507
|
+
* "osVer": "5.0",
|
|
508
|
+
* "uniVer": "√",
|
|
509
|
+
* "unixVer": "x"
|
|
510
|
+
* },
|
|
511
|
+
* "ios": {
|
|
512
|
+
* "osVer": "10.0",
|
|
513
|
+
* "uniVer": "√",
|
|
514
|
+
* "unixVer": "x"
|
|
515
|
+
* },
|
|
286
516
|
* "harmony": {
|
|
287
517
|
* "osVer": "3.0",
|
|
288
518
|
* "uniVer": "4.23",
|
|
289
519
|
* "unixVer": "x"
|
|
290
520
|
* }
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
521
|
+
* },
|
|
522
|
+
* "mp": {
|
|
523
|
+
* "weixin": {
|
|
524
|
+
* "hostVer": "√",
|
|
525
|
+
* "uniVer": "√",
|
|
526
|
+
* "unixVer": "4.41"
|
|
527
|
+
* },
|
|
528
|
+
* "alipay": {
|
|
529
|
+
* "hostVer": "√",
|
|
530
|
+
* "uniVer": "√",
|
|
531
|
+
* "unixVer": "x"
|
|
532
|
+
* },
|
|
533
|
+
* "baidu": {
|
|
534
|
+
* "hostVer": "√",
|
|
535
|
+
* "uniVer": "√",
|
|
536
|
+
* "unixVer": "x"
|
|
537
|
+
* },
|
|
538
|
+
* "toutiao": {
|
|
539
|
+
* "hostVer": "√",
|
|
540
|
+
* "uniVer": "√",
|
|
541
|
+
* "unixVer": "x"
|
|
542
|
+
* },
|
|
543
|
+
* "lark": {
|
|
544
|
+
* "hostVer": "√",
|
|
545
|
+
* "uniVer": "√",
|
|
546
|
+
* "unixVer": "x"
|
|
547
|
+
* },
|
|
548
|
+
* "qq": {
|
|
549
|
+
* "hostVer": "√",
|
|
550
|
+
* "uniVer": "√",
|
|
551
|
+
* "unixVer": "x"
|
|
552
|
+
* },
|
|
553
|
+
* "kuaishou": {
|
|
554
|
+
* "hostVer": "√",
|
|
555
|
+
* "uniVer": "√",
|
|
556
|
+
* "unixVer": "x"
|
|
557
|
+
* },
|
|
558
|
+
* "jd": {
|
|
559
|
+
* "hostVer": "√",
|
|
560
|
+
* "uniVer": "√",
|
|
561
|
+
* "unixVer": "x"
|
|
562
|
+
* }
|
|
563
|
+
* },
|
|
564
|
+
* "web": {
|
|
565
|
+
* "uniVer": "√",
|
|
566
|
+
* "unixVer": "x"
|
|
567
|
+
* }
|
|
568
|
+
* }
|
|
569
|
+
*/
|
|
570
|
+
showmenu?: boolean | null,
|
|
571
|
+
/**
|
|
572
|
+
* 图片指示器样式
|
|
573
|
+
*
|
|
574
|
+
* @uniPlatform {
|
|
575
|
+
* "app": {
|
|
576
|
+
* "android": {
|
|
577
|
+
* "osVer": "5.0",
|
|
578
|
+
* "uniVer": "√",
|
|
579
|
+
* "unixVer": "3.9"
|
|
580
|
+
* },
|
|
581
|
+
* "ios": {
|
|
582
|
+
* "osVer": "10.0",
|
|
583
|
+
* "uniVer": "√",
|
|
584
|
+
* "unixVer": "4.11"
|
|
585
|
+
* },
|
|
304
586
|
* "harmony": {
|
|
305
587
|
* "osVer": "x",
|
|
306
588
|
* "uniVer": "x",
|
|
307
589
|
* "unixVer": "x"
|
|
308
590
|
* }
|
|
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
|
-
|
|
591
|
+
* },
|
|
592
|
+
* "web": {
|
|
593
|
+
* "uniVer": "√",
|
|
594
|
+
* "unixVer": "x"
|
|
595
|
+
* }
|
|
596
|
+
* }
|
|
597
|
+
*/
|
|
598
|
+
indicator?:
|
|
599
|
+
/**
|
|
600
|
+
* 底部圆点指示器
|
|
601
|
+
*/
|
|
602
|
+
'default' |
|
|
603
|
+
/**
|
|
604
|
+
* 顶部数字指示器
|
|
605
|
+
*/
|
|
606
|
+
'number' |
|
|
607
|
+
/**
|
|
608
|
+
* 不显示指示器
|
|
609
|
+
*/
|
|
610
|
+
'none' |
|
|
611
|
+
null,
|
|
612
|
+
/**
|
|
613
|
+
* 是否可循环预览
|
|
614
|
+
* @type boolean
|
|
615
|
+
* @uniPlatform {
|
|
616
|
+
* "app": {
|
|
617
|
+
* "android": {
|
|
618
|
+
* "osVer": "5.0",
|
|
619
|
+
* "uniVer": "√",
|
|
620
|
+
* "unixVer": "3.9"
|
|
621
|
+
* },
|
|
622
|
+
* "ios": {
|
|
623
|
+
* "osVer": "10.0",
|
|
624
|
+
* "uniVer": "√",
|
|
625
|
+
* "unixVer": "4.11"
|
|
626
|
+
* },
|
|
627
|
+
* "harmony": {
|
|
628
|
+
* "osVer": "x",
|
|
629
|
+
* "uniVer": "x",
|
|
630
|
+
* "unixVer": "x"
|
|
631
|
+
* }
|
|
632
|
+
* },
|
|
633
|
+
* "web": {
|
|
634
|
+
* "uniVer": "√",
|
|
635
|
+
* "unixVer": "x"
|
|
636
|
+
* }
|
|
637
|
+
* }
|
|
638
|
+
*/
|
|
639
|
+
loop?: boolean | null,
|
|
640
|
+
/**
|
|
641
|
+
* 长按图片显示操作菜单,如不填默认为保存相册。
|
|
642
|
+
* @uniPlatform {
|
|
643
|
+
* "app": {
|
|
644
|
+
* "android": {
|
|
645
|
+
* "osVer": "5.0",
|
|
646
|
+
* "uniVer": "√",
|
|
647
|
+
* "unixVer": "x"
|
|
648
|
+
* },
|
|
649
|
+
* "ios": {
|
|
650
|
+
* "osVer": "5.0",
|
|
651
|
+
* "uniVer": "√",
|
|
652
|
+
* "unixVer": "x"
|
|
653
|
+
* },
|
|
340
654
|
* "harmony": {
|
|
341
655
|
* "osVer": "x",
|
|
342
656
|
* "uniVer": "x",
|
|
343
657
|
* "unixVer": "x"
|
|
344
658
|
* }
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
659
|
+
* },
|
|
660
|
+
* "web": {
|
|
661
|
+
* "osVer": "x",
|
|
662
|
+
* "uniVer": "x",
|
|
663
|
+
* "unixVer": "x"
|
|
664
|
+
* },
|
|
665
|
+
* "mp": {
|
|
666
|
+
* "weixin": {
|
|
667
|
+
* "hostVer": "√",
|
|
668
|
+
* "uniVer": "√",
|
|
669
|
+
* "unixVer": "4.41"
|
|
670
|
+
* },
|
|
671
|
+
* "alipay": {
|
|
672
|
+
* "hostVer": "√",
|
|
673
|
+
* "uniVer": "√",
|
|
674
|
+
* "unixVer": "x"
|
|
675
|
+
* },
|
|
676
|
+
* "baidu": {
|
|
677
|
+
* "hostVer": "√",
|
|
678
|
+
* "uniVer": "√",
|
|
679
|
+
* "unixVer": "x"
|
|
680
|
+
* },
|
|
681
|
+
* "toutiao": {
|
|
682
|
+
* "hostVer": "√",
|
|
683
|
+
* "uniVer": "√",
|
|
684
|
+
* "unixVer": "x"
|
|
685
|
+
* },
|
|
686
|
+
* "lark": {
|
|
687
|
+
* "hostVer": "√",
|
|
688
|
+
* "uniVer": "√",
|
|
689
|
+
* "unixVer": "x"
|
|
690
|
+
* },
|
|
691
|
+
* "qq": {
|
|
692
|
+
* "hostVer": "√",
|
|
693
|
+
* "uniVer": "√",
|
|
694
|
+
* "unixVer": "x"
|
|
695
|
+
* },
|
|
696
|
+
* "kuaishou": {
|
|
697
|
+
* "hostVer": "√",
|
|
698
|
+
* "uniVer": "√",
|
|
699
|
+
* "unixVer": "x"
|
|
700
|
+
* },
|
|
701
|
+
* "jd": {
|
|
702
|
+
* "hostVer": "√",
|
|
703
|
+
* "uniVer": "√",
|
|
704
|
+
* "unixVer": "x"
|
|
705
|
+
* }
|
|
706
|
+
* }
|
|
707
|
+
* }
|
|
708
|
+
*/
|
|
709
|
+
// longPressActions ?: LongPressActionsOptions | null,
|
|
710
|
+
/**
|
|
711
|
+
* 接口调用成功的回调函数
|
|
712
|
+
*/
|
|
713
|
+
success?: (PreviewImageSuccessCallback) | null,
|
|
714
|
+
/**
|
|
715
|
+
* 接口调用失败的回调函数
|
|
716
|
+
*/
|
|
717
|
+
fail?: (PreviewImageFailCallback) | null,
|
|
718
|
+
/**
|
|
719
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
720
|
+
*/
|
|
721
|
+
complete?: (PreviewImageCompleteCallback) | null
|
|
361
722
|
};
|
|
362
723
|
|
|
363
|
-
export type PreviewImage = (options
|
|
724
|
+
export type PreviewImage = (options: PreviewImageOptions) => void;
|
|
364
725
|
|
|
365
|
-
export type ClosePreviewImage = (options
|
|
726
|
+
export type ClosePreviewImage = (options: ClosePreviewImageOptions) => void;
|
|
366
727
|
export type ClosePreviewImageSuccess = {
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
728
|
+
/**
|
|
729
|
+
* 错误信息
|
|
730
|
+
*/
|
|
731
|
+
errMsg: string
|
|
371
732
|
};
|
|
372
733
|
|
|
373
734
|
export type ClosePreviewImageFail = IMediaError;
|
|
374
|
-
export type ClosePreviewImageSuccessCallback = (callback
|
|
375
|
-
export type ClosePreviewImageFailCallback = (callback
|
|
735
|
+
export type ClosePreviewImageSuccessCallback = (callback: ClosePreviewImageSuccess) => void
|
|
736
|
+
export type ClosePreviewImageFailCallback = (callback: ClosePreviewImageFail) => void
|
|
376
737
|
export type ClosePreviewImageCompleteCallback = ChooseImageCompleteCallback
|
|
377
738
|
|
|
378
739
|
export type ClosePreviewImageOptions = {
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
740
|
+
/**
|
|
741
|
+
* 接口调用成功的回调函数
|
|
742
|
+
*/
|
|
743
|
+
success?: (ClosePreviewImageSuccessCallback) | null,
|
|
744
|
+
/**
|
|
745
|
+
* 接口调用失败的回调函数
|
|
746
|
+
*/
|
|
747
|
+
fail?: (ClosePreviewImageFailCallback) | null,
|
|
748
|
+
/**
|
|
749
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
750
|
+
*/
|
|
751
|
+
complete?: (ClosePreviewImageCompleteCallback) | null
|
|
391
752
|
};
|
|
392
753
|
|
|
393
|
-
export type GetImageInfo = (options
|
|
754
|
+
export type GetImageInfo = (options: GetImageInfoOptions) => void;
|
|
394
755
|
export type GetImageInfoSuccess = {
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
756
|
+
/**
|
|
757
|
+
* 图片宽度,单位px
|
|
758
|
+
*/
|
|
759
|
+
width: number,
|
|
760
|
+
/**
|
|
761
|
+
* 图片高度,单位px
|
|
762
|
+
*/
|
|
763
|
+
height: number,
|
|
764
|
+
/**
|
|
765
|
+
* 返回图片的本地路径
|
|
766
|
+
*/
|
|
767
|
+
path: string,
|
|
768
|
+
/**
|
|
769
|
+
* 返回图片的方向
|
|
770
|
+
* @uniPlatform {
|
|
771
|
+
* "mp": {
|
|
772
|
+
* "weixin": {
|
|
773
|
+
* "hostVer": "√",
|
|
774
|
+
* "uniVer": "√",
|
|
775
|
+
* "unixVer": "4.41"
|
|
776
|
+
* },
|
|
777
|
+
* "alipay": {
|
|
778
|
+
* "hostVer": "√",
|
|
779
|
+
* "uniVer": "√",
|
|
780
|
+
* "unixVer": "x"
|
|
781
|
+
* },
|
|
782
|
+
* "baidu": {
|
|
783
|
+
* "hostVer": "√",
|
|
784
|
+
* "uniVer": "√",
|
|
785
|
+
* "unixVer": "x"
|
|
786
|
+
* },
|
|
787
|
+
* "toutiao": {
|
|
788
|
+
* "hostVer": "√",
|
|
789
|
+
* "uniVer": "√",
|
|
790
|
+
* "unixVer": "x"
|
|
791
|
+
* },
|
|
792
|
+
* "lark": {
|
|
793
|
+
* "hostVer": "√",
|
|
794
|
+
* "uniVer": "√",
|
|
795
|
+
* "unixVer": "x"
|
|
796
|
+
* },
|
|
797
|
+
* "qq": {
|
|
798
|
+
* "hostVer": "√",
|
|
799
|
+
* "uniVer": "√",
|
|
800
|
+
* "unixVer": "x"
|
|
801
|
+
* },
|
|
802
|
+
* "kuaishou": {
|
|
803
|
+
* "hostVer": "√",
|
|
804
|
+
* "uniVer": "√",
|
|
805
|
+
* "unixVer": "x"
|
|
806
|
+
* },
|
|
807
|
+
* "jd": {
|
|
808
|
+
* "hostVer": "√",
|
|
809
|
+
* "uniVer": "√",
|
|
810
|
+
* "unixVer": "x"
|
|
811
|
+
* }
|
|
812
|
+
* },
|
|
410
813
|
* "web": {
|
|
411
814
|
* "uniVer": "x",
|
|
412
815
|
* "unixVer": "x"
|
|
413
816
|
* }
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
817
|
+
* }
|
|
818
|
+
*/
|
|
819
|
+
orientation?: MediaOrientation,
|
|
820
|
+
/**
|
|
821
|
+
* 返回图片的格式
|
|
822
|
+
* @uniPlatform {
|
|
823
|
+
* "mp": {
|
|
824
|
+
* "weixin": {
|
|
825
|
+
* "hostVer": "√",
|
|
826
|
+
* "uniVer": "√",
|
|
827
|
+
* "unixVer": "4.41"
|
|
828
|
+
* },
|
|
829
|
+
* "alipay": {
|
|
830
|
+
* "hostVer": "√",
|
|
831
|
+
* "uniVer": "√",
|
|
832
|
+
* "unixVer": "x"
|
|
833
|
+
* },
|
|
834
|
+
* "baidu": {
|
|
835
|
+
* "hostVer": "√",
|
|
836
|
+
* "uniVer": "√",
|
|
837
|
+
* "unixVer": "x"
|
|
838
|
+
* },
|
|
839
|
+
* "toutiao": {
|
|
840
|
+
* "hostVer": "√",
|
|
841
|
+
* "uniVer": "√",
|
|
842
|
+
* "unixVer": "x"
|
|
843
|
+
* },
|
|
844
|
+
* "lark": {
|
|
845
|
+
* "hostVer": "√",
|
|
846
|
+
* "uniVer": "√",
|
|
847
|
+
* "unixVer": "x"
|
|
848
|
+
* },
|
|
849
|
+
* "qq": {
|
|
850
|
+
* "hostVer": "√",
|
|
851
|
+
* "uniVer": "√",
|
|
852
|
+
* "unixVer": "x"
|
|
853
|
+
* },
|
|
854
|
+
* "kuaishou": {
|
|
855
|
+
* "hostVer": "√",
|
|
856
|
+
* "uniVer": "√",
|
|
857
|
+
* "unixVer": "x"
|
|
858
|
+
* },
|
|
859
|
+
* "jd": {
|
|
860
|
+
* "hostVer": "√",
|
|
861
|
+
* "uniVer": "√",
|
|
862
|
+
* "unixVer": "x"
|
|
863
|
+
* }
|
|
864
|
+
* },
|
|
420
865
|
* "web": {
|
|
421
866
|
* "uniVer": "x",
|
|
422
867
|
* "unixVer": "x"
|
|
423
868
|
* }
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
869
|
+
* }
|
|
870
|
+
*/
|
|
871
|
+
type: string | null
|
|
427
872
|
};
|
|
428
873
|
|
|
429
874
|
export type GetImageInfoFail = IMediaError;
|
|
430
|
-
export type GetImageInfoSuccessCallback = (callback
|
|
431
|
-
export type GetImageInfoFailCallback = (callback
|
|
875
|
+
export type GetImageInfoSuccessCallback = (callback: GetImageInfoSuccess) => void
|
|
876
|
+
export type GetImageInfoFailCallback = (callback: GetImageInfoFail) => void
|
|
432
877
|
export type GetImageInfoCompleteCallback = ChooseImageCompleteCallback
|
|
433
878
|
|
|
434
879
|
export type GetImageInfoOptions = {
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
880
|
+
/**
|
|
881
|
+
* 图片的路径,可以是相对路径,临时文件路径,存储文件路径,网络图片路径
|
|
882
|
+
*/
|
|
883
|
+
src: string.ImageURIString,
|
|
884
|
+
/**
|
|
885
|
+
* 接口调用成功的回调函数
|
|
886
|
+
*/
|
|
887
|
+
success?: (GetImageInfoSuccessCallback) | null,
|
|
888
|
+
/**
|
|
889
|
+
* 接口调用失败的回调函数
|
|
890
|
+
*/
|
|
891
|
+
fail?: (GetImageInfoFailCallback) | null,
|
|
892
|
+
/**
|
|
893
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
894
|
+
*/
|
|
895
|
+
complete?: (GetImageInfoCompleteCallback) | null
|
|
451
896
|
};
|
|
452
897
|
|
|
453
|
-
export type SaveImageToPhotosAlbum = (options
|
|
898
|
+
export type SaveImageToPhotosAlbum = (options: SaveImageToPhotosAlbumOptions) => void;
|
|
454
899
|
|
|
455
900
|
export type SaveImageToPhotosAlbumSuccess = {
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
901
|
+
/**
|
|
902
|
+
* 保存到相册的图片路径
|
|
903
|
+
*/
|
|
904
|
+
path: string
|
|
460
905
|
};
|
|
461
906
|
|
|
462
907
|
export type SaveImageToPhotosAlbumFail = IMediaError;
|
|
463
|
-
export type SaveImageToPhotosAlbumSuccessCallback = (callback
|
|
464
|
-
export type SaveImageToPhotosAlbumFailCallback = (callback
|
|
908
|
+
export type SaveImageToPhotosAlbumSuccessCallback = (callback: SaveImageToPhotosAlbumSuccess) => void
|
|
909
|
+
export type SaveImageToPhotosAlbumFailCallback = (callback: SaveImageToPhotosAlbumFail) => void
|
|
465
910
|
export type SaveImageToPhotosAlbumCompleteCallback = ChooseImageCompleteCallback
|
|
466
911
|
|
|
467
912
|
export type SaveImageToPhotosAlbumOptions = {
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
913
|
+
/**
|
|
914
|
+
* 图片文件路径,可以是临时文件路径也可以是永久文件路径,不支持网络图片路径
|
|
915
|
+
*/
|
|
916
|
+
filePath: string.ImageURIString,
|
|
917
|
+
/**
|
|
918
|
+
* 接口调用成功的回调函数
|
|
919
|
+
*/
|
|
920
|
+
success?: (SaveImageToPhotosAlbumSuccessCallback) | null,
|
|
921
|
+
/**
|
|
922
|
+
* 接口调用失败的回调函数
|
|
923
|
+
*/
|
|
924
|
+
fail?: (SaveImageToPhotosAlbumFailCallback) | null,
|
|
925
|
+
/**
|
|
926
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
927
|
+
*/
|
|
928
|
+
complete?: (SaveImageToPhotosAlbumCompleteCallback) | null
|
|
484
929
|
};
|
|
485
|
-
export type CompressImage = (options
|
|
930
|
+
export type CompressImage = (options: CompressImageOptions) => void;
|
|
486
931
|
export type CompressImageSuccess = {
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
932
|
+
/**
|
|
933
|
+
* 压缩后图片的临时文件路径
|
|
934
|
+
*/
|
|
935
|
+
tempFilePath: string
|
|
491
936
|
};
|
|
492
937
|
|
|
493
938
|
export type CompressImageFail = IMediaError;
|
|
494
|
-
export type CompressImageSuccessCallback = (callback
|
|
495
|
-
export type CompressImageFailCallback = (callback
|
|
939
|
+
export type CompressImageSuccessCallback = (callback: CompressImageSuccess) => void
|
|
940
|
+
export type CompressImageFailCallback = (callback: CompressImageFail) => void
|
|
496
941
|
export type CompressImageCompleteCallback = ChooseImageCompleteCallback
|
|
497
942
|
|
|
498
943
|
export type CompressImageOptions = {
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
944
|
+
/**
|
|
945
|
+
* 图片路径,图片的路径,可以是相对路径、临时文件路径、存储文件路径
|
|
946
|
+
*/
|
|
947
|
+
src: string.ImageURIString,
|
|
948
|
+
/**
|
|
949
|
+
* 压缩质量,范围0~100,数值越小,质量越低,压缩率越高(仅对jpg有效)
|
|
950
|
+
*/
|
|
951
|
+
quality?: number | null,
|
|
952
|
+
/**
|
|
953
|
+
* 旋转度数,范围0~360
|
|
954
|
+
*/
|
|
955
|
+
rotate?: number | null,
|
|
956
|
+
/**
|
|
957
|
+
* 缩放图片的宽度
|
|
958
|
+
* @deprecated 已废弃
|
|
959
|
+
*/
|
|
960
|
+
width?: string | null,
|
|
961
|
+
/**
|
|
962
|
+
* 缩放图片的高度
|
|
963
|
+
* @deprecated 已废弃
|
|
964
|
+
*/
|
|
965
|
+
height?: string | null,
|
|
966
|
+
/**
|
|
967
|
+
* 压缩后图片的高度,单位为px,若不填写则默认以compressedWidth为准等比缩放
|
|
968
|
+
*/
|
|
969
|
+
compressedHeight?: number | null,
|
|
970
|
+
/**
|
|
971
|
+
* 压缩后图片的宽度,单位为px,若不填写则默认以compressedHeight为准等比缩放。
|
|
972
|
+
*/
|
|
973
|
+
compressedWidth?: number | null,
|
|
974
|
+
/**
|
|
975
|
+
* 接口调用成功的回调函数
|
|
976
|
+
*/
|
|
977
|
+
success?: (CompressImageSuccessCallback) | null,
|
|
978
|
+
/**
|
|
979
|
+
* 接口调用失败的回调函数
|
|
980
|
+
*/
|
|
981
|
+
fail?: (CompressImageFailCallback) | null,
|
|
982
|
+
/**
|
|
983
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
984
|
+
*/
|
|
985
|
+
complete?: (CompressImageCompleteCallback) | null
|
|
541
986
|
};
|
|
542
987
|
|
|
543
988
|
export type ChooseVideoSuccess = {
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
989
|
+
/**
|
|
990
|
+
* 选定视频的临时文件路径
|
|
991
|
+
*/
|
|
992
|
+
tempFilePath: string,
|
|
993
|
+
/**
|
|
994
|
+
* 选定的视频文件,仅H5支持
|
|
995
|
+
*/
|
|
996
|
+
// tempFile: File|null,
|
|
997
|
+
/**
|
|
998
|
+
* 选定视频的时间长度
|
|
999
|
+
*/
|
|
1000
|
+
duration: number,
|
|
1001
|
+
/**
|
|
1002
|
+
* 选定视频的数据量大小
|
|
1003
|
+
*/
|
|
1004
|
+
size: number,
|
|
1005
|
+
/**
|
|
1006
|
+
* 返回选定视频的长
|
|
1007
|
+
*/
|
|
1008
|
+
height: number,
|
|
1009
|
+
/**
|
|
1010
|
+
* 返回选定视频的宽
|
|
1011
|
+
*/
|
|
1012
|
+
width: number,
|
|
1013
|
+
/**
|
|
1014
|
+
* 包含扩展名的文件名称(仅H5支持)
|
|
1015
|
+
*/
|
|
1016
|
+
// name: string | null
|
|
572
1017
|
};
|
|
573
1018
|
|
|
574
1019
|
export type ChooseVideoFail = IMediaError;
|
|
575
|
-
export type ChooseVideoSuccessCallback = (callback
|
|
576
|
-
export type ChooseVideoFailCallback = (callback
|
|
1020
|
+
export type ChooseVideoSuccessCallback = (callback: ChooseVideoSuccess) => void
|
|
1021
|
+
export type ChooseVideoFailCallback = (callback: ChooseVideoFail) => void
|
|
577
1022
|
export type ChooseVideoCompleteCallback = ChooseImageCompleteCallback
|
|
578
|
-
|
|
1023
|
+
export type ChooseVideoPageOrientation = ChooseImagePageOrientation
|
|
1024
|
+
export type ChooseVideoAlbumMode = ChooseImageAlbumMode
|
|
579
1025
|
export type ChooseVideoOptions = {
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
1026
|
+
/**
|
|
1027
|
+
* 屏幕方向。默认为page.json中的pageOrientation。
|
|
1028
|
+
* @uniPlatform {
|
|
1029
|
+
* "app": {
|
|
1030
|
+
* "android": {
|
|
1031
|
+
* "osVer": "5.0",
|
|
1032
|
+
* "uniVer": "4.33",
|
|
1033
|
+
* "unixVer": "4.33"
|
|
1034
|
+
* },
|
|
1035
|
+
* "ios": {
|
|
1036
|
+
* "osVer": "10.0",
|
|
1037
|
+
* "uniVer": "4.33",
|
|
1038
|
+
* "unixVer": "4.33"
|
|
1039
|
+
* },
|
|
1040
|
+
* "harmony": {
|
|
1041
|
+
* "osVer": "3.0",
|
|
1042
|
+
* "uniVer": "x",
|
|
1043
|
+
* "unixVer": "x"
|
|
1044
|
+
* }
|
|
1045
|
+
* },
|
|
1046
|
+
* "mp": {
|
|
1047
|
+
* "weixin": {
|
|
1048
|
+
* "hostVer": "√",
|
|
1049
|
+
* "uniVer": "√",
|
|
1050
|
+
* "unixVer": "4.41"
|
|
1051
|
+
* },
|
|
1052
|
+
* "alipay": {
|
|
1053
|
+
* "hostVer": "√",
|
|
1054
|
+
* "uniVer": "√",
|
|
1055
|
+
* "unixVer": "x"
|
|
1056
|
+
* },
|
|
1057
|
+
* "baidu": {
|
|
1058
|
+
* "hostVer": "√",
|
|
1059
|
+
* "uniVer": "√",
|
|
1060
|
+
* "unixVer": "x"
|
|
1061
|
+
* },
|
|
1062
|
+
* "toutiao": {
|
|
1063
|
+
* "hostVer": "√",
|
|
1064
|
+
* "uniVer": "√",
|
|
1065
|
+
* "unixVer": "x"
|
|
1066
|
+
* },
|
|
1067
|
+
* "lark": {
|
|
1068
|
+
* "hostVer": "√",
|
|
1069
|
+
* "uniVer": "√",
|
|
1070
|
+
* "unixVer": "x"
|
|
1071
|
+
* },
|
|
1072
|
+
* "qq": {
|
|
1073
|
+
* "hostVer": "√",
|
|
1074
|
+
* "uniVer": "√",
|
|
1075
|
+
* "unixVer": "x"
|
|
1076
|
+
* },
|
|
1077
|
+
* "kuaishou": {
|
|
1078
|
+
* "hostVer": "√",
|
|
1079
|
+
* "uniVer": "√",
|
|
1080
|
+
* "unixVer": "x"
|
|
1081
|
+
* },
|
|
1082
|
+
* "jd": {
|
|
1083
|
+
* "hostVer": "√",
|
|
1084
|
+
* "uniVer": "√",
|
|
1085
|
+
* "unixVer": "x"
|
|
1086
|
+
* }
|
|
1087
|
+
* },
|
|
1088
|
+
* "web": {
|
|
1089
|
+
* "uniVer": "x",
|
|
1090
|
+
* "unixVer": "x"
|
|
1091
|
+
* }
|
|
1092
|
+
* }
|
|
1093
|
+
*/
|
|
1094
|
+
pageOrientation?: ChooseVideoPageOrientation | null,
|
|
1095
|
+
/**
|
|
1096
|
+
* 视频选择模式
|
|
1097
|
+
* @default "custom"
|
|
1098
|
+
* @uniPlatform {
|
|
1099
|
+
* "app": {
|
|
1100
|
+
* "android": {
|
|
1101
|
+
* "osVer": "5.0",
|
|
1102
|
+
* "uniVer": "4.33",
|
|
1103
|
+
* "unixVer": "4.33"
|
|
1104
|
+
* },
|
|
1105
|
+
* "ios": {
|
|
1106
|
+
* "osVer": "10.0",
|
|
1107
|
+
* "uniVer": "x",
|
|
1108
|
+
* "unixVer": "x"
|
|
1109
|
+
* },
|
|
1110
|
+
* "harmony": {
|
|
1111
|
+
* "osVer": "3.0",
|
|
1112
|
+
* "uniVer": "x",
|
|
1113
|
+
* "unixVer": "x"
|
|
1114
|
+
* }
|
|
1115
|
+
* },
|
|
1116
|
+
* "web": {
|
|
1117
|
+
* "uniVer": "x",
|
|
1118
|
+
* "unixVer": "x"
|
|
1119
|
+
* }
|
|
1120
|
+
* }
|
|
1121
|
+
*/
|
|
1122
|
+
albumMode?: ChooseVideoAlbumMode | null,
|
|
1123
|
+
/**
|
|
1124
|
+
* album 从相册选视频,camera 使用相机拍摄,默认为:['album', 'camera']
|
|
1125
|
+
*/
|
|
1126
|
+
sourceType?: (string[]) | null,
|
|
1127
|
+
/**
|
|
1128
|
+
* 是否压缩所选的视频源文件,默认值为true,需要压缩
|
|
1129
|
+
* @type boolean
|
|
1130
|
+
* @default true
|
|
1131
|
+
* @uniPlatform {
|
|
1132
|
+
* "app": {
|
|
1133
|
+
* "android": {
|
|
1134
|
+
* "osVer": "5.0",
|
|
1135
|
+
* "uniVer": "√",
|
|
1136
|
+
* "unixVer": "3.9"
|
|
1137
|
+
* },
|
|
1138
|
+
* "ios": {
|
|
1139
|
+
* "osVer": "10.0",
|
|
1140
|
+
* "uniVer": "√",
|
|
1141
|
+
* "unixVer": "4.18"
|
|
1142
|
+
* },
|
|
590
1143
|
* "harmony": {
|
|
591
1144
|
* "osVer": "x",
|
|
592
1145
|
* "uniVer": "x",
|
|
593
1146
|
* "unixVer": "x"
|
|
594
1147
|
* }
|
|
595
|
-
|
|
1148
|
+
* },
|
|
1149
|
+
* "mp": {
|
|
1150
|
+
* "weixin": {
|
|
1151
|
+
* "hostVer": "√",
|
|
1152
|
+
* "uniVer": "√",
|
|
1153
|
+
* "unixVer": "4.41"
|
|
1154
|
+
* },
|
|
1155
|
+
* "alipay": {
|
|
1156
|
+
* "hostVer": "√",
|
|
1157
|
+
* "uniVer": "√",
|
|
1158
|
+
* "unixVer": "x"
|
|
1159
|
+
* },
|
|
1160
|
+
* "baidu": {
|
|
1161
|
+
* "hostVer": "√",
|
|
1162
|
+
* "uniVer": "√",
|
|
1163
|
+
* "unixVer": "x"
|
|
1164
|
+
* },
|
|
1165
|
+
* "toutiao": {
|
|
1166
|
+
* "hostVer": "√",
|
|
1167
|
+
* "uniVer": "√",
|
|
1168
|
+
* "unixVer": "x"
|
|
1169
|
+
* },
|
|
1170
|
+
* "lark": {
|
|
1171
|
+
* "hostVer": "√",
|
|
1172
|
+
* "uniVer": "√",
|
|
1173
|
+
* "unixVer": "x"
|
|
1174
|
+
* },
|
|
1175
|
+
* "qq": {
|
|
1176
|
+
* "hostVer": "√",
|
|
1177
|
+
* "uniVer": "√",
|
|
1178
|
+
* "unixVer": "x"
|
|
1179
|
+
* },
|
|
1180
|
+
* "kuaishou": {
|
|
1181
|
+
* "hostVer": "√",
|
|
1182
|
+
* "uniVer": "√",
|
|
1183
|
+
* "unixVer": "x"
|
|
1184
|
+
* },
|
|
1185
|
+
* "jd": {
|
|
1186
|
+
* "hostVer": "√",
|
|
1187
|
+
* "uniVer": "√",
|
|
1188
|
+
* "unixVer": "x"
|
|
1189
|
+
* }
|
|
1190
|
+
* },
|
|
596
1191
|
* "web": {
|
|
597
1192
|
* "uniVer": "x",
|
|
598
1193
|
* "unixVer": "x"
|
|
599
1194
|
* }
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
1195
|
+
* }
|
|
1196
|
+
*/
|
|
1197
|
+
compressed?: boolean | null,
|
|
1198
|
+
/**
|
|
1199
|
+
* 拍摄视频最长拍摄时间,单位秒。最长支持 60 秒
|
|
1200
|
+
* @uniPlatform {
|
|
1201
|
+
* "app": {
|
|
1202
|
+
* "android": {
|
|
1203
|
+
* "osVer": "5.0",
|
|
1204
|
+
* "uniVer": "√",
|
|
1205
|
+
* "unixVer": "3.9"
|
|
1206
|
+
* },
|
|
1207
|
+
* "ios": {
|
|
1208
|
+
* "osVer": "10.0",
|
|
1209
|
+
* "uniVer": "√",
|
|
1210
|
+
* "unixVer": "4.18"
|
|
1211
|
+
* },
|
|
607
1212
|
* "harmony": {
|
|
608
1213
|
* "osVer": "3.0",
|
|
609
1214
|
* "uniVer": "4.25",
|
|
610
1215
|
* "unixVer": "x"
|
|
611
1216
|
* }
|
|
612
|
-
|
|
1217
|
+
* },
|
|
1218
|
+
* "mp": {
|
|
1219
|
+
* "weixin": {
|
|
1220
|
+
* "hostVer": "√",
|
|
1221
|
+
* "uniVer": "√",
|
|
1222
|
+
* "unixVer": "4.41"
|
|
1223
|
+
* },
|
|
1224
|
+
* "alipay": {
|
|
1225
|
+
* "hostVer": "√",
|
|
1226
|
+
* "uniVer": "√",
|
|
1227
|
+
* "unixVer": "x"
|
|
1228
|
+
* },
|
|
1229
|
+
* "baidu": {
|
|
1230
|
+
* "hostVer": "√",
|
|
1231
|
+
* "uniVer": "√",
|
|
1232
|
+
* "unixVer": "x"
|
|
1233
|
+
* },
|
|
1234
|
+
* "toutiao": {
|
|
1235
|
+
* "hostVer": "√",
|
|
1236
|
+
* "uniVer": "√",
|
|
1237
|
+
* "unixVer": "x"
|
|
1238
|
+
* },
|
|
1239
|
+
* "lark": {
|
|
1240
|
+
* "hostVer": "√",
|
|
1241
|
+
* "uniVer": "√",
|
|
1242
|
+
* "unixVer": "x"
|
|
1243
|
+
* },
|
|
1244
|
+
* "qq": {
|
|
1245
|
+
* "hostVer": "√",
|
|
1246
|
+
* "uniVer": "√",
|
|
1247
|
+
* "unixVer": "x"
|
|
1248
|
+
* },
|
|
1249
|
+
* "kuaishou": {
|
|
1250
|
+
* "hostVer": "√",
|
|
1251
|
+
* "uniVer": "√",
|
|
1252
|
+
* "unixVer": "x"
|
|
1253
|
+
* },
|
|
1254
|
+
* "jd": {
|
|
1255
|
+
* "hostVer": "√",
|
|
1256
|
+
* "uniVer": "√",
|
|
1257
|
+
* "unixVer": "x"
|
|
1258
|
+
* }
|
|
1259
|
+
* },
|
|
613
1260
|
* "web": {
|
|
614
1261
|
* "uniVer": "x",
|
|
615
1262
|
* "unixVer": "x"
|
|
616
1263
|
* }
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
1264
|
+
* }
|
|
1265
|
+
*/
|
|
1266
|
+
maxDuration?: number | null,
|
|
1267
|
+
/**
|
|
1268
|
+
* 摄像切换
|
|
1269
|
+
*
|
|
1270
|
+
* @uniPlatform {
|
|
1271
|
+
* "app": {
|
|
1272
|
+
* "android": {
|
|
1273
|
+
* "osVer": "5.0",
|
|
1274
|
+
* "uniVer": "√",
|
|
1275
|
+
* "unixVer": "3.9"
|
|
1276
|
+
* },
|
|
1277
|
+
* "ios": {
|
|
1278
|
+
* "osVer": "10.0",
|
|
1279
|
+
* "uniVer": "√",
|
|
1280
|
+
* "unixVer": "4.18"
|
|
1281
|
+
* },
|
|
625
1282
|
* "harmony": {
|
|
626
1283
|
* "osVer": "3.0",
|
|
627
1284
|
* "uniVer": "4.25",
|
|
628
1285
|
* "unixVer": "x"
|
|
629
1286
|
* }
|
|
630
|
-
|
|
1287
|
+
* },
|
|
1288
|
+
* "mp": {
|
|
1289
|
+
* "weixin": {
|
|
1290
|
+
* "hostVer": "√",
|
|
1291
|
+
* "uniVer": "√",
|
|
1292
|
+
* "unixVer": "4.41"
|
|
1293
|
+
* },
|
|
1294
|
+
* "alipay": {
|
|
1295
|
+
* "hostVer": "√",
|
|
1296
|
+
* "uniVer": "√",
|
|
1297
|
+
* "unixVer": "x"
|
|
1298
|
+
* },
|
|
1299
|
+
* "baidu": {
|
|
1300
|
+
* "hostVer": "√",
|
|
1301
|
+
* "uniVer": "√",
|
|
1302
|
+
* "unixVer": "x"
|
|
1303
|
+
* },
|
|
1304
|
+
* "toutiao": {
|
|
1305
|
+
* "hostVer": "√",
|
|
1306
|
+
* "uniVer": "√",
|
|
1307
|
+
* "unixVer": "x"
|
|
1308
|
+
* },
|
|
1309
|
+
* "lark": {
|
|
1310
|
+
* "hostVer": "√",
|
|
1311
|
+
* "uniVer": "√",
|
|
1312
|
+
* "unixVer": "x"
|
|
1313
|
+
* },
|
|
1314
|
+
* "qq": {
|
|
1315
|
+
* "hostVer": "√",
|
|
1316
|
+
* "uniVer": "√",
|
|
1317
|
+
* "unixVer": "x"
|
|
1318
|
+
* },
|
|
1319
|
+
* "kuaishou": {
|
|
1320
|
+
* "hostVer": "√",
|
|
1321
|
+
* "uniVer": "√",
|
|
1322
|
+
* "unixVer": "x"
|
|
1323
|
+
* },
|
|
1324
|
+
* "jd": {
|
|
1325
|
+
* "hostVer": "√",
|
|
1326
|
+
* "uniVer": "√",
|
|
1327
|
+
* "unixVer": "x"
|
|
1328
|
+
* }
|
|
1329
|
+
* },
|
|
631
1330
|
* "web": {
|
|
632
1331
|
* "uniVer": "x",
|
|
633
1332
|
* "unixVer": "x"
|
|
634
1333
|
* }
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
1334
|
+
* }
|
|
1335
|
+
*/
|
|
1336
|
+
camera?:
|
|
1337
|
+
/**
|
|
1338
|
+
* 前置摄像头
|
|
1339
|
+
*/
|
|
1340
|
+
'front' |
|
|
1341
|
+
/**
|
|
1342
|
+
* 后置摄像头
|
|
1343
|
+
*/
|
|
1344
|
+
'back' | null,
|
|
1345
|
+
/**
|
|
1346
|
+
* 根据文件拓展名过滤,每一项都不能是空字符串。默认不过滤。
|
|
1347
|
+
* @uniPlatform {
|
|
1348
|
+
* "app": {
|
|
1349
|
+
* "android": {
|
|
1350
|
+
* "osVer": "5.0",
|
|
1351
|
+
* "uniVer": "√",
|
|
1352
|
+
* "unixVer": "x"
|
|
1353
|
+
* },
|
|
1354
|
+
* "ios": {
|
|
1355
|
+
* "osVer": "10.0",
|
|
1356
|
+
* "uniVer": "√",
|
|
1357
|
+
* "unixVer": "x"
|
|
1358
|
+
* },
|
|
655
1359
|
* "harmony": {
|
|
656
1360
|
* "osVer": "x",
|
|
657
1361
|
* "uniVer": "x",
|
|
658
1362
|
* "unixVer": "x"
|
|
659
1363
|
* }
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
1364
|
+
* },
|
|
1365
|
+
* "mp": {
|
|
1366
|
+
* "weixin": {
|
|
1367
|
+
* "hostVer": "√",
|
|
1368
|
+
* "uniVer": "√",
|
|
1369
|
+
* "unixVer": "4.41"
|
|
1370
|
+
* },
|
|
1371
|
+
* "alipay": {
|
|
1372
|
+
* "hostVer": "√",
|
|
1373
|
+
* "uniVer": "√",
|
|
1374
|
+
* "unixVer": "x"
|
|
1375
|
+
* },
|
|
1376
|
+
* "baidu": {
|
|
1377
|
+
* "hostVer": "√",
|
|
1378
|
+
* "uniVer": "√",
|
|
1379
|
+
* "unixVer": "x"
|
|
1380
|
+
* },
|
|
1381
|
+
* "toutiao": {
|
|
1382
|
+
* "hostVer": "√",
|
|
1383
|
+
* "uniVer": "√",
|
|
1384
|
+
* "unixVer": "x"
|
|
1385
|
+
* },
|
|
1386
|
+
* "lark": {
|
|
1387
|
+
* "hostVer": "√",
|
|
1388
|
+
* "uniVer": "√",
|
|
1389
|
+
* "unixVer": "x"
|
|
1390
|
+
* },
|
|
1391
|
+
* "qq": {
|
|
1392
|
+
* "hostVer": "√",
|
|
1393
|
+
* "uniVer": "√",
|
|
1394
|
+
* "unixVer": "x"
|
|
1395
|
+
* },
|
|
1396
|
+
* "kuaishou": {
|
|
1397
|
+
* "hostVer": "√",
|
|
1398
|
+
* "uniVer": "√",
|
|
1399
|
+
* "unixVer": "x"
|
|
1400
|
+
* },
|
|
1401
|
+
* "jd": {
|
|
1402
|
+
* "hostVer": "√",
|
|
1403
|
+
* "uniVer": "√",
|
|
1404
|
+
* "unixVer": "x"
|
|
1405
|
+
* }
|
|
1406
|
+
* }
|
|
1407
|
+
* }
|
|
1408
|
+
*/
|
|
1409
|
+
extension?: (string[]) | null,
|
|
1410
|
+
/**
|
|
1411
|
+
* 接口调用成功,返回视频文件的临时文件路径,详见返回参数说明
|
|
1412
|
+
*/
|
|
1413
|
+
success?: (ChooseVideoSuccessCallback) | null,
|
|
1414
|
+
/**
|
|
1415
|
+
* 接口调用失败的回调函数
|
|
1416
|
+
*/
|
|
1417
|
+
fail?: (ChooseVideoFailCallback) | null,
|
|
1418
|
+
/**
|
|
1419
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
1420
|
+
*/
|
|
1421
|
+
complete?: (ChooseVideoCompleteCallback) | null
|
|
676
1422
|
};
|
|
677
1423
|
|
|
678
|
-
export type ChooseVideo = (options
|
|
1424
|
+
export type ChooseVideo = (options: ChooseVideoOptions) => void;
|
|
679
1425
|
|
|
680
1426
|
export type GetVideoInfoSuccess = {
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
1427
|
+
/**
|
|
1428
|
+
* 画面方向
|
|
1429
|
+
* @uniPlatform {
|
|
1430
|
+
* "app": {
|
|
1431
|
+
* "android": {
|
|
1432
|
+
* "osVer": "5.0",
|
|
1433
|
+
* "uniVer": "√",
|
|
1434
|
+
* "unixVer": "3.9"
|
|
1435
|
+
* },
|
|
1436
|
+
* "ios": {
|
|
1437
|
+
* "osVer": "10.0",
|
|
1438
|
+
* "uniVer": "√",
|
|
1439
|
+
* "unixVer": "4.11"
|
|
1440
|
+
* },
|
|
685
1441
|
* "harmony": {
|
|
686
1442
|
* "osVer": "3.0",
|
|
687
1443
|
* "uniVer": "4.23",
|
|
688
1444
|
* "unixVer": "x"
|
|
689
1445
|
* }
|
|
690
|
-
|
|
1446
|
+
* },
|
|
691
1447
|
* "web": {
|
|
692
1448
|
* "uniVer": "x",
|
|
693
1449
|
* "unixVer": "x"
|
|
694
1450
|
* }
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
1451
|
+
* }
|
|
1452
|
+
*/
|
|
1453
|
+
orientation?: MediaOrientation,
|
|
1454
|
+
/**
|
|
1455
|
+
* 视频格式
|
|
1456
|
+
* @uniPlatform {
|
|
1457
|
+
* "app": {
|
|
1458
|
+
* "android": {
|
|
1459
|
+
* "osVer": "5.0",
|
|
1460
|
+
* "uniVer": "√",
|
|
1461
|
+
* "unixVer": "3.9"
|
|
1462
|
+
* },
|
|
1463
|
+
* "ios": {
|
|
1464
|
+
* "osVer": "10.0",
|
|
1465
|
+
* "uniVer": "√",
|
|
1466
|
+
* "unixVer": "4.11"
|
|
1467
|
+
* },
|
|
702
1468
|
* "harmony": {
|
|
703
1469
|
* "osVer": "3.0",
|
|
704
1470
|
* "uniVer": "4.23",
|
|
705
1471
|
* "unixVer": "x"
|
|
706
1472
|
* }
|
|
707
|
-
|
|
1473
|
+
* },
|
|
1474
|
+
* "mp": {
|
|
1475
|
+
* "weixin": {
|
|
1476
|
+
* "hostVer": "√",
|
|
1477
|
+
* "uniVer": "√",
|
|
1478
|
+
* "unixVer": "4.41"
|
|
1479
|
+
* },
|
|
1480
|
+
* "alipay": {
|
|
1481
|
+
* "hostVer": "√",
|
|
1482
|
+
* "uniVer": "√",
|
|
1483
|
+
* "unixVer": "x"
|
|
1484
|
+
* },
|
|
1485
|
+
* "baidu": {
|
|
1486
|
+
* "hostVer": "√",
|
|
1487
|
+
* "uniVer": "√",
|
|
1488
|
+
* "unixVer": "x"
|
|
1489
|
+
* },
|
|
1490
|
+
* "toutiao": {
|
|
1491
|
+
* "hostVer": "√",
|
|
1492
|
+
* "uniVer": "√",
|
|
1493
|
+
* "unixVer": "x"
|
|
1494
|
+
* },
|
|
1495
|
+
* "lark": {
|
|
1496
|
+
* "hostVer": "√",
|
|
1497
|
+
* "uniVer": "√",
|
|
1498
|
+
* "unixVer": "x"
|
|
1499
|
+
* },
|
|
1500
|
+
* "qq": {
|
|
1501
|
+
* "hostVer": "√",
|
|
1502
|
+
* "uniVer": "√",
|
|
1503
|
+
* "unixVer": "x"
|
|
1504
|
+
* },
|
|
1505
|
+
* "kuaishou": {
|
|
1506
|
+
* "hostVer": "√",
|
|
1507
|
+
* "uniVer": "√",
|
|
1508
|
+
* "unixVer": "x"
|
|
1509
|
+
* },
|
|
1510
|
+
* "jd": {
|
|
1511
|
+
* "hostVer": "√",
|
|
1512
|
+
* "uniVer": "√",
|
|
1513
|
+
* "unixVer": "x"
|
|
1514
|
+
* }
|
|
1515
|
+
* },
|
|
708
1516
|
* "web": {
|
|
709
1517
|
* "uniVer": "x",
|
|
710
1518
|
* "unixVer": "x"
|
|
711
1519
|
* }
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
1520
|
+
* }
|
|
1521
|
+
*/
|
|
1522
|
+
type: string | null,
|
|
1523
|
+
/**
|
|
1524
|
+
* 视频长度
|
|
1525
|
+
*/
|
|
1526
|
+
duration: number,
|
|
1527
|
+
/**
|
|
1528
|
+
* 视频大小,单位 kB
|
|
1529
|
+
*/
|
|
1530
|
+
size: number,
|
|
1531
|
+
/**
|
|
1532
|
+
* 视频的长,单位 px
|
|
1533
|
+
*/
|
|
1534
|
+
height: number,
|
|
1535
|
+
/**
|
|
1536
|
+
* 视频的宽,单位 px
|
|
1537
|
+
*/
|
|
1538
|
+
width: number,
|
|
1539
|
+
/**
|
|
1540
|
+
* 视频帧率
|
|
1541
|
+
* @uniPlatform {
|
|
1542
|
+
* "app": {
|
|
1543
|
+
* "android": {
|
|
1544
|
+
* "osVer": "5.0",
|
|
1545
|
+
* "uniVer": "√",
|
|
1546
|
+
* "unixVer": "3.9"
|
|
1547
|
+
* },
|
|
1548
|
+
* "ios": {
|
|
1549
|
+
* "osVer": "10.0",
|
|
1550
|
+
* "uniVer": "√",
|
|
1551
|
+
* "unixVer": "4.11"
|
|
1552
|
+
* },
|
|
735
1553
|
* "harmony": {
|
|
736
1554
|
* "osVer": "x",
|
|
737
1555
|
* "uniVer": "x",
|
|
738
1556
|
* "unixVer": "x"
|
|
739
1557
|
* }
|
|
740
|
-
|
|
1558
|
+
* },
|
|
1559
|
+
* "mp": {
|
|
1560
|
+
* "weixin": {
|
|
1561
|
+
* "hostVer": "√",
|
|
1562
|
+
* "uniVer": "√",
|
|
1563
|
+
* "unixVer": "4.41"
|
|
1564
|
+
* },
|
|
1565
|
+
* "alipay": {
|
|
1566
|
+
* "hostVer": "√",
|
|
1567
|
+
* "uniVer": "√",
|
|
1568
|
+
* "unixVer": "x"
|
|
1569
|
+
* },
|
|
1570
|
+
* "baidu": {
|
|
1571
|
+
* "hostVer": "√",
|
|
1572
|
+
* "uniVer": "√",
|
|
1573
|
+
* "unixVer": "x"
|
|
1574
|
+
* },
|
|
1575
|
+
* "toutiao": {
|
|
1576
|
+
* "hostVer": "√",
|
|
1577
|
+
* "uniVer": "√",
|
|
1578
|
+
* "unixVer": "x"
|
|
1579
|
+
* },
|
|
1580
|
+
* "lark": {
|
|
1581
|
+
* "hostVer": "√",
|
|
1582
|
+
* "uniVer": "√",
|
|
1583
|
+
* "unixVer": "x"
|
|
1584
|
+
* },
|
|
1585
|
+
* "qq": {
|
|
1586
|
+
* "hostVer": "√",
|
|
1587
|
+
* "uniVer": "√",
|
|
1588
|
+
* "unixVer": "x"
|
|
1589
|
+
* },
|
|
1590
|
+
* "kuaishou": {
|
|
1591
|
+
* "hostVer": "√",
|
|
1592
|
+
* "uniVer": "√",
|
|
1593
|
+
* "unixVer": "x"
|
|
1594
|
+
* },
|
|
1595
|
+
* "jd": {
|
|
1596
|
+
* "hostVer": "√",
|
|
1597
|
+
* "uniVer": "√",
|
|
1598
|
+
* "unixVer": "x"
|
|
1599
|
+
* }
|
|
1600
|
+
* },
|
|
741
1601
|
* "web": {
|
|
742
1602
|
* "uniVer": "x",
|
|
743
1603
|
* "unixVer": "x"
|
|
744
1604
|
* }
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
1605
|
+
* }
|
|
1606
|
+
*/
|
|
1607
|
+
fps: number | null,
|
|
1608
|
+
/**
|
|
1609
|
+
* 视频码率,单位 kbps
|
|
1610
|
+
* @uniPlatform {
|
|
1611
|
+
* "app": {
|
|
1612
|
+
* "android": {
|
|
1613
|
+
* "osVer": "5.0",
|
|
1614
|
+
* "uniVer": "√",
|
|
1615
|
+
* "unixVer": "3.9"
|
|
1616
|
+
* },
|
|
1617
|
+
* "ios": {
|
|
1618
|
+
* "osVer": "10.0",
|
|
1619
|
+
* "uniVer": "√",
|
|
1620
|
+
* "unixVer": "4.11"
|
|
1621
|
+
* },
|
|
752
1622
|
* "harmony": {
|
|
753
1623
|
* "osVer": "x",
|
|
754
1624
|
* "uniVer": "x",
|
|
755
1625
|
* "unixVer": "x"
|
|
756
1626
|
* }
|
|
757
|
-
|
|
1627
|
+
* },
|
|
1628
|
+
* "mp": {
|
|
1629
|
+
* "weixin": {
|
|
1630
|
+
* "hostVer": "√",
|
|
1631
|
+
* "uniVer": "√",
|
|
1632
|
+
* "unixVer": "4.41"
|
|
1633
|
+
* },
|
|
1634
|
+
* "alipay": {
|
|
1635
|
+
* "hostVer": "√",
|
|
1636
|
+
* "uniVer": "√",
|
|
1637
|
+
* "unixVer": "x"
|
|
1638
|
+
* },
|
|
1639
|
+
* "baidu": {
|
|
1640
|
+
* "hostVer": "√",
|
|
1641
|
+
* "uniVer": "√",
|
|
1642
|
+
* "unixVer": "x"
|
|
1643
|
+
* },
|
|
1644
|
+
* "toutiao": {
|
|
1645
|
+
* "hostVer": "√",
|
|
1646
|
+
* "uniVer": "√",
|
|
1647
|
+
* "unixVer": "x"
|
|
1648
|
+
* },
|
|
1649
|
+
* "lark": {
|
|
1650
|
+
* "hostVer": "√",
|
|
1651
|
+
* "uniVer": "√",
|
|
1652
|
+
* "unixVer": "x"
|
|
1653
|
+
* },
|
|
1654
|
+
* "qq": {
|
|
1655
|
+
* "hostVer": "√",
|
|
1656
|
+
* "uniVer": "√",
|
|
1657
|
+
* "unixVer": "x"
|
|
1658
|
+
* },
|
|
1659
|
+
* "kuaishou": {
|
|
1660
|
+
* "hostVer": "√",
|
|
1661
|
+
* "uniVer": "√",
|
|
1662
|
+
* "unixVer": "x"
|
|
1663
|
+
* },
|
|
1664
|
+
* "jd": {
|
|
1665
|
+
* "hostVer": "√",
|
|
1666
|
+
* "uniVer": "√",
|
|
1667
|
+
* "unixVer": "x"
|
|
1668
|
+
* }
|
|
1669
|
+
* },
|
|
758
1670
|
* "web": {
|
|
759
1671
|
* "uniVer": "x",
|
|
760
1672
|
* "unixVer": "x"
|
|
761
1673
|
* }
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
1674
|
+
* }
|
|
1675
|
+
*/
|
|
1676
|
+
bitrate: number | null
|
|
765
1677
|
};
|
|
766
1678
|
|
|
767
1679
|
export type GetVideoInfoFail = IMediaError;
|
|
768
|
-
export type GetVideoInfoSuccessCallback = (callback
|
|
769
|
-
export type GetVideoInfoFailCallback = (callback
|
|
1680
|
+
export type GetVideoInfoSuccessCallback = (callback: GetVideoInfoSuccess) => void
|
|
1681
|
+
export type GetVideoInfoFailCallback = (callback: GetVideoInfoFail) => void
|
|
770
1682
|
export type GetVideoInfoCompleteCallback = ChooseImageCompleteCallback
|
|
771
1683
|
|
|
772
1684
|
export type GetVideoInfoOptions = {
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
1685
|
+
/**
|
|
1686
|
+
* 视频文件路径,可以是临时文件路径也可以是永久文件路径
|
|
1687
|
+
*/
|
|
1688
|
+
src: string.VideoURIString,
|
|
1689
|
+
/**
|
|
1690
|
+
* 接口调用成功的回调函数
|
|
1691
|
+
*/
|
|
1692
|
+
success?: (GetVideoInfoSuccessCallback) | null,
|
|
1693
|
+
/**
|
|
1694
|
+
* 接口调用失败的回调函数
|
|
1695
|
+
*/
|
|
1696
|
+
fail?: (GetVideoInfoFailCallback) | null,
|
|
1697
|
+
/**
|
|
1698
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
1699
|
+
*/
|
|
1700
|
+
complete?: (GetVideoInfoCompleteCallback) | null
|
|
789
1701
|
};
|
|
790
1702
|
|
|
791
|
-
export type GetVideoInfo = (options
|
|
1703
|
+
export type GetVideoInfo = (options: GetVideoInfoOptions) => void;
|
|
792
1704
|
|
|
793
1705
|
export type SaveVideoToPhotosAlbumSuccess = {};
|
|
794
1706
|
|
|
795
1707
|
export type SaveVideoToPhotosAlbumFail = IMediaError;
|
|
796
|
-
export type SaveVideoToPhotosAlbumSuccessCallback = (callback
|
|
797
|
-
export type SaveVideoToPhotosAlbumFailCallback = (callback
|
|
1708
|
+
export type SaveVideoToPhotosAlbumSuccessCallback = (callback: SaveVideoToPhotosAlbumSuccess) => void
|
|
1709
|
+
export type SaveVideoToPhotosAlbumFailCallback = (callback: SaveVideoToPhotosAlbumFail) => void
|
|
798
1710
|
export type SaveVideoToPhotosAlbumCompleteCallback = ChooseImageCompleteCallback
|
|
799
1711
|
|
|
800
1712
|
export type SaveVideoToPhotosAlbumOptions = {
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
1713
|
+
/**
|
|
1714
|
+
* 视频文件路径,可以是临时文件路径也可以是永久文件路径
|
|
1715
|
+
*/
|
|
1716
|
+
filePath: string.VideoURIString,
|
|
1717
|
+
/**
|
|
1718
|
+
* 接口调用成功的回调函数
|
|
1719
|
+
*/
|
|
1720
|
+
success?: (SaveVideoToPhotosAlbumSuccessCallback) | null,
|
|
1721
|
+
/**
|
|
1722
|
+
* 接口调用失败的回调函数
|
|
1723
|
+
*/
|
|
1724
|
+
fail?: (SaveVideoToPhotosAlbumFailCallback) | null,
|
|
1725
|
+
/**
|
|
1726
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
1727
|
+
*/
|
|
1728
|
+
complete?: (SaveVideoToPhotosAlbumCompleteCallback) | null
|
|
817
1729
|
};
|
|
818
1730
|
|
|
819
|
-
export type SaveVideoToPhotosAlbum = (options
|
|
1731
|
+
export type SaveVideoToPhotosAlbum = (options: SaveVideoToPhotosAlbumOptions) => void;
|
|
820
1732
|
|
|
821
1733
|
export type CompressVideoSuccess = {
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
1734
|
+
/**
|
|
1735
|
+
* 压缩后的临时文件地址
|
|
1736
|
+
*/
|
|
1737
|
+
tempFilePath: string,
|
|
1738
|
+
/**
|
|
1739
|
+
* 压缩后的大小,单位 kB
|
|
1740
|
+
*/
|
|
1741
|
+
size: number
|
|
830
1742
|
};
|
|
831
1743
|
|
|
832
1744
|
export type CompressVideoFail = IMediaError;
|
|
833
|
-
export type CompressVideoSuccessCallback = (callback
|
|
834
|
-
export type CompressVideoFailCallback = (callback
|
|
1745
|
+
export type CompressVideoSuccessCallback = (callback: CompressVideoSuccess) => void
|
|
1746
|
+
export type CompressVideoFailCallback = (callback: CompressVideoFail) => void
|
|
835
1747
|
export type CompressVideoCompleteCallback = ChooseImageCompleteCallback
|
|
836
1748
|
|
|
837
1749
|
export type CompressVideoOptions = {
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
1750
|
+
/**
|
|
1751
|
+
* 视频文件路径,可以是临时文件路径也可以是永久文件路径
|
|
1752
|
+
*/
|
|
1753
|
+
src: string.VideoURIString,
|
|
1754
|
+
/**
|
|
1755
|
+
* 压缩质量
|
|
1756
|
+
*
|
|
1757
|
+
* @type 'low' | 'medium' | 'high'
|
|
1758
|
+
*/
|
|
1759
|
+
quality?: string | null,
|
|
1760
|
+
/**
|
|
1761
|
+
* 码率,单位 kbps
|
|
1762
|
+
* @uniPlatform {
|
|
1763
|
+
* "app": {
|
|
1764
|
+
* "android": {
|
|
1765
|
+
* "osVer": "5.0",
|
|
1766
|
+
* "uniVer": "√",
|
|
1767
|
+
* "unixVer": "x"
|
|
1768
|
+
* }
|
|
1769
|
+
* },
|
|
1770
|
+
* "mp": {
|
|
1771
|
+
* "weixin": {
|
|
1772
|
+
* "hostVer": "√",
|
|
1773
|
+
* "uniVer": "√",
|
|
1774
|
+
* "unixVer": "4.41"
|
|
1775
|
+
* },
|
|
1776
|
+
* "alipay": {
|
|
1777
|
+
* "hostVer": "√",
|
|
1778
|
+
* "uniVer": "√",
|
|
1779
|
+
* "unixVer": "x"
|
|
1780
|
+
* },
|
|
1781
|
+
* "baidu": {
|
|
1782
|
+
* "hostVer": "√",
|
|
1783
|
+
* "uniVer": "√",
|
|
1784
|
+
* "unixVer": "x"
|
|
1785
|
+
* },
|
|
1786
|
+
* "toutiao": {
|
|
1787
|
+
* "hostVer": "√",
|
|
1788
|
+
* "uniVer": "√",
|
|
1789
|
+
* "unixVer": "x"
|
|
1790
|
+
* },
|
|
1791
|
+
* "lark": {
|
|
1792
|
+
* "hostVer": "√",
|
|
1793
|
+
* "uniVer": "√",
|
|
1794
|
+
* "unixVer": "x"
|
|
1795
|
+
* },
|
|
1796
|
+
* "qq": {
|
|
1797
|
+
* "hostVer": "√",
|
|
1798
|
+
* "uniVer": "√",
|
|
1799
|
+
* "unixVer": "x"
|
|
1800
|
+
* },
|
|
1801
|
+
* "kuaishou": {
|
|
1802
|
+
* "hostVer": "√",
|
|
1803
|
+
* "uniVer": "√",
|
|
1804
|
+
* "unixVer": "x"
|
|
1805
|
+
* },
|
|
1806
|
+
* "jd": {
|
|
1807
|
+
* "hostVer": "√",
|
|
1808
|
+
* "uniVer": "√",
|
|
1809
|
+
* "unixVer": "x"
|
|
1810
|
+
* }
|
|
1811
|
+
* }
|
|
1812
|
+
* }
|
|
1813
|
+
*/
|
|
1814
|
+
bitrate?: number | null,
|
|
1815
|
+
/**
|
|
1816
|
+
* 帧率
|
|
1817
|
+
* @uniPlatform {
|
|
1818
|
+
* "app": {
|
|
1819
|
+
* "android": {
|
|
1820
|
+
* "osVer": "5.0",
|
|
1821
|
+
* "uniVer": "√",
|
|
1822
|
+
* "unixVer": "x"
|
|
1823
|
+
* }
|
|
1824
|
+
* },
|
|
1825
|
+
* "mp": {
|
|
1826
|
+
* "weixin": {
|
|
1827
|
+
* "hostVer": "√",
|
|
1828
|
+
* "uniVer": "√",
|
|
1829
|
+
* "unixVer": "4.41"
|
|
1830
|
+
* },
|
|
1831
|
+
* "alipay": {
|
|
1832
|
+
* "hostVer": "√",
|
|
1833
|
+
* "uniVer": "√",
|
|
1834
|
+
* "unixVer": "x"
|
|
1835
|
+
* },
|
|
1836
|
+
* "baidu": {
|
|
1837
|
+
* "hostVer": "√",
|
|
1838
|
+
* "uniVer": "√",
|
|
1839
|
+
* "unixVer": "x"
|
|
1840
|
+
* },
|
|
1841
|
+
* "toutiao": {
|
|
1842
|
+
* "hostVer": "√",
|
|
1843
|
+
* "uniVer": "√",
|
|
1844
|
+
* "unixVer": "x"
|
|
1845
|
+
* },
|
|
1846
|
+
* "lark": {
|
|
1847
|
+
* "hostVer": "√",
|
|
1848
|
+
* "uniVer": "√",
|
|
1849
|
+
* "unixVer": "x"
|
|
1850
|
+
* },
|
|
1851
|
+
* "qq": {
|
|
1852
|
+
* "hostVer": "√",
|
|
1853
|
+
* "uniVer": "√",
|
|
1854
|
+
* "unixVer": "x"
|
|
1855
|
+
* },
|
|
1856
|
+
* "kuaishou": {
|
|
1857
|
+
* "hostVer": "√",
|
|
1858
|
+
* "uniVer": "√",
|
|
1859
|
+
* "unixVer": "x"
|
|
1860
|
+
* },
|
|
1861
|
+
* "jd": {
|
|
1862
|
+
* "hostVer": "√",
|
|
1863
|
+
* "uniVer": "√",
|
|
1864
|
+
* "unixVer": "x"
|
|
1865
|
+
* }
|
|
1866
|
+
* }
|
|
1867
|
+
* }
|
|
1868
|
+
*/
|
|
1869
|
+
fps?: number | null,
|
|
1870
|
+
/**
|
|
1871
|
+
* 相对于原视频的分辨率比例,取值范围(0, 1]
|
|
1872
|
+
*/
|
|
1873
|
+
resolution?: number | null,
|
|
1874
|
+
/**
|
|
1875
|
+
* 接口调用成功的回调函数
|
|
1876
|
+
*/
|
|
1877
|
+
success?: (CompressVideoSuccessCallback) | null,
|
|
1878
|
+
/**
|
|
1879
|
+
* 接口调用失败的回调函数
|
|
1880
|
+
*/
|
|
1881
|
+
fail?: (CompressVideoFailCallback) | null,
|
|
1882
|
+
/**
|
|
1883
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
1884
|
+
*/
|
|
1885
|
+
complete?: (CompressVideoCompleteCallback) | null
|
|
890
1886
|
};
|
|
891
1887
|
|
|
892
|
-
export type CompressVideo = (options
|
|
1888
|
+
export type CompressVideo = (options: CompressVideoOptions) => void;
|
|
893
1889
|
|
|
894
1890
|
export type ChooseFile = (options: ChooseFileOptions) => void;
|
|
895
1891
|
export type ChooseFileSuccess = {
|
|
@@ -951,170 +1947,326 @@ export type ChooseFileOptions = {
|
|
|
951
1947
|
|
|
952
1948
|
export type ChooseMediaFileType = 'image' | 'video'
|
|
953
1949
|
export type ChooseMediaTempFile = {
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
1950
|
+
/**
|
|
1951
|
+
* 选定视频的临时文件路径
|
|
1952
|
+
*/
|
|
1953
|
+
tempFilePath: string,
|
|
1954
|
+
/**
|
|
1955
|
+
* 文件类型
|
|
1956
|
+
*/
|
|
1957
|
+
fileType: ChooseMediaFileType
|
|
1958
|
+
/**
|
|
1959
|
+
* 选定视频的数据量大小
|
|
1960
|
+
*/
|
|
1961
|
+
size: number,
|
|
1962
|
+
/**
|
|
1963
|
+
* 选定视频的时间长度
|
|
1964
|
+
*/
|
|
1965
|
+
duration?: number | null,
|
|
1966
|
+
/**
|
|
1967
|
+
* 返回选定视频的长
|
|
1968
|
+
*/
|
|
1969
|
+
height?: number | null,
|
|
1970
|
+
/**
|
|
1971
|
+
* 返回选定视频的宽
|
|
1972
|
+
*/
|
|
1973
|
+
width?: number | null,
|
|
1974
|
+
/**
|
|
1975
|
+
* 视频缩略图临时文件路径
|
|
1976
|
+
*/
|
|
1977
|
+
thumbTempFilePath?: string | null
|
|
982
1978
|
}
|
|
983
1979
|
export type ChooseMediaSuccess = {
|
|
984
|
-
|
|
985
|
-
|
|
1980
|
+
tempFiles: ChooseMediaTempFile[],
|
|
1981
|
+
type: 'image' | 'video' | 'mix'
|
|
986
1982
|
};
|
|
987
1983
|
|
|
988
1984
|
export type ChooseMediaFail = IMediaError;
|
|
989
|
-
export type ChooseMediaSuccessCallback = (callback
|
|
990
|
-
export type ChooseMediaFailCallback = (callback
|
|
1985
|
+
export type ChooseMediaSuccessCallback = (callback: ChooseMediaSuccess) => void
|
|
1986
|
+
export type ChooseMediaFailCallback = (callback: ChooseMediaFail) => void
|
|
991
1987
|
export type ChooseMediaCompleteCallback = ChooseImageCompleteCallback
|
|
992
1988
|
|
|
993
1989
|
export type ChooseMediaOptions = {
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1990
|
+
/**
|
|
1991
|
+
* 最多可以选择的文件个数
|
|
1992
|
+
* @defaultValue 9
|
|
1993
|
+
*/
|
|
1994
|
+
count?: number | null
|
|
1995
|
+
/**
|
|
1996
|
+
* album 从相册选视频,camera 使用相机拍摄,合法值:'image'、'video'、'mix'
|
|
1997
|
+
* @defaultValue ['image', 'video']
|
|
1998
|
+
*/
|
|
1999
|
+
mediaType?: (string[]) | null,
|
|
2000
|
+
/**
|
|
2001
|
+
* album 从相册选视频,camera 使用相机拍摄
|
|
2002
|
+
* @defaultValue ['album', 'camera']
|
|
2003
|
+
*/
|
|
2004
|
+
sourceType?: (string[]) | null,
|
|
2005
|
+
/**
|
|
2006
|
+
* 仅对 mediaType 为 image 时有效,是否压缩所选文件
|
|
2007
|
+
* @defaultValue ['original','compressed']
|
|
2008
|
+
* @uniPlatform {
|
|
2009
|
+
* "app":{
|
|
2010
|
+
* "android": {
|
|
2011
|
+
* "osVer": "5.0",
|
|
2012
|
+
* "uniVer": "√",
|
|
2013
|
+
* "unixVer": "3.9"
|
|
2014
|
+
* },
|
|
2015
|
+
* "ios": {
|
|
2016
|
+
* "osVer": "10.0",
|
|
2017
|
+
* "uniVer": "√",
|
|
2018
|
+
* "unixVer": "4.11"
|
|
2019
|
+
* },
|
|
1014
2020
|
* "harmony": {
|
|
1015
2021
|
* "osVer": "3.0",
|
|
1016
2022
|
* "uniVer": "4.23",
|
|
1017
2023
|
* "unixVer": "x"
|
|
1018
2024
|
* }
|
|
1019
|
-
|
|
2025
|
+
* },
|
|
2026
|
+
* "mp": {
|
|
2027
|
+
* "weixin": {
|
|
2028
|
+
* "hostVer": "√",
|
|
2029
|
+
* "uniVer": "√",
|
|
2030
|
+
* "unixVer": "4.41"
|
|
2031
|
+
* },
|
|
2032
|
+
* "alipay": {
|
|
2033
|
+
* "hostVer": "√",
|
|
2034
|
+
* "uniVer": "√",
|
|
2035
|
+
* "unixVer": "x"
|
|
2036
|
+
* },
|
|
2037
|
+
* "baidu": {
|
|
2038
|
+
* "hostVer": "√",
|
|
2039
|
+
* "uniVer": "√",
|
|
2040
|
+
* "unixVer": "x"
|
|
2041
|
+
* },
|
|
2042
|
+
* "toutiao": {
|
|
2043
|
+
* "hostVer": "√",
|
|
2044
|
+
* "uniVer": "√",
|
|
2045
|
+
* "unixVer": "x"
|
|
2046
|
+
* },
|
|
2047
|
+
* "lark": {
|
|
2048
|
+
* "hostVer": "√",
|
|
2049
|
+
* "uniVer": "√",
|
|
2050
|
+
* "unixVer": "x"
|
|
2051
|
+
* },
|
|
2052
|
+
* "qq": {
|
|
2053
|
+
* "hostVer": "√",
|
|
2054
|
+
* "uniVer": "√",
|
|
2055
|
+
* "unixVer": "x"
|
|
2056
|
+
* },
|
|
2057
|
+
* "kuaishou": {
|
|
2058
|
+
* "hostVer": "√",
|
|
2059
|
+
* "uniVer": "√",
|
|
2060
|
+
* "unixVer": "x"
|
|
2061
|
+
* },
|
|
2062
|
+
* "jd": {
|
|
2063
|
+
* "hostVer": "√",
|
|
2064
|
+
* "uniVer": "√",
|
|
2065
|
+
* "unixVer": "x"
|
|
2066
|
+
* }
|
|
2067
|
+
* },
|
|
1020
2068
|
* "web": {
|
|
1021
2069
|
* "uniVer": "x",
|
|
1022
2070
|
* "unixVer": "x"
|
|
1023
2071
|
* }
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
2072
|
+
* }
|
|
2073
|
+
*/
|
|
2074
|
+
sizeType?: (string[]) | null,
|
|
2075
|
+
/**
|
|
2076
|
+
* 拍摄视频最长拍摄时间,单位秒。时间范围为 3s 至 30s 之间
|
|
2077
|
+
* @defaultValue 10
|
|
2078
|
+
* @uniPlatform {
|
|
2079
|
+
* "app": {
|
|
2080
|
+
* "android": {
|
|
2081
|
+
* "osVer": "5.0",
|
|
2082
|
+
* "uniVer": "√",
|
|
2083
|
+
* "unixVer": "3.9"
|
|
2084
|
+
* },
|
|
2085
|
+
* "ios": {
|
|
2086
|
+
* "osVer": "10.0",
|
|
2087
|
+
* "uniVer": "√",
|
|
2088
|
+
* "unixVer": "4.11"
|
|
2089
|
+
* },
|
|
1032
2090
|
* "harmony": {
|
|
1033
2091
|
* "osVer": "3.0",
|
|
1034
2092
|
* "uniVer": "4.31",
|
|
1035
2093
|
* "unixVer": "x"
|
|
1036
2094
|
* }
|
|
1037
|
-
|
|
2095
|
+
* },
|
|
2096
|
+
* "mp": {
|
|
2097
|
+
* "weixin": {
|
|
2098
|
+
* "hostVer": "√",
|
|
2099
|
+
* "uniVer": "√",
|
|
2100
|
+
* "unixVer": "4.41"
|
|
2101
|
+
* },
|
|
2102
|
+
* "alipay": {
|
|
2103
|
+
* "hostVer": "√",
|
|
2104
|
+
* "uniVer": "√",
|
|
2105
|
+
* "unixVer": "x"
|
|
2106
|
+
* },
|
|
2107
|
+
* "baidu": {
|
|
2108
|
+
* "hostVer": "√",
|
|
2109
|
+
* "uniVer": "√",
|
|
2110
|
+
* "unixVer": "x"
|
|
2111
|
+
* },
|
|
2112
|
+
* "toutiao": {
|
|
2113
|
+
* "hostVer": "√",
|
|
2114
|
+
* "uniVer": "√",
|
|
2115
|
+
* "unixVer": "x"
|
|
2116
|
+
* },
|
|
2117
|
+
* "lark": {
|
|
2118
|
+
* "hostVer": "√",
|
|
2119
|
+
* "uniVer": "√",
|
|
2120
|
+
* "unixVer": "x"
|
|
2121
|
+
* },
|
|
2122
|
+
* "qq": {
|
|
2123
|
+
* "hostVer": "√",
|
|
2124
|
+
* "uniVer": "√",
|
|
2125
|
+
* "unixVer": "x"
|
|
2126
|
+
* },
|
|
2127
|
+
* "kuaishou": {
|
|
2128
|
+
* "hostVer": "√",
|
|
2129
|
+
* "uniVer": "√",
|
|
2130
|
+
* "unixVer": "x"
|
|
2131
|
+
* },
|
|
2132
|
+
* "jd": {
|
|
2133
|
+
* "hostVer": "√",
|
|
2134
|
+
* "uniVer": "√",
|
|
2135
|
+
* "unixVer": "x"
|
|
2136
|
+
* }
|
|
2137
|
+
* },
|
|
1038
2138
|
* "web": {
|
|
1039
2139
|
* "uniVer": "x",
|
|
1040
2140
|
* "unixVer": "x"
|
|
1041
2141
|
* }
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
2142
|
+
* }
|
|
2143
|
+
*/
|
|
2144
|
+
maxDuration?: number | null,
|
|
2145
|
+
/**
|
|
2146
|
+
* 仅在 sourceType 为 camera 时生效,使用前置或后置摄像头
|
|
2147
|
+
*
|
|
2148
|
+
* @uniPlatform {
|
|
2149
|
+
* "app": {
|
|
2150
|
+
* "android": {
|
|
2151
|
+
* "osVer": "5.0",
|
|
2152
|
+
* "uniVer": "√",
|
|
2153
|
+
* "unixVer": "3.9"
|
|
2154
|
+
* },
|
|
2155
|
+
* "ios": {
|
|
2156
|
+
* "osVer": "10.0",
|
|
2157
|
+
* "uniVer": "√",
|
|
2158
|
+
* "unixVer": "4.11"
|
|
2159
|
+
* },
|
|
1050
2160
|
* "harmony": {
|
|
1051
2161
|
* "osVer": "3.0",
|
|
1052
2162
|
* "uniVer": "4.25",
|
|
1053
2163
|
* "unixVer": "x"
|
|
1054
2164
|
* }
|
|
1055
|
-
|
|
2165
|
+
* },
|
|
2166
|
+
* "mp": {
|
|
2167
|
+
* "weixin": {
|
|
2168
|
+
* "hostVer": "√",
|
|
2169
|
+
* "uniVer": "√",
|
|
2170
|
+
* "unixVer": "4.41"
|
|
2171
|
+
* },
|
|
2172
|
+
* "alipay": {
|
|
2173
|
+
* "hostVer": "√",
|
|
2174
|
+
* "uniVer": "√",
|
|
2175
|
+
* "unixVer": "x"
|
|
2176
|
+
* },
|
|
2177
|
+
* "baidu": {
|
|
2178
|
+
* "hostVer": "√",
|
|
2179
|
+
* "uniVer": "√",
|
|
2180
|
+
* "unixVer": "x"
|
|
2181
|
+
* },
|
|
2182
|
+
* "toutiao": {
|
|
2183
|
+
* "hostVer": "√",
|
|
2184
|
+
* "uniVer": "√",
|
|
2185
|
+
* "unixVer": "x"
|
|
2186
|
+
* },
|
|
2187
|
+
* "lark": {
|
|
2188
|
+
* "hostVer": "√",
|
|
2189
|
+
* "uniVer": "√",
|
|
2190
|
+
* "unixVer": "x"
|
|
2191
|
+
* },
|
|
2192
|
+
* "qq": {
|
|
2193
|
+
* "hostVer": "√",
|
|
2194
|
+
* "uniVer": "√",
|
|
2195
|
+
* "unixVer": "x"
|
|
2196
|
+
* },
|
|
2197
|
+
* "kuaishou": {
|
|
2198
|
+
* "hostVer": "√",
|
|
2199
|
+
* "uniVer": "√",
|
|
2200
|
+
* "unixVer": "x"
|
|
2201
|
+
* },
|
|
2202
|
+
* "jd": {
|
|
2203
|
+
* "hostVer": "√",
|
|
2204
|
+
* "uniVer": "√",
|
|
2205
|
+
* "unixVer": "x"
|
|
2206
|
+
* }
|
|
2207
|
+
* },
|
|
1056
2208
|
* "web": {
|
|
1057
2209
|
* "uniVer": "x",
|
|
1058
2210
|
* "unixVer": "x"
|
|
1059
2211
|
* }
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
2212
|
+
* }
|
|
2213
|
+
*/
|
|
2214
|
+
camera?:
|
|
2215
|
+
/**
|
|
2216
|
+
* 前置摄像头
|
|
2217
|
+
*/
|
|
2218
|
+
'front' |
|
|
2219
|
+
/**
|
|
2220
|
+
* 后置摄像头
|
|
2221
|
+
*/
|
|
2222
|
+
'back' | null,
|
|
2223
|
+
/**
|
|
2224
|
+
* 接口调用成功,返回视频文件的临时文件路径,详见返回参数说明
|
|
2225
|
+
*/
|
|
2226
|
+
success?: (ChooseMediaSuccessCallback) | null,
|
|
2227
|
+
/**
|
|
2228
|
+
* 接口调用失败的回调函数
|
|
2229
|
+
*/
|
|
2230
|
+
fail?: (ChooseMediaFailCallback) | null,
|
|
2231
|
+
/**
|
|
2232
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
2233
|
+
*/
|
|
2234
|
+
complete?: (ChooseMediaCompleteCallback) | null
|
|
1083
2235
|
};
|
|
1084
2236
|
|
|
1085
|
-
export type ChooseMedia = (options
|
|
2237
|
+
export type ChooseMedia = (options: ChooseMediaOptions) => void;
|
|
1086
2238
|
|
|
1087
2239
|
export interface Uni {
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
2240
|
+
/**
|
|
2241
|
+
* 从本地相册选择图片或使用相机拍照
|
|
2242
|
+
* @description 从本地相册选择图片或使用相机拍照
|
|
2243
|
+
* @uniPlatform {
|
|
2244
|
+
* "app": {
|
|
2245
|
+
* "android": {
|
|
2246
|
+
* "osVer": "5.0",
|
|
2247
|
+
* "uniVer": "√",
|
|
2248
|
+
* "unixVer": "3.9+"
|
|
2249
|
+
* },
|
|
2250
|
+
* "ios": {
|
|
2251
|
+
* "osVer": "12.0",
|
|
2252
|
+
* "uniVer": "√",
|
|
2253
|
+
* "unixVer": "4.11"
|
|
2254
|
+
* },
|
|
1103
2255
|
* "harmony": {
|
|
1104
2256
|
* "osVer": "3.0",
|
|
1105
2257
|
* "uniVer": "4.23",
|
|
1106
2258
|
* "unixVer": "x"
|
|
1107
2259
|
* }
|
|
1108
|
-
|
|
2260
|
+
* },
|
|
1109
2261
|
* "web": {
|
|
1110
2262
|
* "uniVer": "√",
|
|
1111
2263
|
* "unixVer": "4.0"
|
|
1112
2264
|
* },
|
|
1113
|
-
|
|
2265
|
+
* "mp": {
|
|
1114
2266
|
* "weixin": {
|
|
1115
2267
|
* "hostVer": "√",
|
|
1116
2268
|
* "uniVer": "√",
|
|
1117
|
-
* "unixVer": "
|
|
2269
|
+
* "unixVer": "4.41"
|
|
1118
2270
|
* },
|
|
1119
2271
|
* "alipay": {
|
|
1120
2272
|
* "hostVer": "√",
|
|
@@ -1152,55 +2304,55 @@ export interface Uni {
|
|
|
1152
2304
|
* "unixVer": "x"
|
|
1153
2305
|
* }
|
|
1154
2306
|
* }
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
2307
|
+
* }
|
|
2308
|
+
* @uniVueVersion 2,3
|
|
2309
|
+
* @example
|
|
2310
|
+
* ```typescript
|
|
2311
|
+
* uni.chooseImage({
|
|
2312
|
+
* count:3,
|
|
2313
|
+
* success(e){
|
|
2314
|
+
* console.log(JSON.stringify(e))
|
|
2315
|
+
* }
|
|
2316
|
+
* })
|
|
2317
|
+
* ```
|
|
2318
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/media/image.html#chooseimage
|
|
2319
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/choose-image.html
|
|
2320
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/choose-image.html
|
|
2321
|
+
* @autotest {
|
|
2322
|
+
generated:false
|
|
2323
|
+
}
|
|
2324
|
+
*/
|
|
2325
|
+
chooseImage(options: ChooseImageOptions): void;
|
|
2326
|
+
/**
|
|
2327
|
+
* 预览图片
|
|
2328
|
+
* @description 预览图片
|
|
2329
|
+
* @uniPlatform {
|
|
2330
|
+
* "app": {
|
|
2331
|
+
* "android": {
|
|
2332
|
+
* "osVer": "5.0",
|
|
2333
|
+
* "uniVer": "√",
|
|
2334
|
+
* "unixVer": "3.9+"
|
|
2335
|
+
* },
|
|
2336
|
+
* "ios": {
|
|
2337
|
+
* "osVer": "12.0",
|
|
2338
|
+
* "uniVer": "√",
|
|
2339
|
+
* "unixVer": "4.11"
|
|
2340
|
+
* },
|
|
1189
2341
|
* "harmony": {
|
|
1190
2342
|
* "osVer": "3.0",
|
|
1191
2343
|
* "uniVer": "4.23",
|
|
1192
2344
|
* "unixVer": "x"
|
|
1193
2345
|
* }
|
|
1194
|
-
|
|
2346
|
+
* },
|
|
1195
2347
|
* "web": {
|
|
1196
2348
|
* "uniVer": "√",
|
|
1197
2349
|
* "unixVer": "4.0"
|
|
1198
2350
|
* },
|
|
1199
|
-
|
|
2351
|
+
* "mp": {
|
|
1200
2352
|
* "weixin": {
|
|
1201
2353
|
* "hostVer": "√",
|
|
1202
2354
|
* "uniVer": "√",
|
|
1203
|
-
* "unixVer": "
|
|
2355
|
+
* "unixVer": "4.41"
|
|
1204
2356
|
* },
|
|
1205
2357
|
* "alipay": {
|
|
1206
2358
|
* "hostVer": "√",
|
|
@@ -1238,443 +2390,863 @@ export interface Uni {
|
|
|
1238
2390
|
* "unixVer": "x"
|
|
1239
2391
|
* }
|
|
1240
2392
|
* }
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
2393
|
+
* }
|
|
2394
|
+
* @uniVueVersion 2,3
|
|
2395
|
+
* @example
|
|
2396
|
+
* ```typescript
|
|
2397
|
+
* uni.previewImage({
|
|
2398
|
+
* urls:['/static/a.jpg','/static/b.jpg'],
|
|
2399
|
+
* success(e){
|
|
2400
|
+
* console.log(JSON.stringify(e))
|
|
2401
|
+
* }
|
|
2402
|
+
* })
|
|
2403
|
+
* ```
|
|
2404
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/media/image.html#unipreviewimageobject
|
|
2405
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/preview-image.html
|
|
2406
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/preview-image.html
|
|
2407
|
+
* @autotest {
|
|
2408
|
+
generated:false
|
|
2409
|
+
}
|
|
2410
|
+
*/
|
|
2411
|
+
previewImage(options: PreviewImageOptions): void;
|
|
2412
|
+
/**
|
|
2413
|
+
* 关闭图片预览
|
|
2414
|
+
* @description 关闭图片预览
|
|
2415
|
+
* @uniPlatform {
|
|
2416
|
+
* "app": {
|
|
2417
|
+
* "android": {
|
|
2418
|
+
* "osVer": "5.0",
|
|
2419
|
+
* "uniVer": "√",
|
|
2420
|
+
* "unixVer": "3.9+"
|
|
2421
|
+
* },
|
|
2422
|
+
* "ios": {
|
|
2423
|
+
* "osVer": "12.0",
|
|
2424
|
+
* "uniVer": "√",
|
|
2425
|
+
* "unixVer": "4.11"
|
|
2426
|
+
* },
|
|
1275
2427
|
* "harmony": {
|
|
1276
2428
|
* "osVer": "3.0",
|
|
1277
2429
|
* "uniVer": "4.23",
|
|
1278
2430
|
* "unixVer": "x"
|
|
1279
2431
|
* }
|
|
1280
|
-
|
|
2432
|
+
* },
|
|
2433
|
+
* "mp": {
|
|
2434
|
+
* "weixin": {
|
|
2435
|
+
* "hostVer": "√",
|
|
2436
|
+
* "uniVer": "√",
|
|
2437
|
+
* "unixVer": "4.41"
|
|
2438
|
+
* },
|
|
2439
|
+
* "alipay": {
|
|
2440
|
+
* "hostVer": "√",
|
|
2441
|
+
* "uniVer": "√",
|
|
2442
|
+
* "unixVer": "x"
|
|
2443
|
+
* },
|
|
2444
|
+
* "baidu": {
|
|
2445
|
+
* "hostVer": "√",
|
|
2446
|
+
* "uniVer": "√",
|
|
2447
|
+
* "unixVer": "x"
|
|
2448
|
+
* },
|
|
2449
|
+
* "toutiao": {
|
|
2450
|
+
* "hostVer": "√",
|
|
2451
|
+
* "uniVer": "√",
|
|
2452
|
+
* "unixVer": "x"
|
|
2453
|
+
* },
|
|
2454
|
+
* "lark": {
|
|
2455
|
+
* "hostVer": "√",
|
|
2456
|
+
* "uniVer": "√",
|
|
2457
|
+
* "unixVer": "x"
|
|
2458
|
+
* },
|
|
2459
|
+
* "qq": {
|
|
2460
|
+
* "hostVer": "√",
|
|
2461
|
+
* "uniVer": "√",
|
|
2462
|
+
* "unixVer": "x"
|
|
2463
|
+
* },
|
|
2464
|
+
* "kuaishou": {
|
|
2465
|
+
* "hostVer": "√",
|
|
2466
|
+
* "uniVer": "√",
|
|
2467
|
+
* "unixVer": "x"
|
|
2468
|
+
* },
|
|
2469
|
+
* "jd": {
|
|
2470
|
+
* "hostVer": "√",
|
|
2471
|
+
* "uniVer": "√",
|
|
2472
|
+
* "unixVer": "x"
|
|
2473
|
+
* }
|
|
2474
|
+
* },
|
|
1281
2475
|
* "web": {
|
|
1282
2476
|
* "uniVer": "√",
|
|
1283
2477
|
* "unixVer": "4.0"
|
|
1284
2478
|
* }
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
2479
|
+
* }
|
|
2480
|
+
* @uniVueVersion 2,3
|
|
2481
|
+
* @example
|
|
2482
|
+
* ```typescript
|
|
2483
|
+
* uni.closePreviewImage({
|
|
2484
|
+
* success(e){
|
|
2485
|
+
* console.log(JSON.stringify(e))
|
|
2486
|
+
* }
|
|
2487
|
+
* })
|
|
2488
|
+
* ```
|
|
2489
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/media/image.html#closepreviewimage
|
|
2490
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/preview-image.html#closepreviewimage
|
|
2491
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/preview-image.html#closepreviewimage
|
|
2492
|
+
* @autotest {
|
|
2493
|
+
generated:false
|
|
2494
|
+
}
|
|
2495
|
+
*/
|
|
2496
|
+
closePreviewImage(options: ClosePreviewImageOptions): void;
|
|
2497
|
+
/**
|
|
2498
|
+
* 获取图片信息
|
|
2499
|
+
* @description 获取图片信息
|
|
2500
|
+
* @uniPlatform {
|
|
2501
|
+
* "app": {
|
|
2502
|
+
* "android": {
|
|
2503
|
+
* "osVer": "5.0",
|
|
2504
|
+
* "uniVer": "√",
|
|
2505
|
+
* "unixVer": "4.18"
|
|
2506
|
+
* },
|
|
2507
|
+
* "ios": {
|
|
2508
|
+
* "osVer": "12.0",
|
|
2509
|
+
* "uniVer": "√",
|
|
2510
|
+
* "unixVer": "4.25"
|
|
2511
|
+
* },
|
|
1318
2512
|
* "harmony": {
|
|
1319
2513
|
* "osVer": "3.0",
|
|
1320
2514
|
* "uniVer": "4.23",
|
|
1321
2515
|
* "unixVer": "x"
|
|
1322
2516
|
* }
|
|
1323
|
-
|
|
2517
|
+
* },
|
|
2518
|
+
* "mp": {
|
|
2519
|
+
* "weixin": {
|
|
2520
|
+
* "hostVer": "√",
|
|
2521
|
+
* "uniVer": "√",
|
|
2522
|
+
* "unixVer": "4.41"
|
|
2523
|
+
* },
|
|
2524
|
+
* "alipay": {
|
|
2525
|
+
* "hostVer": "√",
|
|
2526
|
+
* "uniVer": "√",
|
|
2527
|
+
* "unixVer": "x"
|
|
2528
|
+
* },
|
|
2529
|
+
* "baidu": {
|
|
2530
|
+
* "hostVer": "√",
|
|
2531
|
+
* "uniVer": "√",
|
|
2532
|
+
* "unixVer": "x"
|
|
2533
|
+
* },
|
|
2534
|
+
* "toutiao": {
|
|
2535
|
+
* "hostVer": "√",
|
|
2536
|
+
* "uniVer": "√",
|
|
2537
|
+
* "unixVer": "x"
|
|
2538
|
+
* },
|
|
2539
|
+
* "lark": {
|
|
2540
|
+
* "hostVer": "√",
|
|
2541
|
+
* "uniVer": "√",
|
|
2542
|
+
* "unixVer": "x"
|
|
2543
|
+
* },
|
|
2544
|
+
* "qq": {
|
|
2545
|
+
* "hostVer": "√",
|
|
2546
|
+
* "uniVer": "√",
|
|
2547
|
+
* "unixVer": "x"
|
|
2548
|
+
* },
|
|
2549
|
+
* "kuaishou": {
|
|
2550
|
+
* "hostVer": "√",
|
|
2551
|
+
* "uniVer": "√",
|
|
2552
|
+
* "unixVer": "x"
|
|
2553
|
+
* },
|
|
2554
|
+
* "jd": {
|
|
2555
|
+
* "hostVer": "√",
|
|
2556
|
+
* "uniVer": "√",
|
|
2557
|
+
* "unixVer": "x"
|
|
2558
|
+
* }
|
|
2559
|
+
* },
|
|
1324
2560
|
* "web": {
|
|
1325
2561
|
* "uniVer": "√",
|
|
1326
2562
|
* "unixVer": "4.0"
|
|
1327
2563
|
* }
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
2564
|
+
* }
|
|
2565
|
+
* @uniVueVersion 2,3
|
|
2566
|
+
* @example
|
|
2567
|
+
* ```typescript
|
|
2568
|
+
* uni.getImageInfo({
|
|
2569
|
+
* src:'/static/a.jpg',
|
|
2570
|
+
* success(e){
|
|
2571
|
+
* console.log(JSON.stringify(e))
|
|
2572
|
+
* },
|
|
2573
|
+
* })
|
|
2574
|
+
* ```
|
|
2575
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/media/image.html#getimageinfo
|
|
2576
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-image-info.html
|
|
2577
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-image-info.html
|
|
2578
|
+
* @autotest {
|
|
2579
|
+
generated:false,
|
|
2580
|
+
case:[
|
|
2581
|
+
{
|
|
2582
|
+
input:[{"src":"/static/a.jpg"}]
|
|
2583
|
+
}
|
|
2584
|
+
]
|
|
2585
|
+
}
|
|
2586
|
+
*/
|
|
2587
|
+
getImageInfo(options: GetImageInfoOptions): void;
|
|
2588
|
+
/**
|
|
2589
|
+
* 保存图片到系统相册
|
|
2590
|
+
* @description 保存图片到系统相册
|
|
2591
|
+
* @uniPlatform {
|
|
2592
|
+
* "app": {
|
|
2593
|
+
* "android": {
|
|
2594
|
+
* "osVer": "5.0",
|
|
2595
|
+
* "uniVer": "√",
|
|
2596
|
+
* "unixVer": "3.9+"
|
|
2597
|
+
* },
|
|
2598
|
+
* "ios": {
|
|
2599
|
+
* "osVer": "12.0",
|
|
2600
|
+
* "uniVer": "√",
|
|
2601
|
+
* "unixVer": "4.11"
|
|
2602
|
+
* },
|
|
1367
2603
|
* "harmony": {
|
|
1368
2604
|
* "osVer": "3.0",
|
|
1369
2605
|
* "uniVer": "4.23",
|
|
1370
2606
|
* "unixVer": "x"
|
|
1371
2607
|
* }
|
|
1372
|
-
|
|
2608
|
+
* },
|
|
2609
|
+
* "mp": {
|
|
2610
|
+
* "weixin": {
|
|
2611
|
+
* "hostVer": "√",
|
|
2612
|
+
* "uniVer": "√",
|
|
2613
|
+
* "unixVer": "4.41"
|
|
2614
|
+
* },
|
|
2615
|
+
* "alipay": {
|
|
2616
|
+
* "hostVer": "√",
|
|
2617
|
+
* "uniVer": "√",
|
|
2618
|
+
* "unixVer": "x"
|
|
2619
|
+
* },
|
|
2620
|
+
* "baidu": {
|
|
2621
|
+
* "hostVer": "√",
|
|
2622
|
+
* "uniVer": "√",
|
|
2623
|
+
* "unixVer": "x"
|
|
2624
|
+
* },
|
|
2625
|
+
* "toutiao": {
|
|
2626
|
+
* "hostVer": "√",
|
|
2627
|
+
* "uniVer": "√",
|
|
2628
|
+
* "unixVer": "x"
|
|
2629
|
+
* },
|
|
2630
|
+
* "lark": {
|
|
2631
|
+
* "hostVer": "√",
|
|
2632
|
+
* "uniVer": "√",
|
|
2633
|
+
* "unixVer": "x"
|
|
2634
|
+
* },
|
|
2635
|
+
* "qq": {
|
|
2636
|
+
* "hostVer": "√",
|
|
2637
|
+
* "uniVer": "√",
|
|
2638
|
+
* "unixVer": "x"
|
|
2639
|
+
* },
|
|
2640
|
+
* "kuaishou": {
|
|
2641
|
+
* "hostVer": "√",
|
|
2642
|
+
* "uniVer": "√",
|
|
2643
|
+
* "unixVer": "x"
|
|
2644
|
+
* },
|
|
2645
|
+
* "jd": {
|
|
2646
|
+
* "hostVer": "√",
|
|
2647
|
+
* "uniVer": "√",
|
|
2648
|
+
* "unixVer": "x"
|
|
2649
|
+
* }
|
|
2650
|
+
* },
|
|
1373
2651
|
* "web": {
|
|
1374
2652
|
* "uniVer": "x",
|
|
1375
2653
|
* "unixVer": "x"
|
|
1376
2654
|
* }
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
2655
|
+
* }
|
|
2656
|
+
* @uniVueVersion 2,3
|
|
2657
|
+
* @example
|
|
2658
|
+
* ```typescript
|
|
2659
|
+
* uni.saveImageToPhotosAlbum({
|
|
2660
|
+
* filePath:'/static/a.jpg',
|
|
2661
|
+
* success(e){
|
|
2662
|
+
* console.log(JSON.stringify(e))
|
|
2663
|
+
* },
|
|
2664
|
+
* })
|
|
2665
|
+
* ```
|
|
2666
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/media/image.html#saveimagetophotosalbum
|
|
2667
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/save-image-to-photos-album.html
|
|
2668
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/save-image-to-photos-album.html
|
|
2669
|
+
* @autotest {
|
|
2670
|
+
generated:false,
|
|
2671
|
+
case:[
|
|
2672
|
+
{
|
|
2673
|
+
input:[{"filePath":"/static/a.jpg"}]
|
|
2674
|
+
}
|
|
2675
|
+
]
|
|
2676
|
+
}
|
|
2677
|
+
*/
|
|
2678
|
+
saveImageToPhotosAlbum(options: SaveImageToPhotosAlbumOptions): void;
|
|
2679
|
+
/**
|
|
2680
|
+
* 压缩图片
|
|
2681
|
+
* @description 压缩图片
|
|
2682
|
+
* @uniPlatform {
|
|
2683
|
+
* "app": {
|
|
2684
|
+
* "android": {
|
|
2685
|
+
* "osVer": "5.0",
|
|
2686
|
+
* "uniVer": "√",
|
|
2687
|
+
* "unixVer": "4.18"
|
|
2688
|
+
* },
|
|
2689
|
+
* "ios": {
|
|
2690
|
+
* "osVer": "12.0",
|
|
2691
|
+
* "uniVer": "√",
|
|
2692
|
+
* "unixVer": "4.25"
|
|
2693
|
+
* },
|
|
1416
2694
|
* "harmony": {
|
|
1417
2695
|
* "osVer": "3.0",
|
|
1418
2696
|
* "uniVer": "4.31",
|
|
1419
2697
|
* "unixVer": "x"
|
|
1420
2698
|
* }
|
|
1421
|
-
|
|
2699
|
+
* },
|
|
2700
|
+
* "mp": {
|
|
2701
|
+
* "weixin": {
|
|
2702
|
+
* "hostVer": "√",
|
|
2703
|
+
* "uniVer": "√",
|
|
2704
|
+
* "unixVer": "4.41"
|
|
2705
|
+
* },
|
|
2706
|
+
* "alipay": {
|
|
2707
|
+
* "hostVer": "√",
|
|
2708
|
+
* "uniVer": "√",
|
|
2709
|
+
* "unixVer": "x"
|
|
2710
|
+
* },
|
|
2711
|
+
* "baidu": {
|
|
2712
|
+
* "hostVer": "√",
|
|
2713
|
+
* "uniVer": "√",
|
|
2714
|
+
* "unixVer": "x"
|
|
2715
|
+
* },
|
|
2716
|
+
* "toutiao": {
|
|
2717
|
+
* "hostVer": "√",
|
|
2718
|
+
* "uniVer": "√",
|
|
2719
|
+
* "unixVer": "x"
|
|
2720
|
+
* },
|
|
2721
|
+
* "lark": {
|
|
2722
|
+
* "hostVer": "√",
|
|
2723
|
+
* "uniVer": "√",
|
|
2724
|
+
* "unixVer": "x"
|
|
2725
|
+
* },
|
|
2726
|
+
* "qq": {
|
|
2727
|
+
* "hostVer": "√",
|
|
2728
|
+
* "uniVer": "√",
|
|
2729
|
+
* "unixVer": "x"
|
|
2730
|
+
* },
|
|
2731
|
+
* "kuaishou": {
|
|
2732
|
+
* "hostVer": "√",
|
|
2733
|
+
* "uniVer": "√",
|
|
2734
|
+
* "unixVer": "x"
|
|
2735
|
+
* },
|
|
2736
|
+
* "jd": {
|
|
2737
|
+
* "hostVer": "√",
|
|
2738
|
+
* "uniVer": "√",
|
|
2739
|
+
* "unixVer": "x"
|
|
2740
|
+
* }
|
|
2741
|
+
* },
|
|
1422
2742
|
* "web": {
|
|
1423
2743
|
* "uniVer": "x",
|
|
1424
2744
|
* "unixVer": "x"
|
|
1425
2745
|
* }
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
2746
|
+
* }
|
|
2747
|
+
* @uniVueVersion 2,3
|
|
2748
|
+
* @example
|
|
2749
|
+
* ```typescript
|
|
2750
|
+
* uni.compressImage({
|
|
2751
|
+
* src:'/static/a.jpg',
|
|
2752
|
+
* quality:80,
|
|
2753
|
+
* success(e){
|
|
2754
|
+
* console.log(JSON.stringify(e))
|
|
2755
|
+
* },
|
|
2756
|
+
* })
|
|
2757
|
+
* ```
|
|
2758
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/media/image.html#compressimage
|
|
2759
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/compress-image.html
|
|
2760
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/compress-image.html
|
|
2761
|
+
* @autotest {
|
|
2762
|
+
generated:false,
|
|
2763
|
+
case:[
|
|
2764
|
+
{
|
|
2765
|
+
input:[{"src":"/static/d.jpg"},{"rotate","30"}]
|
|
2766
|
+
}
|
|
2767
|
+
]
|
|
2768
|
+
}
|
|
2769
|
+
*/
|
|
2770
|
+
compressImage(options: CompressImageOptions): void;
|
|
2771
|
+
/**
|
|
2772
|
+
* 拍摄视频或从手机相册中选视频,返回视频的临时文件路径。
|
|
2773
|
+
* @description 拍摄视频或从手机相册中选视频,返回视频的临时文件路径。
|
|
2774
|
+
* @uniPlatform {
|
|
2775
|
+
* "app": {
|
|
2776
|
+
* "android": {
|
|
2777
|
+
* "osVer": "5.0",
|
|
2778
|
+
* "uniVer": "√",
|
|
2779
|
+
* "unixVer": "4.18"
|
|
2780
|
+
* },
|
|
2781
|
+
* "ios": {
|
|
2782
|
+
* "osVer": "12.0",
|
|
2783
|
+
* "uniVer": "√",
|
|
2784
|
+
* "unixVer": "4.18"
|
|
2785
|
+
* },
|
|
1466
2786
|
* "harmony": {
|
|
1467
2787
|
* "osVer": "3.0",
|
|
1468
2788
|
* "uniVer": "4.23",
|
|
1469
2789
|
* "unixVer": "x"
|
|
1470
2790
|
* }
|
|
1471
|
-
|
|
2791
|
+
* },
|
|
2792
|
+
* "mp": {
|
|
2793
|
+
* "weixin": {
|
|
2794
|
+
* "hostVer": "√",
|
|
2795
|
+
* "uniVer": "√",
|
|
2796
|
+
* "unixVer": "4.41"
|
|
2797
|
+
* },
|
|
2798
|
+
* "alipay": {
|
|
2799
|
+
* "hostVer": "√",
|
|
2800
|
+
* "uniVer": "√",
|
|
2801
|
+
* "unixVer": "x"
|
|
2802
|
+
* },
|
|
2803
|
+
* "baidu": {
|
|
2804
|
+
* "hostVer": "√",
|
|
2805
|
+
* "uniVer": "√",
|
|
2806
|
+
* "unixVer": "x"
|
|
2807
|
+
* },
|
|
2808
|
+
* "toutiao": {
|
|
2809
|
+
* "hostVer": "√",
|
|
2810
|
+
* "uniVer": "√",
|
|
2811
|
+
* "unixVer": "x"
|
|
2812
|
+
* },
|
|
2813
|
+
* "lark": {
|
|
2814
|
+
* "hostVer": "√",
|
|
2815
|
+
* "uniVer": "√",
|
|
2816
|
+
* "unixVer": "x"
|
|
2817
|
+
* },
|
|
2818
|
+
* "qq": {
|
|
2819
|
+
* "hostVer": "√",
|
|
2820
|
+
* "uniVer": "√",
|
|
2821
|
+
* "unixVer": "x"
|
|
2822
|
+
* },
|
|
2823
|
+
* "kuaishou": {
|
|
2824
|
+
* "hostVer": "√",
|
|
2825
|
+
* "uniVer": "√",
|
|
2826
|
+
* "unixVer": "x"
|
|
2827
|
+
* },
|
|
2828
|
+
* "jd": {
|
|
2829
|
+
* "hostVer": "√",
|
|
2830
|
+
* "uniVer": "√",
|
|
2831
|
+
* "unixVer": "x"
|
|
2832
|
+
* }
|
|
2833
|
+
* },
|
|
1472
2834
|
* "web": {
|
|
1473
2835
|
* "uniVer": "√",
|
|
1474
2836
|
* "unixVer": "4.0"
|
|
1475
2837
|
* }
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
2838
|
+
* }
|
|
2839
|
+
* @uniVueVersion 2,3
|
|
2840
|
+
* @example
|
|
2841
|
+
* ```typescript
|
|
2842
|
+
* uni.chooseVideo({
|
|
2843
|
+
* success(e){
|
|
2844
|
+
* console.log(JSON.stringify(e))
|
|
2845
|
+
* },
|
|
2846
|
+
* })
|
|
2847
|
+
* ```
|
|
2848
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/media/video.html
|
|
2849
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/choose-video.html
|
|
2850
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/choose-video.html
|
|
2851
|
+
*
|
|
2852
|
+
*/
|
|
2853
|
+
chooseVideo(options: ChooseVideoOptions): void;
|
|
2854
|
+
/**
|
|
2855
|
+
* 获取视频详细信息
|
|
2856
|
+
* @description 获取视频详细信息
|
|
2857
|
+
* @uniPlatform {
|
|
2858
|
+
* "app": {
|
|
2859
|
+
* "android": {
|
|
2860
|
+
* "osVer": "5.0",
|
|
2861
|
+
* "uniVer": "√",
|
|
2862
|
+
* "unixVer": "4.18"
|
|
2863
|
+
* },
|
|
2864
|
+
* "ios": {
|
|
2865
|
+
* "osVer": "12.0",
|
|
2866
|
+
* "uniVer": "√",
|
|
2867
|
+
* "unixVer": "4.25"
|
|
2868
|
+
* },
|
|
1507
2869
|
* "harmony": {
|
|
1508
2870
|
* "osVer": "3.0",
|
|
1509
2871
|
* "uniVer": "4.23",
|
|
1510
2872
|
* "unixVer": "x"
|
|
1511
2873
|
* }
|
|
1512
|
-
|
|
2874
|
+
* },
|
|
2875
|
+
* "mp": {
|
|
2876
|
+
* "weixin": {
|
|
2877
|
+
* "hostVer": "√",
|
|
2878
|
+
* "uniVer": "√",
|
|
2879
|
+
* "unixVer": "4.41"
|
|
2880
|
+
* },
|
|
2881
|
+
* "alipay": {
|
|
2882
|
+
* "hostVer": "√",
|
|
2883
|
+
* "uniVer": "√",
|
|
2884
|
+
* "unixVer": "x"
|
|
2885
|
+
* },
|
|
2886
|
+
* "baidu": {
|
|
2887
|
+
* "hostVer": "√",
|
|
2888
|
+
* "uniVer": "√",
|
|
2889
|
+
* "unixVer": "x"
|
|
2890
|
+
* },
|
|
2891
|
+
* "toutiao": {
|
|
2892
|
+
* "hostVer": "√",
|
|
2893
|
+
* "uniVer": "√",
|
|
2894
|
+
* "unixVer": "x"
|
|
2895
|
+
* },
|
|
2896
|
+
* "lark": {
|
|
2897
|
+
* "hostVer": "√",
|
|
2898
|
+
* "uniVer": "√",
|
|
2899
|
+
* "unixVer": "x"
|
|
2900
|
+
* },
|
|
2901
|
+
* "qq": {
|
|
2902
|
+
* "hostVer": "√",
|
|
2903
|
+
* "uniVer": "√",
|
|
2904
|
+
* "unixVer": "x"
|
|
2905
|
+
* },
|
|
2906
|
+
* "kuaishou": {
|
|
2907
|
+
* "hostVer": "√",
|
|
2908
|
+
* "uniVer": "√",
|
|
2909
|
+
* "unixVer": "x"
|
|
2910
|
+
* },
|
|
2911
|
+
* "jd": {
|
|
2912
|
+
* "hostVer": "√",
|
|
2913
|
+
* "uniVer": "√",
|
|
2914
|
+
* "unixVer": "x"
|
|
2915
|
+
* }
|
|
2916
|
+
* },
|
|
1513
2917
|
* "web": {
|
|
1514
2918
|
* "uniVer": "√",
|
|
1515
2919
|
* "unixVer": "4.0"
|
|
1516
2920
|
* }
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
2921
|
+
* }
|
|
2922
|
+
* @uniVueVersion 2,3
|
|
2923
|
+
* @example
|
|
2924
|
+
* ```typescript
|
|
2925
|
+
* uni.GetVideoInfo({
|
|
2926
|
+
* src:"/static/a.mp4",
|
|
2927
|
+
* success(e){
|
|
2928
|
+
* console.log(JSON.stringify(e))
|
|
2929
|
+
* },
|
|
2930
|
+
* })
|
|
2931
|
+
* ```
|
|
2932
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/media/video.html#getvideoinfo
|
|
2933
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-video-info.html
|
|
2934
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-video-info.html
|
|
2935
|
+
*
|
|
2936
|
+
*/
|
|
2937
|
+
getVideoInfo(options: GetVideoInfoOptions): void;
|
|
2938
|
+
/**
|
|
2939
|
+
* 保存视频到系统相册
|
|
2940
|
+
* @description 保存视频到系统相册
|
|
2941
|
+
* @uniPlatform {
|
|
2942
|
+
* "app": {
|
|
2943
|
+
* "android": {
|
|
2944
|
+
* "osVer": "5.0",
|
|
2945
|
+
* "uniVer": "√",
|
|
2946
|
+
* "unixVer": "4.18"
|
|
2947
|
+
* },
|
|
2948
|
+
* "ios": {
|
|
2949
|
+
* "osVer": "12.0",
|
|
2950
|
+
* "uniVer": "√",
|
|
2951
|
+
* "unixVer": "4.18"
|
|
2952
|
+
* },
|
|
1549
2953
|
* "harmony": {
|
|
1550
2954
|
* "osVer": "3.0",
|
|
1551
2955
|
* "uniVer": "4.23",
|
|
1552
2956
|
* "unixVer": "x"
|
|
1553
2957
|
* }
|
|
1554
|
-
|
|
2958
|
+
* },
|
|
2959
|
+
* "mp": {
|
|
2960
|
+
* "weixin": {
|
|
2961
|
+
* "hostVer": "√",
|
|
2962
|
+
* "uniVer": "√",
|
|
2963
|
+
* "unixVer": "4.41"
|
|
2964
|
+
* },
|
|
2965
|
+
* "alipay": {
|
|
2966
|
+
* "hostVer": "√",
|
|
2967
|
+
* "uniVer": "√",
|
|
2968
|
+
* "unixVer": "x"
|
|
2969
|
+
* },
|
|
2970
|
+
* "baidu": {
|
|
2971
|
+
* "hostVer": "√",
|
|
2972
|
+
* "uniVer": "√",
|
|
2973
|
+
* "unixVer": "x"
|
|
2974
|
+
* },
|
|
2975
|
+
* "toutiao": {
|
|
2976
|
+
* "hostVer": "√",
|
|
2977
|
+
* "uniVer": "√",
|
|
2978
|
+
* "unixVer": "x"
|
|
2979
|
+
* },
|
|
2980
|
+
* "lark": {
|
|
2981
|
+
* "hostVer": "√",
|
|
2982
|
+
* "uniVer": "√",
|
|
2983
|
+
* "unixVer": "x"
|
|
2984
|
+
* },
|
|
2985
|
+
* "qq": {
|
|
2986
|
+
* "hostVer": "√",
|
|
2987
|
+
* "uniVer": "√",
|
|
2988
|
+
* "unixVer": "x"
|
|
2989
|
+
* },
|
|
2990
|
+
* "kuaishou": {
|
|
2991
|
+
* "hostVer": "√",
|
|
2992
|
+
* "uniVer": "√",
|
|
2993
|
+
* "unixVer": "x"
|
|
2994
|
+
* },
|
|
2995
|
+
* "jd": {
|
|
2996
|
+
* "hostVer": "√",
|
|
2997
|
+
* "uniVer": "√",
|
|
2998
|
+
* "unixVer": "x"
|
|
2999
|
+
* }
|
|
3000
|
+
* },
|
|
1555
3001
|
* "web": {
|
|
1556
3002
|
* "uniVer": "x",
|
|
1557
3003
|
* "unixVer": "x"
|
|
1558
3004
|
* }
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
3005
|
+
* }
|
|
3006
|
+
* @uniVueVersion 2,3
|
|
3007
|
+
* @example
|
|
3008
|
+
* ```typescript
|
|
3009
|
+
* uni.saveVideoToPhotosAlbum({
|
|
3010
|
+
* filePath:"/static/a.mp4",
|
|
3011
|
+
* success(e){
|
|
3012
|
+
* console.log(JSON.stringify(e))
|
|
3013
|
+
* },
|
|
3014
|
+
* })
|
|
3015
|
+
* ```
|
|
3016
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/media/video.html#savevideotophotosalbum
|
|
3017
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/save-video-to-photos-album.html
|
|
3018
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/save-video-to-photos-album.html
|
|
3019
|
+
*
|
|
3020
|
+
*/
|
|
3021
|
+
saveVideoToPhotosAlbum(options: SaveVideoToPhotosAlbumOptions): void;
|
|
3022
|
+
/**
|
|
3023
|
+
* 压缩视频
|
|
3024
|
+
* @description 压缩视频
|
|
3025
|
+
* @uniPlatform {
|
|
3026
|
+
* "app": {
|
|
3027
|
+
* "android": {
|
|
3028
|
+
* "osVer": "5.0",
|
|
3029
|
+
* "uniVer": "3,1.10",
|
|
3030
|
+
* "unixVer": "4.18"
|
|
3031
|
+
* },
|
|
3032
|
+
* "ios": {
|
|
3033
|
+
* "osVer": "12.0",
|
|
3034
|
+
* "uniVer": "√",
|
|
3035
|
+
* "unixVer": "4.25"
|
|
3036
|
+
* },
|
|
3037
|
+
* "harmony": {
|
|
3038
|
+
* "osVer": "3,0",
|
|
3039
|
+
* "uniVer": "4.31",
|
|
3040
|
+
* "unixVer": "x"
|
|
3041
|
+
* }
|
|
3042
|
+
* },
|
|
3043
|
+
* "mp": {
|
|
3044
|
+
* "weixin": {
|
|
3045
|
+
* "hostVer": "√",
|
|
3046
|
+
* "uniVer": "√",
|
|
3047
|
+
* "unixVer": "4.41"
|
|
3048
|
+
* },
|
|
3049
|
+
* "alipay": {
|
|
3050
|
+
* "hostVer": "√",
|
|
3051
|
+
* "uniVer": "√",
|
|
3052
|
+
* "unixVer": "x"
|
|
3053
|
+
* },
|
|
3054
|
+
* "baidu": {
|
|
3055
|
+
* "hostVer": "√",
|
|
3056
|
+
* "uniVer": "√",
|
|
3057
|
+
* "unixVer": "x"
|
|
3058
|
+
* },
|
|
3059
|
+
* "toutiao": {
|
|
3060
|
+
* "hostVer": "√",
|
|
3061
|
+
* "uniVer": "√",
|
|
3062
|
+
* "unixVer": "x"
|
|
3063
|
+
* },
|
|
3064
|
+
* "lark": {
|
|
3065
|
+
* "hostVer": "√",
|
|
3066
|
+
* "uniVer": "√",
|
|
3067
|
+
* "unixVer": "x"
|
|
3068
|
+
* },
|
|
3069
|
+
* "qq": {
|
|
3070
|
+
* "hostVer": "√",
|
|
3071
|
+
* "uniVer": "√",
|
|
3072
|
+
* "unixVer": "x"
|
|
3073
|
+
* },
|
|
3074
|
+
* "kuaishou": {
|
|
3075
|
+
* "hostVer": "√",
|
|
3076
|
+
* "uniVer": "√",
|
|
3077
|
+
* "unixVer": "x"
|
|
3078
|
+
* },
|
|
3079
|
+
* "jd": {
|
|
3080
|
+
* "hostVer": "√",
|
|
3081
|
+
* "uniVer": "√",
|
|
3082
|
+
* "unixVer": "x"
|
|
3083
|
+
* }
|
|
3084
|
+
* },
|
|
1597
3085
|
* "web": {
|
|
1598
3086
|
* "uniVer": "x",
|
|
1599
3087
|
* "unixVer": "x"
|
|
1600
3088
|
* }
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
3089
|
+
* }
|
|
3090
|
+
* @uniVueVersion 2,3
|
|
3091
|
+
* @example
|
|
3092
|
+
* ```typescript
|
|
3093
|
+
* uni.compressVideo({
|
|
3094
|
+
* src:"/static/a.mp4",
|
|
3095
|
+
* quality:"low",
|
|
3096
|
+
* success(e){
|
|
3097
|
+
* console.log(JSON.stringify(e))
|
|
3098
|
+
* },
|
|
3099
|
+
* })
|
|
3100
|
+
* ```
|
|
3101
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/media/video.html#compressvideo
|
|
3102
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/compress-video.html
|
|
3103
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/compress-video.html
|
|
3104
|
+
*
|
|
3105
|
+
*/
|
|
3106
|
+
compressVideo(options: CompressVideoOptions): void;
|
|
3107
|
+
/**
|
|
3108
|
+
* 从本地选择文件(仅支持H5)
|
|
3109
|
+
*
|
|
3110
|
+
* @tutorial https://uniapp.dcloud.net.cn/api/media/file.html#choosefile
|
|
3111
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/media/file.html#choosefile
|
|
3112
|
+
* @uniPlatform {
|
|
3113
|
+
* "app": {
|
|
3114
|
+
* "android": {
|
|
3115
|
+
* "osVer": "x",
|
|
3116
|
+
* "uniVer": "x",
|
|
3117
|
+
* "unixVer": "x"
|
|
3118
|
+
* },
|
|
3119
|
+
* "ios": {
|
|
3120
|
+
* "osVer": "x",
|
|
3121
|
+
* "uniVer": "x",
|
|
3122
|
+
* "unixVer": "x"
|
|
3123
|
+
* },
|
|
3124
|
+
* "harmony": {
|
|
3125
|
+
* "osVer": "3.0",
|
|
3126
|
+
* "uniVer": "4.31",
|
|
3127
|
+
* "unixVer": "x"
|
|
3128
|
+
* }
|
|
3129
|
+
* },
|
|
3130
|
+
* "mp": {
|
|
3131
|
+
* "weixin": {
|
|
3132
|
+
* "hostVer": "√",
|
|
3133
|
+
* "uniVer": "√",
|
|
3134
|
+
* "unixVer": "4.41"
|
|
3135
|
+
* },
|
|
3136
|
+
* "alipay": {
|
|
3137
|
+
* "hostVer": "√",
|
|
3138
|
+
* "uniVer": "√",
|
|
3139
|
+
* "unixVer": "x"
|
|
3140
|
+
* },
|
|
3141
|
+
* "baidu": {
|
|
3142
|
+
* "hostVer": "√",
|
|
3143
|
+
* "uniVer": "√",
|
|
3144
|
+
* "unixVer": "x"
|
|
3145
|
+
* },
|
|
3146
|
+
* "toutiao": {
|
|
3147
|
+
* "hostVer": "√",
|
|
3148
|
+
* "uniVer": "√",
|
|
3149
|
+
* "unixVer": "x"
|
|
3150
|
+
* },
|
|
3151
|
+
* "lark": {
|
|
3152
|
+
* "hostVer": "√",
|
|
3153
|
+
* "uniVer": "√",
|
|
3154
|
+
* "unixVer": "x"
|
|
3155
|
+
* },
|
|
3156
|
+
* "qq": {
|
|
3157
|
+
* "hostVer": "√",
|
|
3158
|
+
* "uniVer": "√",
|
|
3159
|
+
* "unixVer": "x"
|
|
3160
|
+
* },
|
|
3161
|
+
* "kuaishou": {
|
|
3162
|
+
* "hostVer": "√",
|
|
3163
|
+
* "uniVer": "√",
|
|
3164
|
+
* "unixVer": "x"
|
|
3165
|
+
* },
|
|
3166
|
+
* "jd": {
|
|
3167
|
+
* "hostVer": "√",
|
|
3168
|
+
* "uniVer": "√",
|
|
3169
|
+
* "unixVer": "x"
|
|
3170
|
+
* }
|
|
3171
|
+
* },
|
|
1642
3172
|
* "web": {
|
|
1643
3173
|
* "uniVer": "2.9.9",
|
|
1644
3174
|
* "unixVer": "4.0"
|
|
1645
3175
|
* }
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
3176
|
+
* }
|
|
3177
|
+
*/
|
|
3178
|
+
chooseFile: ChooseFile;
|
|
3179
|
+
/**
|
|
3180
|
+
* 拍摄或从手机相册中选择图片或视频。
|
|
3181
|
+
*
|
|
3182
|
+
* @tutorial https://uniapp.dcloud.net.cn/api/media/video.html#choosemedia
|
|
3183
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/media/video.html#choosemedia
|
|
3184
|
+
* @uniPlatform {
|
|
3185
|
+
* "app": {
|
|
3186
|
+
* "android": {
|
|
3187
|
+
* "osVer": "x",
|
|
3188
|
+
* "uniVer": "x",
|
|
3189
|
+
* "unixVer": "x"
|
|
3190
|
+
* },
|
|
3191
|
+
* "ios": {
|
|
3192
|
+
* "osVer": "x",
|
|
3193
|
+
* "uniVer": "x",
|
|
3194
|
+
* "unixVer": "x"
|
|
3195
|
+
* },
|
|
3196
|
+
* "harmony": {
|
|
3197
|
+
* "osVer": "3.0",
|
|
3198
|
+
* "uniVer": "4.31",
|
|
3199
|
+
* "unixVer": "x"
|
|
3200
|
+
* }
|
|
3201
|
+
* },
|
|
3202
|
+
* "mp": {
|
|
3203
|
+
* "weixin": {
|
|
3204
|
+
* "hostVer": "√",
|
|
3205
|
+
* "uniVer": "√",
|
|
3206
|
+
* "unixVer": "4.41"
|
|
3207
|
+
* },
|
|
3208
|
+
* "alipay": {
|
|
3209
|
+
* "hostVer": "√",
|
|
3210
|
+
* "uniVer": "√",
|
|
3211
|
+
* "unixVer": "x"
|
|
3212
|
+
* },
|
|
3213
|
+
* "baidu": {
|
|
3214
|
+
* "hostVer": "√",
|
|
3215
|
+
* "uniVer": "√",
|
|
3216
|
+
* "unixVer": "x"
|
|
3217
|
+
* },
|
|
3218
|
+
* "toutiao": {
|
|
3219
|
+
* "hostVer": "√",
|
|
3220
|
+
* "uniVer": "√",
|
|
3221
|
+
* "unixVer": "x"
|
|
3222
|
+
* },
|
|
3223
|
+
* "lark": {
|
|
3224
|
+
* "hostVer": "√",
|
|
3225
|
+
* "uniVer": "√",
|
|
3226
|
+
* "unixVer": "x"
|
|
3227
|
+
* },
|
|
3228
|
+
* "qq": {
|
|
3229
|
+
* "hostVer": "√",
|
|
3230
|
+
* "uniVer": "√",
|
|
3231
|
+
* "unixVer": "x"
|
|
3232
|
+
* },
|
|
3233
|
+
* "kuaishou": {
|
|
3234
|
+
* "hostVer": "√",
|
|
3235
|
+
* "uniVer": "√",
|
|
3236
|
+
* "unixVer": "x"
|
|
3237
|
+
* },
|
|
3238
|
+
* "jd": {
|
|
3239
|
+
* "hostVer": "√",
|
|
3240
|
+
* "uniVer": "√",
|
|
3241
|
+
* "unixVer": "x"
|
|
3242
|
+
* }
|
|
3243
|
+
* },
|
|
1672
3244
|
* "web": {
|
|
1673
3245
|
* "uniVer": "x",
|
|
1674
3246
|
* "unixVer": "x"
|
|
1675
3247
|
* }
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
3248
|
+
* }
|
|
3249
|
+
*/
|
|
3250
|
+
chooseMedia: ChooseMedia;
|
|
1679
3251
|
|
|
1680
3252
|
}
|