@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.
Files changed (126) hide show
  1. package/package.json +1 -1
  2. package/types/UniPage.d.ts +48 -9
  3. package/types/app.d.ts +8 -5
  4. package/types/native/AsyncApiResult.d.ts +1 -0
  5. package/types/native/CanvasRenderingContext2D.d.ts +1 -1
  6. package/types/native/IUniElement.d.ts +130 -35
  7. package/types/native/UniElement.d.ts +2 -1
  8. package/types/native/UniTextElement.d.ts +1 -0
  9. package/types/native/global.d.ts +16 -0
  10. package/types/page.d.ts +47 -5
  11. package/types/uni/env/index.d.ts +87 -73
  12. package/types/uni/global.d.ts +1 -0
  13. package/types/uni/index.d.ts +1 -0
  14. package/types/uni/uni-map-tencent-global.d.ts +33 -0
  15. package/types/uni/uni-map-tencent-map.d.ts +52 -0
  16. package/types/uni/uts-plugin-api/global.d.ts +2 -1
  17. package/types/uni/uts-plugin-api/index.d.ts +2 -1
  18. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +0 -2
  19. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +0 -1
  20. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +212 -219
  21. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +73 -73
  22. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +331 -205
  23. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +73 -73
  24. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +848 -208
  25. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-chooseLocation/utssdk/global.d.ts +5 -6
  26. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-chooseLocation/utssdk/index.d.ts +3 -3
  27. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +414 -0
  28. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +2 -2
  29. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +4 -0
  30. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +2 -0
  31. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1226 -1726
  32. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +1 -1
  33. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +102 -18
  34. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +2 -2
  35. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +1199 -1045
  36. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +294 -263
  37. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +33 -28
  38. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +210 -0
  39. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +4828 -1750
  40. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +490 -448
  41. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2138 -829
  42. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +4 -0
  43. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +2 -0
  44. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +664 -114
  45. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +891 -9
  46. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +3 -3
  47. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +254 -114
  48. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +152 -12
  49. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +813 -57
  50. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/global.d.ts +0 -2
  51. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/interface.d.ts +0 -45
  52. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +274 -148
  53. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +38 -3
  54. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +969 -969
  55. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +3161 -43
  56. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +316 -22
  57. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +2 -2
  58. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +42 -0
  59. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +41 -41
  60. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +88 -88
  61. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +8 -0
  62. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +4 -0
  63. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +2765 -1193
  64. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +18 -18
  65. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +3098 -1153
  66. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +13 -13
  67. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +42 -0
  68. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +10 -10
  69. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +621 -369
  70. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/global.d.ts +8 -0
  71. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/index.d.ts +4 -0
  72. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/interface.d.ts +1 -0
  73. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +540 -253
  74. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +2602 -1131
  75. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +2 -2
  76. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +58 -58
  77. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +77 -35
  78. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +42 -0
  79. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/global.d.ts +4 -0
  80. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/index.d.ts +2 -0
  81. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +614 -15
  82. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +857 -437
  83. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +58 -16
  84. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +8 -0
  85. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +4 -0
  86. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +1057 -516
  87. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +1656 -1488
  88. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1752 -786
  89. package/types/uni/uts-plugin-biz/global.d.ts +1 -0
  90. package/types/uni/uts-plugin-biz/index.d.ts +1 -0
  91. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +85 -1
  92. package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/interface.d.ts +46 -46
  93. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +72 -20
  94. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +126 -0
  95. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +4 -0
  96. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +2 -0
  97. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +98 -15
  98. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +677 -299
  99. package/types/uni/uts-plugin-extend/README.md +3 -0
  100. package/types/uni/uts-plugin-extend/global.d.ts +1 -0
  101. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/global.d.ts +7 -0
  102. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/index.d.ts +0 -0
  103. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/interface.d.ts +3 -0
  104. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +4 -4
  105. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +5 -5
  106. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +302 -302
  107. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +77 -77
  108. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +431 -11
  109. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
  110. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +6 -6
  111. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +2 -2
  112. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +73 -73
  113. package/types/uni-cloud/interface.d.ts +91 -0
  114. package/uts-plugin.d.ts +3 -1
  115. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +0 -151
  116. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +0 -11
  117. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +0 -4
  118. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +0 -224
  119. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +0 -53
  120. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +0 -25
  121. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +0 -487
  122. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +0 -9
  123. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +0 -1
  124. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +0 -165
  125. /package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/global.d.ts +0 -0
  126. /package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/index.d.ts +0 -0
@@ -1,1733 +1,1233 @@
1
+
1
2
  export interface Uni {
2
- /**
3
- * 创建并返回 audio 上下文 audioContext 对象
4
- *
5
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/create-inner-audio-context.html
6
- * @tutorial-uni-app http://uniapp.dcloud.io/api/media/audio-context.html
7
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/create-inner-audio-context.html
8
- *
9
- * @uniPlatform {
10
- * "app": {
11
- * "android": {
12
- * "osVer": "5.0",
13
- * "uniVer": "√",
14
- * "unixVer": "x"
15
- * },
16
- * "ios": {
17
- * "osVer": "12.0",
18
- * "uniVer": "√",
19
- * "unixVer": "x"
20
- * },
21
- * "harmony": {
22
- * "osVer": "3.0",
23
- * "uniVer": "4.25",
24
- * "unixVer": "x"
25
- * }
26
- * },
27
- * "web": {
28
- * "uniVer": "√",
29
- * "unixVer": "4.0"
30
- * }
31
- * "mp":{
32
- * "weixin": {
33
- * "hostVer": "",
34
- * "uniVer": "√",
35
- * "unixVer": "x"
36
- * },
37
- * "alipay": {
38
- * "hostVer": "1.23.4",
39
- * "uniVer": "√",
40
- * "unixVer": "x"
41
- * },
42
- * "baidu": {
43
- * "hostVer": "√",
44
- * "uniVer": "√",
45
- * "unixVer": "x"
46
- * },
47
- * "toutiao": {
48
- * "hostVer": "√",
49
- * "uniVer": "√",
50
- * "unixVer": "x"
51
- * },
52
- * "lark": {
53
- * "hostVer": "√",
54
- * "uniVer": "√",
55
- * "unixVer": "x"
56
- * },
57
- * "qq": {
58
- * "hostVer": "√",
59
- * "uniVer": "√",
60
- * "unixVer": "x"
61
- * },
62
- * "kuaishou": {
63
- * "hostVer": "√",
64
- * "uniVer": "√",
65
- * "unixVer": "x"
66
- * },
67
- * "jd": {
68
- * "hostVer": "√",
69
- * "uniVer": "√",
70
- * "unixVer": "x"
71
- * }
72
- * }
73
- * }
74
- */
75
- createInnerAudioContext: CreateInnerAudioContext;
3
+ /**
4
+ * 创建并返回 audio 上下文 audioContext 对象
5
+ *
6
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/create-inner-audio-context.html
7
+ * @tutorial-uni-app http://uniapp.dcloud.io/api/media/audio-context.html
8
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/create-inner-audio-context.html
9
+ * @uniPlatform
10
+ {
11
+ "app": {
12
+ "android": {
13
+ "osVer": "5.0",
14
+ "uniVer": "√",
15
+ "uniUtsPlugin": "x",
16
+ "unixVer": "4.33",
17
+ "unixUtsPlugin": "4.33"
18
+ },
19
+ "ios": {
20
+ "osVer": "12.0",
21
+ "uniVer": "√",
22
+ "uniUtsPlugin": "x",
23
+ "unixVer": "4.41",
24
+ "unixUtsPlugin": "4.41"
25
+ }
26
+ },
27
+ "mp": {
28
+ "weixin": {
29
+ "hostVer": "√",
30
+ "uniVer": "",
31
+ "unixVer": "4.41"
32
+ },
33
+ "alipay": {
34
+ "hostVer": "1.23.4",
35
+ "uniVer": "√",
36
+ "unixVer": "x"
37
+ },
38
+ "baidu": {
39
+ "hostVer": "",
40
+ "uniVer": "√",
41
+ "unixVer": "x"
42
+ },
43
+ "toutiao": {
44
+ "hostVer": "√",
45
+ "uniVer": "√",
46
+ "unixVer": "x"
47
+ },
48
+ "lark": {
49
+ "hostVer": "√",
50
+ "uniVer": "√",
51
+ "unixVer": "x"
52
+ },
53
+ "qq": {
54
+ "hostVer": "√",
55
+ "uniVer": "√",
56
+ "unixVer": "x"
57
+ },
58
+ "kuaishou": {
59
+ "hostVer": "√",
60
+ "uniVer": "√",
61
+ "unixVer": "x"
62
+ },
63
+ "jd": {
64
+ "hostVer": "√",
65
+ "uniVer": "√",
66
+ "unixVer": "x"
67
+ }
68
+ },
69
+ "web": {
70
+ "uniVer": "√",
71
+ "unixVer": "4.0"
72
+ }
73
+ }
74
+ */
75
+ createInnerAudioContext: CreateInnerAudioContext;
76
76
  }
77
77
 
78
78
  export type CreateInnerAudioContext = () => InnerAudioContext;
79
79
 
80
80
  export interface InnerAudioContext {
81
- /**
82
- * 当前音频的长度(单位:s),只有在当前有合法的 src 时返回
83
- */
84
- duration: number;
85
- /**
86
- * 当前音频的播放位置(单位:s),只有在当前有合法的 src 时返回
87
- */
88
- currentTime: number;
89
- /**
90
- * 当前是是否暂停或停止状态,true 表示暂停或停止,false 表示正在播放
91
- * @type boolean
92
- */
93
- paused: boolean;
94
- /**
95
- * 音频的数据链接,用于直接播放。
96
- */
97
- src: string;
98
- /**
99
- * 音频开始播放的位置(单位:s)
100
- */
101
- startTime: number;
102
- /**
103
- * 音频缓冲的时间点,仅保证当前播放时间点到此时间点内容已缓冲
104
- */
105
- buffered: number;
106
- /**
107
- * 是否自动开始播放,默认 false
108
- * @type boolean
109
- */
110
- autoplay: boolean;
111
- /**
112
- * 是否循环播放,默认 false
113
- * @type boolean
114
- */
115
- loop: boolean;
116
- /**
117
- * 是否遵循系统静音开关,当此参数为 false 时,即使用户打开了静音开关,也能继续发出声音,默认值 true
118
- * @type boolean
119
- */
120
- obeyMuteSwitch: boolean;
121
- /**
122
- * 音量。范围 0~1。
123
- */
124
- volume: number;
125
- /**
126
- * 播放的倍率。可取值: 0.5/0.8/1.0/1.25/1.5/2.0,默认值为1.0。(仅 App 支持)
127
- */
128
- playbackRate?: number;
129
- /**
130
- * 暂停
131
- */
132
- pause(): void;
133
- /**
134
- * 停止
135
- * @uniPlatform {
136
- * "app": {
137
- * "android": {
138
- * "osVer": "5.0",
139
- * "uniVer": "√",
140
- * "unixVer": "x"
141
- * },
142
- * "ios": {
143
- * "osVer": "12.0",
144
- * "uniVer": "",
145
- * "unixVer": "x"
146
- * },
147
- * "harmony": {
148
- * "osVer": "3.0",
149
- * "uniVer": "4.25",
150
- * "unixVer": "x"
151
- * }
152
- * },
153
- * "web": {
154
- * "uniVer": "√",
155
- * "unixVer": "x"
156
- * }
157
- * "mp":{
158
- * "weixin": {
159
- * "hostVer": "√",
160
- * "uniVer": "√",
161
- * "unixVer": "x"
162
- * },
163
- * "alipay": {
164
- * "hostVer": "√",
165
- * "uniVer": "√",
166
- * "unixVer": "x"
167
- * },
168
- * "baidu": {
169
- * "hostVer": "",
170
- * "uniVer": "√",
171
- * "unixVer": "x"
172
- * },
173
- * "toutiao": {
174
- * "hostVer": "√",
175
- * "uniVer": "√",
176
- * "unixVer": "x"
177
- * },
178
- * "lark": {
179
- * "hostVer": "",
180
- * "uniVer": "",
181
- * "unixVer": "x"
182
- * },
183
- * "qq": {
184
- * "hostVer": "√",
185
- * "uniVer": "",
186
- * "unixVer": "x"
187
- * },
188
- * "kuaishou": {
189
- * "hostVer": "√",
190
- * "uniVer": "√",
191
- * "unixVer": "x"
192
- * },
193
- * "jd": {
194
- * "hostVer": "√",
195
- * "uniVer": "√",
196
- * "unixVer": "x"
197
- * }
198
- * }
199
- * }
200
- */
201
- stop(): void;
202
- /**
203
- * 播放
204
- * @uniPlatform {
205
- * "app": {
206
- * "android": {
207
- * "osVer": "5.0",
208
- * "uniVer": "√",
209
- * "unixVer": "x"
210
- * },
211
- * "ios": {
212
- * "osVer": "12.0",
213
- * "uniVer": "√",
214
- * "unixVer": "x"
215
- * },
216
- * "harmony": {
217
- * "osVer": "3.0",
218
- * "uniVer": "4.25",
219
- * "unixVer": "x"
220
- * }
221
- * },
222
- * "web": {
223
- * "uniVer": "",
224
- * "unixVer": "x"
225
- * }
226
- * "mp":{
227
- * "weixin": {
228
- * "hostVer": "√",
229
- * "uniVer": "√",
230
- * "unixVer": "x"
231
- * },
232
- * "alipay": {
233
- * "hostVer": "",
234
- * "uniVer": "",
235
- * "unixVer": "x"
236
- * },
237
- * "baidu": {
238
- * "hostVer": "√",
239
- * "uniVer": "",
240
- * "unixVer": "x"
241
- * },
242
- * "toutiao": {
243
- * "hostVer": "√",
244
- * "uniVer": "√",
245
- * "unixVer": "x"
246
- * },
247
- * "lark": {
248
- * "hostVer": "√",
249
- * "uniVer": "√",
250
- * "unixVer": "x"
251
- * },
252
- * "qq": {
253
- * "hostVer": "",
254
- * "uniVer": "",
255
- * "unixVer": "x"
256
- * },
257
- * "kuaishou": {
258
- * "hostVer": "",
259
- * "uniVer": "√",
260
- * "unixVer": "x"
261
- * },
262
- * "jd": {
263
- * "hostVer": "√",
264
- * "uniVer": "√",
265
- * "unixVer": "x"
266
- * }
267
- * }
268
- * }
269
- */
270
- play(): void;
271
- /**
272
- * 跳转到指定位置,单位 s
273
- * @uniPlatform {
274
- * "app": {
275
- * "android": {
276
- * "osVer": "5.0",
277
- * "uniVer": "√",
278
- * "unixVer": "x"
279
- * },
280
- * "ios": {
281
- * "osVer": "12.0",
282
- * "uniVer": "",
283
- * "unixVer": "x"
284
- * },
285
- * "harmony": {
286
- * "osVer": "3.0",
287
- * "uniVer": "4.25",
288
- * "unixVer": "x"
289
- * }
290
- * },
291
- * "web": {
292
- * "uniVer": "√",
293
- * "unixVer": "x"
294
- * }
295
- * "mp":{
296
- * "weixin": {
297
- * "hostVer": "√",
298
- * "uniVer": "√",
299
- * "unixVer": "x"
300
- * },
301
- * "alipay": {
302
- * "hostVer": "√",
303
- * "uniVer": "√",
304
- * "unixVer": "x"
305
- * },
306
- * "baidu": {
307
- * "hostVer": "√",
308
- * "uniVer": "√",
309
- * "unixVer": "x"
310
- * },
311
- * "toutiao": {
312
- * "hostVer": "",
313
- * "uniVer": "",
314
- * "unixVer": "x"
315
- * },
316
- * "lark": {
317
- * "hostVer": "√",
318
- * "uniVer": "",
319
- * "unixVer": "x"
320
- * },
321
- * "qq": {
322
- * "hostVer": "√",
323
- * "uniVer": "√",
324
- * "unixVer": "x"
325
- * },
326
- * "kuaishou": {
327
- * "hostVer": "√",
328
- * "uniVer": "√",
329
- * "unixVer": "x"
330
- * },
331
- * "jd": {
332
- * "hostVer": "√",
333
- * "uniVer": "√",
334
- * "unixVer": "x"
335
- * }
336
- * }
337
- * }
338
- */
339
- seek(position: number): void;
340
- /**
341
- * 销毁当前实例
342
- * @uniPlatform {
343
- * "app": {
344
- * "android": {
345
- * "osVer": "5.0",
346
- * "uniVer": "",
347
- * "unixVer": "x"
348
- * },
349
- * "ios": {
350
- * "osVer": "12.0",
351
- * "uniVer": "√",
352
- * "unixVer": "x"
353
- * },
354
- * "harmony": {
355
- * "osVer": "3.0",
356
- * "uniVer": "4.25",
357
- * "unixVer": "x"
358
- * }
359
- * },
360
- * "web": {
361
- * "uniVer": "√",
362
- * "unixVer": "x"
363
- * }
364
- * "mp":{
365
- * "weixin": {
366
- * "hostVer": "",
367
- * "uniVer": "",
368
- * "unixVer": "x"
369
- * },
370
- * "alipay": {
371
- * "hostVer": "",
372
- * "uniVer": "√",
373
- * "unixVer": "x"
374
- * },
375
- * "baidu": {
376
- * "hostVer": "√",
377
- * "uniVer": "√",
378
- * "unixVer": "x"
379
- * },
380
- * "toutiao": {
381
- * "hostVer": "√",
382
- * "uniVer": "√",
383
- * "unixVer": "x"
384
- * },
385
- * "lark": {
386
- * "hostVer": "√",
387
- * "uniVer": "√",
388
- * "unixVer": "x"
389
- * },
390
- * "qq": {
391
- * "hostVer": "",
392
- * "uniVer": "√",
393
- * "unixVer": "x"
394
- * },
395
- * "kuaishou": {
396
- * "hostVer": "√",
397
- * "uniVer": "√",
398
- * "unixVer": "x"
399
- * },
400
- * "jd": {
401
- * "hostVer": "",
402
- * "uniVer": "",
403
- * "unixVer": "x"
404
- * }
405
- * }
406
- * }
407
- */
408
- destroy(): void;
409
- /**
410
- * 音频进入可以播放状态,但不保证后面可以流畅播放
411
- * @uniPlatform {
412
- * "app": {
413
- * "android": {
414
- * "osVer": "5.0",
415
- * "uniVer": "√",
416
- * "unixVer": "x"
417
- * },
418
- * "ios": {
419
- * "osVer": "12.0",
420
- * "uniVer": "",
421
- * "unixVer": "x"
422
- * },
423
- * "harmony": {
424
- * "osVer": "3.0",
425
- * "uniVer": "4.25",
426
- * "unixVer": "x"
427
- * }
428
- * },
429
- * "web": {
430
- * "uniVer": "√",
431
- * "unixVer": "x"
432
- * }
433
- * "mp":{
434
- * "weixin": {
435
- * "hostVer": "√",
436
- * "uniVer": "√",
437
- * "unixVer": "x"
438
- * },
439
- * "alipay": {
440
- * "hostVer": "√",
441
- * "uniVer": "√",
442
- * "unixVer": "x"
443
- * },
444
- * "baidu": {
445
- * "hostVer": "",
446
- * "uniVer": "√",
447
- * "unixVer": "x"
448
- * },
449
- * "toutiao": {
450
- * "hostVer": "√",
451
- * "uniVer": "√",
452
- * "unixVer": "x"
453
- * },
454
- * "lark": {
455
- * "hostVer": "",
456
- * "uniVer": "",
457
- * "unixVer": "x"
458
- * },
459
- * "qq": {
460
- * "hostVer": "√",
461
- * "uniVer": "",
462
- * "unixVer": "x"
463
- * },
464
- * "kuaishou": {
465
- * "hostVer": "√",
466
- * "uniVer": "√",
467
- * "unixVer": "x"
468
- * },
469
- * "jd": {
470
- * "hostVer": "√",
471
- * "uniVer": "√",
472
- * "unixVer": "x"
473
- * }
474
- * }
475
- * }
476
- */
477
- onCanplay(callback: (result: any) => void): void;
478
- /**
479
- * 音频播放事件
480
- * @uniPlatform {
481
- * "app": {
482
- * "android": {
483
- * "osVer": "5.0",
484
- * "uniVer": "√",
485
- * "unixVer": "x"
486
- * },
487
- * "ios": {
488
- * "osVer": "12.0",
489
- * "uniVer": "√",
490
- * "unixVer": "x"
491
- * },
492
- * "harmony": {
493
- * "osVer": "3.0",
494
- * "uniVer": "4.25",
495
- * "unixVer": "x"
496
- * }
497
- * },
498
- * "web": {
499
- * "uniVer": "",
500
- * "unixVer": "x"
501
- * }
502
- * "mp":{
503
- * "weixin": {
504
- * "hostVer": "√",
505
- * "uniVer": "√",
506
- * "unixVer": "x"
507
- * },
508
- * "alipay": {
509
- * "hostVer": "",
510
- * "uniVer": "",
511
- * "unixVer": "x"
512
- * },
513
- * "baidu": {
514
- * "hostVer": "√",
515
- * "uniVer": "",
516
- * "unixVer": "x"
517
- * },
518
- * "toutiao": {
519
- * "hostVer": "√",
520
- * "uniVer": "√",
521
- * "unixVer": "x"
522
- * },
523
- * "lark": {
524
- * "hostVer": "√",
525
- * "uniVer": "√",
526
- * "unixVer": "x"
527
- * },
528
- * "qq": {
529
- * "hostVer": "",
530
- * "uniVer": "",
531
- * "unixVer": "x"
532
- * },
533
- * "kuaishou": {
534
- * "hostVer": "√",
535
- * "uniVer": "",
536
- * "unixVer": "x"
537
- * },
538
- * "jd": {
539
- * "hostVer": "√",
540
- * "uniVer": "√",
541
- * "unixVer": "x"
542
- * }
543
- * }
544
- * }
545
- */
546
- onPlay(callback: (result: any) => void): void;
547
- /**
548
- * 音频暂停事件
549
- * @uniPlatform {
550
- * "app": {
551
- * "android": {
552
- * "osVer": "4.4",
553
- * "uniVer": "",
554
- * "unixVer": "3.9.0"
555
- * }
556
- * }
557
- * }
558
- */
559
- onPause(callback: (result: any) => void): void;
560
- /**
561
- * 音频停止事件
562
- * @uniPlatform {
563
- * "app": {
564
- * "android": {
565
- * "osVer": "5.0",
566
- * "uniVer": "√",
567
- * "unixVer": "x"
568
- * },
569
- * "ios": {
570
- * "osVer": "12.0",
571
- * "uniVer": "√",
572
- * "unixVer": "x"
573
- * },
574
- * "harmony": {
575
- * "osVer": "3.0",
576
- * "uniVer": "4.25",
577
- * "unixVer": "x"
578
- * }
579
- * },
580
- * "web": {
581
- * "uniVer": "",
582
- * "unixVer": "x"
583
- * }
584
- * "mp":{
585
- * "weixin": {
586
- * "hostVer": "√",
587
- * "uniVer": "√",
588
- * "unixVer": "x"
589
- * },
590
- * "alipay": {
591
- * "hostVer": "",
592
- * "uniVer": "",
593
- * "unixVer": "x"
594
- * },
595
- * "baidu": {
596
- * "hostVer": "√",
597
- * "uniVer": "",
598
- * "unixVer": "x"
599
- * },
600
- * "toutiao": {
601
- * "hostVer": "√",
602
- * "uniVer": "√",
603
- * "unixVer": "x"
604
- * },
605
- * "lark": {
606
- * "hostVer": "√",
607
- * "uniVer": "√",
608
- * "unixVer": "x"
609
- * },
610
- * "qq": {
611
- * "hostVer": "",
612
- * "uniVer": "",
613
- * "unixVer": "x"
614
- * },
615
- * "kuaishou": {
616
- * "hostVer": "",
617
- * "uniVer": "√",
618
- * "unixVer": "x"
619
- * },
620
- * "jd": {
621
- * "hostVer": "√",
622
- * "uniVer": "√",
623
- * "unixVer": "x"
624
- * }
625
- * }
626
- * }
627
- */
628
- onStop(callback: (result: any) => void): void;
629
- /**
630
- * 音频自然播放结束事件
631
- * @uniPlatform {
632
- * "app": {
633
- * "android": {
634
- * "osVer": "5.0",
635
- * "uniVer": "√",
636
- * "unixVer": "x"
637
- * },
638
- * "ios": {
639
- * "osVer": "12.0",
640
- * "uniVer": "",
641
- * "unixVer": "x"
642
- * },
643
- * "harmony": {
644
- * "osVer": "3.0",
645
- * "uniVer": "4.25",
646
- * "unixVer": "x"
647
- * }
648
- * },
649
- * "web": {
650
- * "uniVer": "√",
651
- * "unixVer": "x"
652
- * }
653
- * "mp":{
654
- * "weixin": {
655
- * "hostVer": "√",
656
- * "uniVer": "√",
657
- * "unixVer": "x"
658
- * },
659
- * "alipay": {
660
- * "hostVer": "√",
661
- * "uniVer": "√",
662
- * "unixVer": "x"
663
- * },
664
- * "baidu": {
665
- * "hostVer": "",
666
- * "uniVer": "",
667
- * "unixVer": "x"
668
- * },
669
- * "toutiao": {
670
- * "hostVer": "",
671
- * "uniVer": "√",
672
- * "unixVer": "x"
673
- * },
674
- * "lark": {
675
- * "hostVer": "√",
676
- * "uniVer": "√",
677
- * "unixVer": "x"
678
- * },
679
- * "qq": {
680
- * "hostVer": "√",
681
- * "uniVer": "√",
682
- * "unixVer": "x"
683
- * },
684
- * "kuaishou": {
685
- * "hostVer": "√",
686
- * "uniVer": "√",
687
- * "unixVer": "x"
688
- * },
689
- * "jd": {
690
- * "hostVer": "",
691
- * "uniVer": "√",
692
- * "unixVer": "x"
693
- * }
694
- * }
695
- * }
696
- */
697
- onEnded(callback: (result: any) => void): void;
698
- /**
699
- * 音频播放进度更新事件
700
- * @uniPlatform {
701
- * "app": {
702
- * "android": {
703
- * "osVer": "5.0",
704
- * "uniVer": "√",
705
- * "unixVer": "x"
706
- * },
707
- * "ios": {
708
- * "osVer": "12.0",
709
- * "uniVer": "√",
710
- * "unixVer": "x"
711
- * },
712
- * "harmony": {
713
- * "osVer": "3.0",
714
- * "uniVer": "4.25",
715
- * "unixVer": "x"
716
- * }
717
- * },
718
- * "web": {
719
- * "uniVer": "",
720
- * "unixVer": "x"
721
- * }
722
- * "mp":{
723
- * "weixin": {
724
- * "hostVer": "",
725
- * "uniVer": "√",
726
- * "unixVer": "x"
727
- * },
728
- * "alipay": {
729
- * "hostVer": "√",
730
- * "uniVer": "√",
731
- * "unixVer": "x"
732
- * },
733
- * "baidu": {
734
- * "hostVer": "√",
735
- * "uniVer": "√",
736
- * "unixVer": "x"
737
- * },
738
- * "toutiao": {
739
- * "hostVer": "√",
740
- * "uniVer": "√",
741
- * "unixVer": "x"
742
- * },
743
- * "lark": {
744
- * "hostVer": "",
745
- * "uniVer": "√",
746
- * "unixVer": "x"
747
- * },
748
- * "qq": {
749
- * "hostVer": "√",
750
- * "uniVer": "√",
751
- * "unixVer": "x"
752
- * },
753
- * "kuaishou": {
754
- * "hostVer": "",
755
- * "uniVer": "",
756
- * "unixVer": "x"
757
- * },
758
- * "jd": {
759
- * "hostVer": "√",
760
- * "uniVer": "",
761
- * "unixVer": "x"
762
- * }
763
- * }
764
- * }
765
- */
766
- onTimeUpdate(callback: (result: any) => void): void;
767
- /**
768
- * 音频播放错误事件
769
- * @uniPlatform {
770
- * "app": {
771
- * "android": {
772
- * "osVer": "5.0",
773
- * "uniVer": "",
774
- * "unixVer": "x"
775
- * },
776
- * "ios": {
777
- * "osVer": "12.0",
778
- * "uniVer": "",
779
- * "unixVer": "x"
780
- * },
781
- * "harmony": {
782
- * "osVer": "3.0",
783
- * "uniVer": "4.25",
784
- * "unixVer": "x"
785
- * }
786
- * },
787
- * "web": {
788
- * "uniVer": "√",
789
- * "unixVer": "x"
790
- * }
791
- * "mp":{
792
- * "weixin": {
793
- * "hostVer": "√",
794
- * "uniVer": "√",
795
- * "unixVer": "x"
796
- * },
797
- * "alipay": {
798
- * "hostVer": "",
799
- * "uniVer": "√",
800
- * "unixVer": "x"
801
- * },
802
- * "baidu": {
803
- * "hostVer": "√",
804
- * "uniVer": "√",
805
- * "unixVer": "x"
806
- * },
807
- * "toutiao": {
808
- * "hostVer": "",
809
- * "uniVer": "",
810
- * "unixVer": "x"
811
- * },
812
- * "lark": {
813
- * "hostVer": "√",
814
- * "uniVer": "",
815
- * "unixVer": "x"
816
- * },
817
- * "qq": {
818
- * "hostVer": "√",
819
- * "uniVer": "√",
820
- * "unixVer": "x"
821
- * },
822
- * "kuaishou": {
823
- * "hostVer": "√",
824
- * "uniVer": "√",
825
- * "unixVer": "x"
826
- * },
827
- * "jd": {
828
- * "hostVer": "",
829
- * "uniVer": "",
830
- * "unixVer": "x"
831
- * }
832
- * }
833
- * }
834
- */
835
- onError(callback: (result: any) => void): void;
836
- /**
837
- * 音频加载中事件,当音频因为数据不足,需要停下来加载时会触发
838
- * @uniPlatform {
839
- * "app": {
840
- * "android": {
841
- * "osVer": "5.0",
842
- * "uniVer": "√",
843
- * "unixVer": "x"
844
- * },
845
- * "ios": {
846
- * "osVer": "12.0",
847
- * "uniVer": "√",
848
- * "unixVer": "x"
849
- * },
850
- * "harmony": {
851
- * "osVer": "3.0",
852
- * "uniVer": "4.25",
853
- * "unixVer": "x"
854
- * }
855
- * },
856
- * "web": {
857
- * "uniVer": "√",
858
- * "unixVer": "x"
859
- * }
860
- * "mp":{
861
- * "weixin": {
862
- * "hostVer": "",
863
- * "uniVer": "",
864
- * "unixVer": "x"
865
- * },
866
- * "alipay": {
867
- * "hostVer": "√",
868
- * "uniVer": "",
869
- * "unixVer": "x"
870
- * },
871
- * "baidu": {
872
- * "hostVer": "√",
873
- * "uniVer": "√",
874
- * "unixVer": "x"
875
- * },
876
- * "toutiao": {
877
- * "hostVer": "√",
878
- * "uniVer": "√",
879
- * "unixVer": "x"
880
- * },
881
- * "lark": {
882
- * "hostVer": "",
883
- * "uniVer": "",
884
- * "unixVer": "x"
885
- * },
886
- * "qq": {
887
- * "hostVer": "√",
888
- * "uniVer": "",
889
- * "unixVer": "x"
890
- * },
891
- * "kuaishou": {
892
- * "hostVer": "√",
893
- * "uniVer": "√",
894
- * "unixVer": "x"
895
- * },
896
- * "jd": {
897
- * "hostVer": "√",
898
- * "uniVer": "√",
899
- * "unixVer": "x"
900
- * }
901
- * }
902
- * }
903
- */
904
- onWaiting(callback: (result: any) => void): void;
905
- /**
906
- * 音频进行 seek 操作事件
907
- * @uniPlatform {
908
- * "app": {
909
- * "android": {
910
- * "osVer": "5.0",
911
- * "uniVer": "√",
912
- * "unixVer": "x"
913
- * },
914
- * "ios": {
915
- * "osVer": "12.0",
916
- * "uniVer": "",
917
- * "unixVer": "x"
918
- * },
919
- * "harmony": {
920
- * "osVer": "3.0",
921
- * "uniVer": "4.25",
922
- * "unixVer": "x"
923
- * }
924
- * },
925
- * "web": {
926
- * "uniVer": "√",
927
- * "unixVer": "x"
928
- * }
929
- * "mp":{
930
- * "weixin": {
931
- * "hostVer": "√",
932
- * "uniVer": "√",
933
- * "unixVer": "x"
934
- * },
935
- * "alipay": {
936
- * "hostVer": "",
937
- * "uniVer": "",
938
- * "unixVer": "x"
939
- * },
940
- * "baidu": {
941
- * "hostVer": "√",
942
- * "uniVer": "",
943
- * "unixVer": "x"
944
- * },
945
- * "toutiao": {
946
- * "hostVer": "√",
947
- * "uniVer": "√",
948
- * "unixVer": "x"
949
- * },
950
- * "lark": {
951
- * "hostVer": "√",
952
- * "uniVer": "√",
953
- * "unixVer": "x"
954
- * },
955
- * "qq": {
956
- * "hostVer": "√",
957
- * "uniVer": "√",
958
- * "unixVer": "x"
959
- * },
960
- * "kuaishou": {
961
- * "hostVer": "√",
962
- * "uniVer": "",
963
- * "unixVer": "x"
964
- * },
965
- * "jd": {
966
- * "hostVer": "√",
967
- * "uniVer": "",
968
- * "unixVer": "x"
969
- * }
970
- * }
971
- * }
972
- */
973
- onSeeking(callback: (result: any) => void): void;
974
- /**
975
- * 音频完成 seek 操作事件
976
- * @uniPlatform {
977
- * "app": {
978
- * "android": {
979
- * "osVer": "5.0",
980
- * "uniVer": "√",
981
- * "unixVer": "x"
982
- * },
983
- * "ios": {
984
- * "osVer": "12.0",
985
- * "uniVer": "√",
986
- * "unixVer": "x"
987
- * },
988
- * "harmony": {
989
- * "osVer": "3.0",
990
- * "uniVer": "4.25",
991
- * "unixVer": "x"
992
- * }
993
- * },
994
- * "web": {
995
- * "uniVer": "√",
996
- * "unixVer": "x"
997
- * }
998
- * "mp":{
999
- * "weixin": {
1000
- * "hostVer": "√",
1001
- * "uniVer": "√",
1002
- * "unixVer": "x"
1003
- * },
1004
- * "alipay": {
1005
- * "hostVer": "√",
1006
- * "uniVer": "√",
1007
- * "unixVer": "x"
1008
- * },
1009
- * "baidu": {
1010
- * "hostVer": "√",
1011
- * "uniVer": "√",
1012
- * "unixVer": "x"
1013
- * },
1014
- * "toutiao": {
1015
- * "hostVer": "√",
1016
- * "uniVer": "",
1017
- * "unixVer": "x"
1018
- * },
1019
- * "lark": {
1020
- * "hostVer": "√",
1021
- * "uniVer": "",
1022
- * "unixVer": "x"
1023
- * },
1024
- * "qq": {
1025
- * "hostVer": "",
1026
- * "uniVer": "√",
1027
- * "unixVer": "x"
1028
- * },
1029
- * "kuaishou": {
1030
- * "hostVer": "",
1031
- * "uniVer": "√",
1032
- * "unixVer": "x"
1033
- * },
1034
- * "jd": {
1035
- * "hostVer": "√",
1036
- * "uniVer": "√",
1037
- * "unixVer": "x"
1038
- * }
1039
- * }
1040
- * }
1041
- */
1042
- onSeeked(callback: (result: any) => void): void;
1043
- /**
1044
- * 取消监听 onCanplay 事件
1045
- * @uniPlatform {
1046
- * "app": {
1047
- * "android": {
1048
- * "osVer": "5.0",
1049
- * "uniVer": "x",
1050
- * "unixVer": "x"
1051
- * },
1052
- * "ios": {
1053
- * "osVer": "12.0",
1054
- * "uniVer": "x",
1055
- * "unixVer": "x"
1056
- * },
1057
- * "harmony": {
1058
- * "osVer": "3.0",
1059
- * "uniVer": "x",
1060
- * "unixVer": "x"
1061
- * }
1062
- * },
1063
- * "web": {
1064
- * "uniVer": "√",
1065
- * "unixVer": "x"
1066
- * }
1067
- * "mp":{
1068
- * "weixin": {
1069
- * "hostVer": "1.9.0",
1070
- * "uniVer": "√",
1071
- * "unixVer": "x"
1072
- * },
1073
- * "alipay": {
1074
- * "hostVer": "√",
1075
- * "uniVer": "√",
1076
- * "unixVer": "x"
1077
- * },
1078
- * "baidu": {
1079
- * "hostVer": "√",
1080
- * "uniVer": "√",
1081
- * "unixVer": "x"
1082
- * },
1083
- * "toutiao": {
1084
- * "hostVer": "√",
1085
- * "uniVer": "√",
1086
- * "unixVer": "x"
1087
- * },
1088
- * "lark": {
1089
- * "hostVer": "x",
1090
- * "uniVer": "x",
1091
- * "unixVer": "x"
1092
- * },
1093
- * "qq": {
1094
- * "hostVer": "x",
1095
- * "uniVer": "x",
1096
- * "unixVer": "x"
1097
- * },
1098
- * "kuaishou": {
1099
- * "hostVer": "x",
1100
- * "uniVer": "x",
1101
- * "unixVer": "x"
1102
- * },
1103
- * "jd": {
1104
- * "hostVer": "x",
1105
- * "uniVer": "x",
1106
- * "unixVer": "x"
1107
- * }
1108
- * }
1109
- * }
1110
- */
1111
- offCanplay(callback: (result: any) => void): void;
1112
- /**
1113
- * 取消监听 onPlay 事件
1114
- * @uniPlatform {
1115
- * "app": {
1116
- * "android": {
1117
- * "osVer": "5.0",
1118
- * "uniVer": "x",
1119
- * "unixVer": "x"
1120
- * },
1121
- * "ios": {
1122
- * "osVer": "12.0",
1123
- * "uniVer": "x",
1124
- * "unixVer": "x"
1125
- * },
1126
- * "harmony": {
1127
- * "osVer": "3.0",
1128
- * "uniVer": "x",
1129
- * "unixVer": "x"
1130
- * }
1131
- * },
1132
- * "web": {
1133
- * "uniVer": "√",
1134
- * "unixVer": "x"
1135
- * }
1136
- * "mp":{
1137
- * "weixin": {
1138
- * "hostVer": "1.9.0",
1139
- * "uniVer": "√",
1140
- * "unixVer": "x"
1141
- * },
1142
- * "alipay": {
1143
- * "hostVer": "√",
1144
- * "uniVer": "√",
1145
- * "unixVer": "x"
1146
- * },
1147
- * "baidu": {
1148
- * "hostVer": "√",
1149
- * "uniVer": "√",
1150
- * "unixVer": "x"
1151
- * },
1152
- * "toutiao": {
1153
- * "hostVer": "√",
1154
- * "uniVer": "√",
1155
- * "unixVer": "x"
1156
- * },
1157
- * "lark": {
1158
- * "hostVer": "x",
1159
- * "uniVer": "x",
1160
- * "unixVer": "x"
1161
- * },
1162
- * "qq": {
1163
- * "hostVer": "x",
1164
- * "uniVer": "x",
1165
- * "unixVer": "x"
1166
- * },
1167
- * "kuaishou": {
1168
- * "hostVer": "x",
1169
- * "uniVer": "x",
1170
- * "unixVer": "x"
1171
- * },
1172
- * "jd": {
1173
- * "hostVer": "x",
1174
- * "uniVer": "x",
1175
- * "unixVer": "x"
1176
- * }
1177
- * }
1178
- * }
1179
- */
1180
- offPlay(callback: (result: any) => void): void;
1181
- /**
1182
- * 取消监听 onPause 事件
1183
- * @uniPlatform {
1184
- * "app": {
1185
- * "android": {
1186
- * "osVer": "5.0",
1187
- * "uniVer": "x",
1188
- * "unixVer": "x"
1189
- * },
1190
- * "ios": {
1191
- * "osVer": "12.0",
1192
- * "uniVer": "x",
1193
- * "unixVer": "x"
1194
- * },
1195
- * "harmony": {
1196
- * "osVer": "3.0",
1197
- * "uniVer": "x",
1198
- * "unixVer": "x"
1199
- * }
1200
- * },
1201
- * "web": {
1202
- * "uniVer": "√",
1203
- * "unixVer": "x"
1204
- * }
1205
- * "mp":{
1206
- * "weixin": {
1207
- * "hostVer": "1.9.0",
1208
- * "uniVer": "√",
1209
- * "unixVer": "x"
1210
- * },
1211
- * "alipay": {
1212
- * "hostVer": "√",
1213
- * "uniVer": "√",
1214
- * "unixVer": "x"
1215
- * },
1216
- * "baidu": {
1217
- * "hostVer": "√",
1218
- * "uniVer": "√",
1219
- * "unixVer": "x"
1220
- * },
1221
- * "toutiao": {
1222
- * "hostVer": "√",
1223
- * "uniVer": "√",
1224
- * "unixVer": "x"
1225
- * },
1226
- * "lark": {
1227
- * "hostVer": "x",
1228
- * "uniVer": "x",
1229
- * "unixVer": "x"
1230
- * },
1231
- * "qq": {
1232
- * "hostVer": "x",
1233
- * "uniVer": "x",
1234
- * "unixVer": "x"
1235
- * },
1236
- * "kuaishou": {
1237
- * "hostVer": "x",
1238
- * "uniVer": "x",
1239
- * "unixVer": "x"
1240
- * },
1241
- * "jd": {
1242
- * "hostVer": "x",
1243
- * "uniVer": "x",
1244
- * "unixVer": "x"
1245
- * }
1246
- * }
1247
- * }
1248
- */
1249
- offPause(callback: (result: any) => void): void;
1250
- /**
1251
- * 取消监听 onStop 事件
1252
- * @uniPlatform {
1253
- * "app": {
1254
- * "android": {
1255
- * "osVer": "5.0",
1256
- * "uniVer": "x",
1257
- * "unixVer": "x"
1258
- * },
1259
- * "ios": {
1260
- * "osVer": "12.0",
1261
- * "uniVer": "x",
1262
- * "unixVer": "x"
1263
- * },
1264
- * "harmony": {
1265
- * "osVer": "3.0",
1266
- * "uniVer": "4.25",
1267
- * "unixVer": "x"
1268
- * }
1269
- * },
1270
- * "web": {
1271
- * "uniVer": "√",
1272
- * "unixVer": "x"
1273
- * }
1274
- * "mp":{
1275
- * "weixin": {
1276
- * "hostVer": "1.9.0",
1277
- * "uniVer": "√",
1278
- * "unixVer": "x"
1279
- * },
1280
- * "alipay": {
1281
- * "hostVer": "√",
1282
- * "uniVer": "√",
1283
- * "unixVer": "x"
1284
- * },
1285
- * "baidu": {
1286
- * "hostVer": "√",
1287
- * "uniVer": "√",
1288
- * "unixVer": "x"
1289
- * },
1290
- * "toutiao": {
1291
- * "hostVer": "√",
1292
- * "uniVer": "√",
1293
- * "unixVer": "x"
1294
- * },
1295
- * "lark": {
1296
- * "hostVer": "x",
1297
- * "uniVer": "x",
1298
- * "unixVer": "x"
1299
- * },
1300
- * "qq": {
1301
- * "hostVer": "x",
1302
- * "uniVer": "x",
1303
- * "unixVer": "x"
1304
- * },
1305
- * "kuaishou": {
1306
- * "hostVer": "x",
1307
- * "uniVer": "x",
1308
- * "unixVer": "x"
1309
- * },
1310
- * "jd": {
1311
- * "hostVer": "x",
1312
- * "uniVer": "x",
1313
- * "unixVer": "x"
1314
- * }
1315
- * }
1316
- * }
1317
- */
1318
- offStop(callback: (result: any) => void): void;
1319
- /**
1320
- * 取消监听 onEnded 事件
1321
- * @uniPlatform {
1322
- * "app": {
1323
- * "android": {
1324
- * "osVer": "5.0",
1325
- * "uniVer": "x",
1326
- * "unixVer": "x"
1327
- * },
1328
- * "ios": {
1329
- * "osVer": "12.0",
1330
- * "uniVer": "x",
1331
- * "unixVer": "x"
1332
- * },
1333
- * "harmony": {
1334
- * "osVer": "3.0",
1335
- * "uniVer": "x",
1336
- * "unixVer": "x"
1337
- * }
1338
- * },
1339
- * "web": {
1340
- * "uniVer": "√",
1341
- * "unixVer": "x"
1342
- * }
1343
- * "mp":{
1344
- * "weixin": {
1345
- * "hostVer": "1.9.0",
1346
- * "uniVer": "√",
1347
- * "unixVer": "x"
1348
- * },
1349
- * "alipay": {
1350
- * "hostVer": "√",
1351
- * "uniVer": "√",
1352
- * "unixVer": "x"
1353
- * },
1354
- * "baidu": {
1355
- * "hostVer": "√",
1356
- * "uniVer": "√",
1357
- * "unixVer": "x"
1358
- * },
1359
- * "toutiao": {
1360
- * "hostVer": "√",
1361
- * "uniVer": "√",
1362
- * "unixVer": "x"
1363
- * },
1364
- * "lark": {
1365
- * "hostVer": "x",
1366
- * "uniVer": "x",
1367
- * "unixVer": "x"
1368
- * },
1369
- * "qq": {
1370
- * "hostVer": "x",
1371
- * "uniVer": "x",
1372
- * "unixVer": "x"
1373
- * },
1374
- * "kuaishou": {
1375
- * "hostVer": "x",
1376
- * "uniVer": "x",
1377
- * "unixVer": "x"
1378
- * },
1379
- * "jd": {
1380
- * "hostVer": "x",
1381
- * "uniVer": "x",
1382
- * "unixVer": "x"
1383
- * }
1384
- * }
1385
- * }
1386
- */
1387
- offEnded(callback: (result: any) => void): void;
1388
- /**
1389
- * 取消监听 onTimeUpdate 事件
1390
- * @uniPlatform {
1391
- * "app": {
1392
- * "android": {
1393
- * "osVer": "5.0",
1394
- * "uniVer": "x",
1395
- * "unixVer": "x"
1396
- * },
1397
- * "ios": {
1398
- * "osVer": "12.0",
1399
- * "uniVer": "x",
1400
- * "unixVer": "x"
1401
- * },
1402
- * "harmony": {
1403
- * "osVer": "3.0",
1404
- * "uniVer": "x",
1405
- * "unixVer": "x"
1406
- * }
1407
- * },
1408
- * "web": {
1409
- * "uniVer": "√",
1410
- * "unixVer": "x"
1411
- * }
1412
- * "mp":{
1413
- * "weixin": {
1414
- * "hostVer": "1.9.0",
1415
- * "uniVer": "√",
1416
- * "unixVer": "x"
1417
- * },
1418
- * "alipay": {
1419
- * "hostVer": "√",
1420
- * "uniVer": "√",
1421
- * "unixVer": "x"
1422
- * },
1423
- * "baidu": {
1424
- * "hostVer": "√",
1425
- * "uniVer": "√",
1426
- * "unixVer": "x"
1427
- * },
1428
- * "toutiao": {
1429
- * "hostVer": "√",
1430
- * "uniVer": "√",
1431
- * "unixVer": "x"
1432
- * },
1433
- * "lark": {
1434
- * "hostVer": "x",
1435
- * "uniVer": "x",
1436
- * "unixVer": "x"
1437
- * },
1438
- * "qq": {
1439
- * "hostVer": "x",
1440
- * "uniVer": "x",
1441
- * "unixVer": "x"
1442
- * },
1443
- * "kuaishou": {
1444
- * "hostVer": "x",
1445
- * "uniVer": "x",
1446
- * "unixVer": "x"
1447
- * },
1448
- * "jd": {
1449
- * "hostVer": "x",
1450
- * "uniVer": "x",
1451
- * "unixVer": "x"
1452
- * }
1453
- * }
1454
- * }
1455
- */
1456
- offTimeUpdate(callback: (result: any) => void): void;
1457
- /**
1458
- * 取消监听 onWaiting 事件
1459
- * @uniPlatform {
1460
- * "app": {
1461
- * "android": {
1462
- * "osVer": "5.0",
1463
- * "uniVer": "x",
1464
- * "unixVer": "x"
1465
- * },
1466
- * "ios": {
1467
- * "osVer": "12.0",
1468
- * "uniVer": "x",
1469
- * "unixVer": "x"
1470
- * },
1471
- * "harmony": {
1472
- * "osVer": "3.0",
1473
- * "uniVer": "x",
1474
- * "unixVer": "x"
1475
- * }
1476
- * },
1477
- * "web": {
1478
- * "uniVer": "√",
1479
- * "unixVer": "x"
1480
- * }
1481
- * "mp":{
1482
- * "weixin": {
1483
- * "hostVer": "1.9.0",
1484
- * "uniVer": "√",
1485
- * "unixVer": "x"
1486
- * },
1487
- * "alipay": {
1488
- * "hostVer": "√",
1489
- * "uniVer": "√",
1490
- * "unixVer": "x"
1491
- * },
1492
- * "baidu": {
1493
- * "hostVer": "√",
1494
- * "uniVer": "√",
1495
- * "unixVer": "x"
1496
- * },
1497
- * "toutiao": {
1498
- * "hostVer": "√",
1499
- * "uniVer": "√",
1500
- * "unixVer": "x"
1501
- * },
1502
- * "lark": {
1503
- * "hostVer": "x",
1504
- * "uniVer": "x",
1505
- * "unixVer": "x"
1506
- * },
1507
- * "qq": {
1508
- * "hostVer": "x",
1509
- * "uniVer": "x",
1510
- * "unixVer": "x"
1511
- * },
1512
- * "kuaishou": {
1513
- * "hostVer": "x",
1514
- * "uniVer": "x",
1515
- * "unixVer": "x"
1516
- * },
1517
- * "jd": {
1518
- * "hostVer": "x",
1519
- * "uniVer": "x",
1520
- * "unixVer": "x"
1521
- * }
1522
- * }
1523
- * }
1524
- */
1525
- offError(callback: (result: any) => void): void;
1526
- /**
1527
- * 取消监听 onWaiting 事件
1528
- * @uniPlatform {
1529
- * "app": {
1530
- * "android": {
1531
- * "osVer": "5.0",
1532
- * "uniVer": "x",
1533
- * "unixVer": "x"
1534
- * },
1535
- * "ios": {
1536
- * "osVer": "12.0",
1537
- * "uniVer": "x",
1538
- * "unixVer": "x"
1539
- * },
1540
- * "harmony": {
1541
- * "osVer": "3.0",
1542
- * "uniVer": "x",
1543
- * "unixVer": "x"
1544
- * }
1545
- * },
1546
- * "web": {
1547
- * "uniVer": "√",
1548
- * "unixVer": "x"
1549
- * }
1550
- * "mp":{
1551
- * "weixin": {
1552
- * "hostVer": "1.9.0",
1553
- * "uniVer": "√",
1554
- * "unixVer": "x"
1555
- * },
1556
- * "alipay": {
1557
- * "hostVer": "√",
1558
- * "uniVer": "√",
1559
- * "unixVer": "x"
1560
- * },
1561
- * "baidu": {
1562
- * "hostVer": "√",
1563
- * "uniVer": "√",
1564
- * "unixVer": "x"
1565
- * },
1566
- * "toutiao": {
1567
- * "hostVer": "√",
1568
- * "uniVer": "√",
1569
- * "unixVer": "x"
1570
- * },
1571
- * "lark": {
1572
- * "hostVer": "x",
1573
- * "uniVer": "x",
1574
- * "unixVer": "x"
1575
- * },
1576
- * "qq": {
1577
- * "hostVer": "x",
1578
- * "uniVer": "x",
1579
- * "unixVer": "x"
1580
- * },
1581
- * "kuaishou": {
1582
- * "hostVer": "x",
1583
- * "uniVer": "x",
1584
- * "unixVer": "x"
1585
- * },
1586
- * "jd": {
1587
- * "hostVer": "x",
1588
- * "uniVer": "x",
1589
- * "unixVer": "x"
1590
- * }
1591
- * }
1592
- * }
1593
- */
1594
- offWaiting(callback: (result: any) => void): void;
1595
- /**
1596
- * 取消监听 onSeeking 事件
1597
- * @uniPlatform {
1598
- * "app": {
1599
- * "android": {
1600
- * "osVer": "5.0",
1601
- * "uniVer": "x",
1602
- * "unixVer": "x"
1603
- * },
1604
- * "ios": {
1605
- * "osVer": "12.0",
1606
- * "uniVer": "x",
1607
- * "unixVer": "x"
1608
- * },
1609
- * "harmony": {
1610
- * "osVer": "3.0",
1611
- * "uniVer": "x",
1612
- * "unixVer": "x"
1613
- * }
1614
- * },
1615
- * "web": {
1616
- * "uniVer": "√",
1617
- * "unixVer": "x"
1618
- * }
1619
- * "mp":{
1620
- * "weixin": {
1621
- * "hostVer": "1.9.0",
1622
- * "uniVer": "√",
1623
- * "unixVer": "x"
1624
- * },
1625
- * "alipay": {
1626
- * "hostVer": "√",
1627
- * "uniVer": "√",
1628
- * "unixVer": "x"
1629
- * },
1630
- * "baidu": {
1631
- * "hostVer": "√",
1632
- * "uniVer": "√",
1633
- * "unixVer": "x"
1634
- * },
1635
- * "toutiao": {
1636
- * "hostVer": "√",
1637
- * "uniVer": "√",
1638
- * "unixVer": "x"
1639
- * },
1640
- * "lark": {
1641
- * "hostVer": "x",
1642
- * "uniVer": "x",
1643
- * "unixVer": "x"
1644
- * },
1645
- * "qq": {
1646
- * "hostVer": "x",
1647
- * "uniVer": "x",
1648
- * "unixVer": "x"
1649
- * },
1650
- * "kuaishou": {
1651
- * "hostVer": "x",
1652
- * "uniVer": "x",
1653
- * "unixVer": "x"
1654
- * },
1655
- * "jd": {
1656
- * "hostVer": "x",
1657
- * "uniVer": "x",
1658
- * "unixVer": "x"
1659
- * }
1660
- * }
1661
- * }
1662
- */
1663
- offSeeking(callback: (result: any) => void): void;
1664
- /**
1665
- * 取消监听 onSeeked 事件
1666
- * @uniPlatform {
1667
- * "app": {
1668
- * "android": {
1669
- * "osVer": "5.0",
1670
- * "uniVer": "x",
1671
- * "unixVer": "x"
1672
- * },
1673
- * "ios": {
1674
- * "osVer": "12.0",
1675
- * "uniVer": "x",
1676
- * "unixVer": "x"
1677
- * },
1678
- * "harmony": {
1679
- * "osVer": "3.0",
1680
- * "uniVer": "x",
1681
- * "unixVer": "x"
1682
- * }
1683
- * },
1684
- * "web": {
1685
- * "uniVer": "√",
1686
- * "unixVer": "x"
1687
- * }
1688
- * "mp":{
1689
- * "weixin": {
1690
- * "hostVer": "1.9.0",
1691
- * "uniVer": "√",
1692
- * "unixVer": "x"
1693
- * },
1694
- * "alipay": {
1695
- * "hostVer": "√",
1696
- * "uniVer": "√",
1697
- * "unixVer": "x"
1698
- * },
1699
- * "baidu": {
1700
- * "hostVer": "√",
1701
- * "uniVer": "√",
1702
- * "unixVer": "x"
1703
- * },
1704
- * "toutiao": {
1705
- * "hostVer": "√",
1706
- * "uniVer": "√",
1707
- * "unixVer": "x"
1708
- * },
1709
- * "lark": {
1710
- * "hostVer": "x",
1711
- * "uniVer": "x",
1712
- * "unixVer": "x"
1713
- * },
1714
- * "qq": {
1715
- * "hostVer": "x",
1716
- * "uniVer": "x",
1717
- * "unixVer": "x"
1718
- * },
1719
- * "kuaishou": {
1720
- * "hostVer": "x",
1721
- * "uniVer": "x",
1722
- * "unixVer": "x"
1723
- * },
1724
- * "jd": {
1725
- * "hostVer": "x",
1726
- * "uniVer": "x",
1727
- * "unixVer": "x"
1728
- * }
1729
- * }
1730
- * }
1731
- */
1732
- offSeeked(callback: (result: any) => void): void;
81
+ /**
82
+ * 当前音频的长度(单位:s),只有在当前有合法的 src 时返回
83
+ * @uniPlatform
84
+ {
85
+ "app": {
86
+ "android": {
87
+ "osVer": "5.0",
88
+ "uniVer": "√",
89
+ "uniUtsPlugin": "x",
90
+ "unixVer": "4.33",
91
+ "unixUtsPlugin": "4.33"
92
+ },
93
+ "ios": {
94
+ "osVer": "12.0",
95
+ "uniVer": "√",
96
+ "uniUtsPlugin": "x",
97
+ "unixVer": "4.41",
98
+ "unixUtsPlugin": "4.41"
99
+ }
100
+ },
101
+ "web": {
102
+ "uniVer": "√",
103
+ "unixVer": "4.0"
104
+ }
105
+ }
106
+ */
107
+ duration: number;
108
+ /**
109
+ * 当前音频的播放位置(单位:s),只有在当前有合法的 src 时返回
110
+ * @uniPlatform
111
+ {
112
+ "app": {
113
+ "android": {
114
+ "osVer": "5.0",
115
+ "uniVer": "√",
116
+ "uniUtsPlugin": "x",
117
+ "unixVer": "4.33",
118
+ "unixUtsPlugin": "4.33"
119
+ },
120
+ "ios": {
121
+ "osVer": "12.0",
122
+ "uniVer": "√",
123
+ "uniUtsPlugin": "x",
124
+ "unixVer": "4.41",
125
+ "unixUtsPlugin": "4.41"
126
+ }
127
+ },
128
+ "web": {
129
+ "uniVer": "√",
130
+ "unixVer": "4.0"
131
+ }
132
+ }
133
+ */
134
+ currentTime: number;
135
+ /**
136
+ * 当前是是否暂停或停止状态,true 表示暂停或停止,false 表示正在播放
137
+ * @uniPlatform
138
+ {
139
+ "app": {
140
+ "android": {
141
+ "osVer": "5.0",
142
+ "uniVer": "√",
143
+ "uniUtsPlugin": "x",
144
+ "unixVer": "4.33",
145
+ "unixUtsPlugin": "4.33"
146
+ },
147
+ "ios": {
148
+ "osVer": "12.0",
149
+ "uniVer": "",
150
+ "uniUtsPlugin": "x",
151
+ "unixVer": "4.41",
152
+ "unixUtsPlugin": "4.41"
153
+ }
154
+ },
155
+ "web": {
156
+ "uniVer": "√",
157
+ "unixVer": "4.0"
158
+ }
159
+ }
160
+ * @type boolean
161
+ */
162
+ paused: boolean;
163
+ /**
164
+ * 音频的数据链接,用于直接播放
165
+ * @uniPlatform
166
+ {
167
+ "app": {
168
+ "android": {
169
+ "osVer": "5.0",
170
+ "uniVer": "√",
171
+ "uniUtsPlugin": "x",
172
+ "unixVer": "4.33",
173
+ "unixUtsPlugin": "4.33"
174
+ },
175
+ "ios": {
176
+ "osVer": "12.0",
177
+ "uniVer": "√",
178
+ "uniUtsPlugin": "x",
179
+ "unixVer": "4.41",
180
+ "unixUtsPlugin": "4.41"
181
+ }
182
+ },
183
+ "web": {
184
+ "uniVer": "√",
185
+ "unixVer": "4.0"
186
+ }
187
+ }
188
+ */
189
+ src: string;
190
+ /**
191
+ * 音频开始播放的位置(单位:s)
192
+ * @uniPlatform
193
+ {
194
+ "app": {
195
+ "android": {
196
+ "osVer": "5.0",
197
+ "uniVer": "√",
198
+ "uniUtsPlugin": "x",
199
+ "unixVer": "4.33",
200
+ "unixUtsPlugin": "4.33"
201
+ },
202
+ "ios": {
203
+ "osVer": "12.0",
204
+ "uniVer": "√",
205
+ "uniUtsPlugin": "x",
206
+ "unixVer": "4.41",
207
+ "unixUtsPlugin": "4.41"
208
+ }
209
+ },
210
+ "web": {
211
+ "uniVer": "√",
212
+ "unixVer": "4.0"
213
+ }
214
+ }
215
+ */
216
+ startTime: number;
217
+ /**
218
+ * 音频缓冲的时间点,仅保证当前播放时间点到此时间点内容已缓冲
219
+ * @uniPlatform
220
+ {
221
+ "app": {
222
+ "android": {
223
+ "osVer": "5.0",
224
+ "uniVer": "",
225
+ "uniUtsPlugin": "x",
226
+ "unixVer": "4.33",
227
+ "unixUtsPlugin": "4.33"
228
+ },
229
+ "ios": {
230
+ "osVer": "12.0",
231
+ "uniVer": "√",
232
+ "uniUtsPlugin": "x",
233
+ "unixVer": "4.41",
234
+ "unixUtsPlugin": "4.41"
235
+ }
236
+ },
237
+ "web": {
238
+ "uniVer": "√",
239
+ "unixVer": "4.0"
240
+ }
241
+ }
242
+ */
243
+ buffered: number;
244
+ /**
245
+ * 是否自动开始播放,默认 false
246
+ * @defaultValue false
247
+ * @uniPlatform
248
+ {
249
+ "app": {
250
+ "android": {
251
+ "osVer": "5.0",
252
+ "uniVer": "√",
253
+ "uniUtsPlugin": "x",
254
+ "unixVer": "4.33",
255
+ "unixUtsPlugin": "4.33"
256
+ },
257
+ "ios": {
258
+ "osVer": "12.0",
259
+ "uniVer": "√",
260
+ "uniUtsPlugin": "x",
261
+ "unixVer": "4.41",
262
+ "unixUtsPlugin": "4.41"
263
+ }
264
+ },
265
+ "web": {
266
+ "uniVer": "√",
267
+ "unixVer": "4.0"
268
+ }
269
+ }
270
+ * @type boolean
271
+ */
272
+ autoplay: boolean;
273
+ /**
274
+ * 是否循环播放,默认 false
275
+ * @defaultValue false
276
+ * @uniPlatform
277
+ {
278
+ "app": {
279
+ "android": {
280
+ "osVer": "5.0",
281
+ "uniVer": "",
282
+ "uniUtsPlugin": "x",
283
+ "unixVer": "4.33",
284
+ "unixUtsPlugin": "4.33"
285
+ },
286
+ "ios": {
287
+ "osVer": "12.0",
288
+ "uniVer": "",
289
+ "uniUtsPlugin": "x",
290
+ "unixVer": "4.41",
291
+ "unixUtsPlugin": "4.41"
292
+ }
293
+ },
294
+ "web": {
295
+ "uniVer": "√",
296
+ "unixVer": "4.0"
297
+ }
298
+ }
299
+ * @type boolean
300
+ */
301
+ loop: boolean;
302
+ /**
303
+ * 是否遵循系统静音开关,当此参数为 false 时,即使用户打开了静音开关,也能继续发出声音,默认值 true
304
+ * @type boolean
305
+ * @uniPlatform
306
+ {
307
+ "app": {
308
+ "android": {
309
+ "osVer": "5.0",
310
+ "uniVer": "√",
311
+ "uniUtsPlugin": "x",
312
+ "unixVer": "x",
313
+ "unixUtsPlugin": "x"
314
+ },
315
+ "ios": {
316
+ "osVer": "12.0",
317
+ "uniVer": "√",
318
+ "uniUtsPlugin": "x",
319
+ "unixVer": "x",
320
+ "unixUtsPlugin": "x"
321
+ }
322
+ },
323
+ "web": {
324
+ "uniVer": "x",
325
+ "unixVer": "x"
326
+ }
327
+ }
328
+ */
329
+ obeyMuteSwitch: boolean;
330
+ /**
331
+ * 音量。范围 0~1。
332
+ * @uniPlatform
333
+ {
334
+ "app": {
335
+ "android": {
336
+ "osVer": "5.0",
337
+ "uniVer": "√",
338
+ "uniUtsPlugin": "x",
339
+ "unixVer": "4.33",
340
+ "unixUtsPlugin": "4.33"
341
+ },
342
+ "ios": {
343
+ "osVer": "12.0",
344
+ "uniVer": "√",
345
+ "uniUtsPlugin": "x",
346
+ "unixVer": "4.41",
347
+ "unixUtsPlugin": "4.41"
348
+ }
349
+ },
350
+ "web": {
351
+ "uniVer": "√",
352
+ "unixVer": "4.0"
353
+ }
354
+ }
355
+ */
356
+ volume: number;
357
+ /**
358
+ * 播放的倍率。可取值: 0.5/0.8/1.0/1.25/1.5/2.0,默认值为1.0。(仅 App 支持)
359
+ * @defaultValue 1.0
360
+ * @uniPlatform
361
+ {
362
+ "app": {
363
+ "android": {
364
+ "osVer": "5.0",
365
+ "uniVer": "√",
366
+ "uniUtsPlugin": "x",
367
+ "unixVer": "4.33",
368
+ "unixUtsPlugin": "4.33"
369
+ },
370
+ "ios": {
371
+ "osVer": "12.0",
372
+ "uniVer": "√",
373
+ "uniUtsPlugin": "x",
374
+ "unixVer": "4.41",
375
+ "unixUtsPlugin": "4.41"
376
+ }
377
+ },
378
+ "web": {
379
+ "uniVer": "x",
380
+ "unixVer": "x"
381
+ }
382
+ }
383
+ */
384
+ playbackRate?: number;
385
+ /**
386
+ * 暂停
387
+ * @uniPlatform
388
+ {
389
+ "app": {
390
+ "android": {
391
+ "osVer": "5.0",
392
+ "uniVer": "√",
393
+ "uniUtsPlugin": "x",
394
+ "unixVer": "4.33",
395
+ "unixUtsPlugin": "4.33"
396
+ },
397
+ "ios": {
398
+ "osVer": "12.0",
399
+ "uniVer": "√",
400
+ "uniUtsPlugin": "x",
401
+ "unixVer": "4.41",
402
+ "unixUtsPlugin": "4.41"
403
+ }
404
+ },
405
+ "web": {
406
+ "uniVer": "√",
407
+ "unixVer": "4.0"
408
+ }
409
+ }
410
+ */
411
+ pause(): void;
412
+ /**
413
+ * 停止
414
+ * @uniPlatform
415
+ {
416
+ "app": {
417
+ "android": {
418
+ "osVer": "5.0",
419
+ "uniVer": "",
420
+ "uniUtsPlugin": "x",
421
+ "unixVer": "4.33",
422
+ "unixUtsPlugin": "4.33"
423
+ },
424
+ "ios": {
425
+ "osVer": "12.0",
426
+ "uniVer": "",
427
+ "uniUtsPlugin": "x",
428
+ "unixVer": "4.41",
429
+ "unixUtsPlugin": "4.41"
430
+ }
431
+ },
432
+ "web": {
433
+ "uniVer": "√",
434
+ "unixVer": "4.0"
435
+ }
436
+ }
437
+ */
438
+ stop(): void;
439
+ /**
440
+ * 播放
441
+ * @uniPlatform
442
+ {
443
+ "app": {
444
+ "android": {
445
+ "osVer": "5.0",
446
+ "uniVer": "√",
447
+ "uniUtsPlugin": "x",
448
+ "unixVer": "4.33",
449
+ "unixUtsPlugin": "4.33"
450
+ },
451
+ "ios": {
452
+ "osVer": "12.0",
453
+ "uniVer": "√",
454
+ "uniUtsPlugin": "x",
455
+ "unixVer": "4.41",
456
+ "unixUtsPlugin": "4.41"
457
+ }
458
+ },
459
+ "web": {
460
+ "uniVer": "√",
461
+ "unixVer": "4.0"
462
+ }
463
+ }
464
+ */
465
+ play(): void;
466
+ /**
467
+ * 跳转到指定位置,单位 s
468
+ * @uniPlatform
469
+ {
470
+ "app": {
471
+ "android": {
472
+ "osVer": "5.0",
473
+ "uniVer": "√",
474
+ "uniUtsPlugin": "x",
475
+ "unixVer": "4.33",
476
+ "unixUtsPlugin": "4.33"
477
+ },
478
+ "ios": {
479
+ "osVer": "12.0",
480
+ "uniVer": "√",
481
+ "uniUtsPlugin": "x",
482
+ "unixVer": "4.41",
483
+ "unixUtsPlugin": "4.41"
484
+ }
485
+ },
486
+ "web": {
487
+ "uniVer": "√",
488
+ "unixVer": "4.0"
489
+ }
490
+ }
491
+ */
492
+ seek(position: number): void;
493
+ /**
494
+ * 销毁当前实例
495
+ * @uniPlatform
496
+ {
497
+ "app": {
498
+ "android": {
499
+ "osVer": "5.0",
500
+ "uniVer": "",
501
+ "uniUtsPlugin": "x",
502
+ "unixVer": "4.33",
503
+ "unixUtsPlugin": "4.33"
504
+ },
505
+ "ios": {
506
+ "osVer": "12.0",
507
+ "uniVer": "√",
508
+ "uniUtsPlugin": "x",
509
+ "unixVer": "4.41",
510
+ "unixUtsPlugin": "4.41"
511
+ }
512
+ },
513
+ "web": {
514
+ "uniVer": "√",
515
+ "unixVer": "4.0"
516
+ }
517
+ }
518
+ */
519
+ destroy(): void;
520
+ /**
521
+ * 音频进入可以播放状态,但不保证后面可以流畅播放
522
+ * @uniPlatform
523
+ {
524
+ "app": {
525
+ "android": {
526
+ "osVer": "5.0",
527
+ "uniVer": "√",
528
+ "uniUtsPlugin": "x",
529
+ "unixVer": "4.33",
530
+ "unixUtsPlugin": "4.33"
531
+ },
532
+ "ios": {
533
+ "osVer": "12.0",
534
+ "uniVer": "√",
535
+ "uniUtsPlugin": "x",
536
+ "unixVer": "4.41",
537
+ "unixUtsPlugin": "4.41"
538
+ }
539
+ },
540
+ "web": {
541
+ "uniVer": "",
542
+ "unixVer": "4.0"
543
+ }
544
+ }
545
+ */
546
+ onCanplay(callback: (result: any) => void): void;
547
+ /**
548
+ * 音频播放事件
549
+ * @uniPlatform
550
+ {
551
+ "app": {
552
+ "android": {
553
+ "osVer": "5.0",
554
+ "uniVer": "",
555
+ "uniUtsPlugin": "x",
556
+ "unixVer": "4.33",
557
+ "unixUtsPlugin": "4.33"
558
+ },
559
+ "ios": {
560
+ "osVer": "12.0",
561
+ "uniVer": "√",
562
+ "uniUtsPlugin": "x",
563
+ "unixVer": "4.41",
564
+ "unixUtsPlugin": "4.41"
565
+ }
566
+ },
567
+ "web": {
568
+ "uniVer": "√",
569
+ "unixVer": "4.0"
570
+ }
571
+ }
572
+ * }
573
+ */
574
+ onPlay(callback: (result: any) => void): void;
575
+ /**
576
+ * 音频暂停事件
577
+ * @uniPlatform
578
+ {
579
+ "app": {
580
+ "android": {
581
+ "osVer": "5.0",
582
+ "uniVer": "",
583
+ "uniUtsPlugin": "x",
584
+ "unixVer": "4.33",
585
+ "unixUtsPlugin": "4.33"
586
+ },
587
+ "ios": {
588
+ "osVer": "12.0",
589
+ "uniVer": "√",
590
+ "uniUtsPlugin": "x",
591
+ "unixVer": "4.41",
592
+ "unixUtsPlugin": "4.41"
593
+ }
594
+ },
595
+ "web": {
596
+ "uniVer": "√",
597
+ "unixVer": "4.0"
598
+ }
599
+ }
600
+ * }
601
+ */
602
+ onPause(callback: (result: any) => void): void;
603
+ /**
604
+ * 音频停止事件
605
+ * @uniPlatform
606
+ {
607
+ "app": {
608
+ "android": {
609
+ "osVer": "5.0",
610
+ "uniVer": "√",
611
+ "uniUtsPlugin": "x",
612
+ "unixVer": "4.33",
613
+ "unixUtsPlugin": "4.33"
614
+ },
615
+ "ios": {
616
+ "osVer": "12.0",
617
+ "uniVer": "√",
618
+ "uniUtsPlugin": "x",
619
+ "unixVer": "4.41",
620
+ "unixUtsPlugin": "4.41"
621
+ }
622
+ },
623
+ "web": {
624
+ "uniVer": "√",
625
+ "unixVer": "4.0"
626
+ }
627
+ }
628
+ */
629
+ onStop(callback: (result: any) => void): void;
630
+ /**
631
+ * 音频自然播放结束事件
632
+ * @uniPlatform
633
+ {
634
+ "app": {
635
+ "android": {
636
+ "osVer": "5.0",
637
+ "uniVer": "√",
638
+ "uniUtsPlugin": "x",
639
+ "unixVer": "4.33",
640
+ "unixUtsPlugin": "4.33"
641
+ },
642
+ "ios": {
643
+ "osVer": "12.0",
644
+ "uniVer": "",
645
+ "uniUtsPlugin": "x",
646
+ "unixVer": "4.41",
647
+ "unixUtsPlugin": "4.41"
648
+ }
649
+ },
650
+ "web": {
651
+ "uniVer": "",
652
+ "unixVer": "4.0"
653
+ }
654
+ }
655
+ */
656
+ onEnded(callback: (result: any) => void): void;
657
+ /**
658
+ * 音频播放进度更新事件
659
+ * @uniPlatform
660
+ {
661
+ "app": {
662
+ "android": {
663
+ "osVer": "5.0",
664
+ "uniVer": "√",
665
+ "uniUtsPlugin": "x",
666
+ "unixVer": "4.33",
667
+ "unixUtsPlugin": "4.33"
668
+ },
669
+ "ios": {
670
+ "osVer": "12.0",
671
+ "uniVer": "√",
672
+ "uniUtsPlugin": "x",
673
+ "unixVer": "4.41",
674
+ "unixUtsPlugin": "4.41"
675
+ }
676
+ },
677
+ "web": {
678
+ "uniVer": "√",
679
+ "unixVer": "4.0"
680
+ }
681
+ }
682
+ */
683
+ onTimeUpdate(callback: (result: any) => void): void;
684
+ /**
685
+ * 音频播放错误事件
686
+ * @uniPlatform
687
+ {
688
+ "app": {
689
+ "android": {
690
+ "osVer": "5.0",
691
+ "uniVer": "√",
692
+ "uniUtsPlugin": "x",
693
+ "unixVer": "4.33",
694
+ "unixUtsPlugin": "4.33"
695
+ },
696
+ "ios": {
697
+ "osVer": "12.0",
698
+ "uniVer": "√",
699
+ "uniUtsPlugin": "x",
700
+ "unixVer": "4.41",
701
+ "unixUtsPlugin": "4.41"
702
+ }
703
+ },
704
+ "web": {
705
+ "uniVer": "",
706
+ "unixVer": "4.0"
707
+ }
708
+ }
709
+ */
710
+ onError(callback: (result: ICreateInnerAudioContextFail) => void): void;
711
+ /**
712
+ * 音频加载中事件,当音频因为数据不足,需要停下来加载时会触发
713
+ * @uniPlatform
714
+ {
715
+ "app": {
716
+ "android": {
717
+ "osVer": "5.0",
718
+ "uniVer": "√",
719
+ "uniUtsPlugin": "x",
720
+ "unixVer": "4.33",
721
+ "unixUtsPlugin": "4.33"
722
+ },
723
+ "ios": {
724
+ "osVer": "12.0",
725
+ "uniVer": "√",
726
+ "uniUtsPlugin": "x",
727
+ "unixVer": "4.41",
728
+ "unixUtsPlugin": "4.41"
729
+ }
730
+ },
731
+ "web": {
732
+ "uniVer": "√",
733
+ "unixVer": "4.0"
734
+ }
735
+ }
736
+ */
737
+ onWaiting(callback: (result: any) => void): void;
738
+ /**
739
+ * 音频进行 seek 操作事件
740
+ * @uniPlatform
741
+ {
742
+ "app": {
743
+ "android": {
744
+ "osVer": "5.0",
745
+ "uniVer": "√",
746
+ "uniUtsPlugin": "x",
747
+ "unixVer": "4.33",
748
+ "unixUtsPlugin": "4.33"
749
+ },
750
+ "ios": {
751
+ "osVer": "12.0",
752
+ "uniVer": "√",
753
+ "uniUtsPlugin": "x",
754
+ "unixVer": "4.41",
755
+ "unixUtsPlugin": "4.41"
756
+ }
757
+ },
758
+ "web": {
759
+ "uniVer": "√",
760
+ "unixVer": "4.0"
761
+ }
762
+ }
763
+ */
764
+ onSeeking(callback: (result: any) => void): void;
765
+ /**
766
+ * 音频完成 seek 操作事件
767
+ * @uniPlatform
768
+ {
769
+ "app": {
770
+ "android": {
771
+ "osVer": "5.0",
772
+ "uniVer": "",
773
+ "uniUtsPlugin": "x",
774
+ "unixVer": "4.33",
775
+ "unixUtsPlugin": "4.33"
776
+ },
777
+ "ios": {
778
+ "osVer": "12.0",
779
+ "uniVer": "",
780
+ "uniUtsPlugin": "x",
781
+ "unixVer": "4.41",
782
+ "unixUtsPlugin": "4.41"
783
+ }
784
+ },
785
+ "web": {
786
+ "uniVer": "√",
787
+ "unixVer": "4.0"
788
+ }
789
+ }
790
+ */
791
+ onSeeked(callback: (result: any) => void): void;
792
+ /**
793
+ * 取消监听 onCanplay 事件
794
+ * @uniPlatform
795
+ {
796
+ "app": {
797
+ "android": {
798
+ "osVer": "5.0",
799
+ "uniVer": "√",
800
+ "uniUtsPlugin": "x",
801
+ "unixVer": "4.33",
802
+ "unixUtsPlugin": "4.33"
803
+ },
804
+ "ios": {
805
+ "osVer": "12.0",
806
+ "uniVer": "√",
807
+ "uniUtsPlugin": "x",
808
+ "unixVer": "4.41",
809
+ "unixUtsPlugin": "4.41"
810
+ }
811
+ },
812
+ "web": {
813
+ "uniVer": "√",
814
+ "unixVer": "4.0"
815
+ }
816
+ }
817
+ */
818
+ offCanplay(callback: (result: any) => void): void;
819
+ /**
820
+ * 取消监听 onPlay 事件
821
+ * @uniPlatform
822
+ {
823
+ "app": {
824
+ "android": {
825
+ "osVer": "5.0",
826
+ "uniVer": "√",
827
+ "uniUtsPlugin": "x",
828
+ "unixVer": "4.33",
829
+ "unixUtsPlugin": "4.33"
830
+ },
831
+ "ios": {
832
+ "osVer": "12.0",
833
+ "uniVer": "√",
834
+ "uniUtsPlugin": "x",
835
+ "unixVer": "4.41",
836
+ "unixUtsPlugin": "4.41"
837
+ }
838
+ },
839
+ "web": {
840
+ "uniVer": "√",
841
+ "unixVer": "4.0"
842
+ }
843
+ }
844
+ */
845
+ offPlay(callback: (result: any) => void): void;
846
+ /**
847
+ * 取消监听 onPause 事件
848
+ * @uniPlatform
849
+ {
850
+ "app": {
851
+ "android": {
852
+ "osVer": "5.0",
853
+ "uniVer": "",
854
+ "uniUtsPlugin": "x",
855
+ "unixVer": "4.33",
856
+ "unixUtsPlugin": "4.33"
857
+ },
858
+ "ios": {
859
+ "osVer": "12.0",
860
+ "uniVer": "√",
861
+ "uniUtsPlugin": "x",
862
+ "unixVer": "4.41",
863
+ "unixUtsPlugin": "4.41"
864
+ }
865
+ },
866
+ "web": {
867
+ "uniVer": "√",
868
+ "unixVer": "4.0"
869
+ }
870
+ }
871
+ */
872
+ offPause(callback: (result: any) => void): void;
873
+ /**
874
+ * 取消监听 onStop 事件
875
+ * @uniPlatform
876
+ {
877
+ "app": {
878
+ "android": {
879
+ "osVer": "5.0",
880
+ "uniVer": "√",
881
+ "uniUtsPlugin": "x",
882
+ "unixVer": "4.33",
883
+ "unixUtsPlugin": "4.33"
884
+ },
885
+ "ios": {
886
+ "osVer": "12.0",
887
+ "uniVer": "√",
888
+ "uniUtsPlugin": "x",
889
+ "unixVer": "4.41",
890
+ "unixUtsPlugin": "4.41"
891
+ }
892
+ },
893
+ "web": {
894
+ "uniVer": "",
895
+ "unixVer": "4.0"
896
+ }
897
+ }
898
+ */
899
+ offStop(callback: (result: any) => void): void;
900
+ /**
901
+ * 取消监听 onEnded 事件
902
+ * @uniPlatform
903
+ {
904
+ "app": {
905
+ "android": {
906
+ "osVer": "5.0",
907
+ "uniVer": "√",
908
+ "uniUtsPlugin": "x",
909
+ "unixVer": "4.33",
910
+ "unixUtsPlugin": "4.33"
911
+ },
912
+ "ios": {
913
+ "osVer": "12.0",
914
+ "uniVer": "√",
915
+ "uniUtsPlugin": "x",
916
+ "unixVer": "4.41",
917
+ "unixUtsPlugin": "4.41"
918
+ }
919
+ },
920
+ "web": {
921
+ "uniVer": "",
922
+ "unixVer": "4.0"
923
+ }
924
+ }
925
+ */
926
+ offEnded(callback: (result: any) => void): void;
927
+ /**
928
+ * 取消监听 onTimeUpdate 事件
929
+ * @uniPlatform
930
+ {
931
+ "app": {
932
+ "android": {
933
+ "osVer": "5.0",
934
+ "uniVer": "√",
935
+ "uniUtsPlugin": "x",
936
+ "unixVer": "4.33",
937
+ "unixUtsPlugin": "4.33"
938
+ },
939
+ "ios": {
940
+ "osVer": "12.0",
941
+ "uniVer": "√",
942
+ "uniUtsPlugin": "x",
943
+ "unixVer": "4.41",
944
+ "unixUtsPlugin": "4.41"
945
+ }
946
+ },
947
+ "web": {
948
+ "uniVer": "",
949
+ "unixVer": "4.0"
950
+ }
951
+ }
952
+ */
953
+ offTimeUpdate(callback: (result: any) => void): void;
954
+ /**
955
+ * 取消监听 onWaiting 事件
956
+ * @uniPlatform
957
+ {
958
+ "app": {
959
+ "android": {
960
+ "osVer": "5.0",
961
+ "uniVer": "√",
962
+ "uniUtsPlugin": "x",
963
+ "unixVer": "4.33",
964
+ "unixUtsPlugin": "4.33"
965
+ },
966
+ "ios": {
967
+ "osVer": "12.0",
968
+ "uniVer": "",
969
+ "uniUtsPlugin": "x",
970
+ "unixVer": "4.41",
971
+ "unixUtsPlugin": "4.41"
972
+ }
973
+ },
974
+ "web": {
975
+ "uniVer": "√",
976
+ "unixVer": "4.0"
977
+ }
978
+ }
979
+ */
980
+ offError(callback: (result: ICreateInnerAudioContextFail) => void): void;
981
+ /**
982
+ * 取消监听 onWaiting 事件
983
+ * @uniPlatform
984
+ {
985
+ "app": {
986
+ "android": {
987
+ "osVer": "5.0",
988
+ "uniVer": "√",
989
+ "uniUtsPlugin": "x",
990
+ "unixVer": "4.33",
991
+ "unixUtsPlugin": "4.33"
992
+ },
993
+ "ios": {
994
+ "osVer": "12.0",
995
+ "uniVer": "√",
996
+ "uniUtsPlugin": "x",
997
+ "unixVer": "4.41",
998
+ "unixUtsPlugin": "4.41"
999
+ }
1000
+ },
1001
+ "web": {
1002
+ "uniVer": "",
1003
+ "unixVer": "4.0"
1004
+ }
1005
+ }
1006
+ */
1007
+ offWaiting(callback: (result: any) => void): void;
1008
+ /**
1009
+ * 取消监听 onSeeking 事件
1010
+ * @uniPlatform
1011
+ {
1012
+ "app": {
1013
+ "android": {
1014
+ "osVer": "5.0",
1015
+ "uniVer": "√",
1016
+ "uniUtsPlugin": "x",
1017
+ "unixVer": "4.33",
1018
+ "unixUtsPlugin": "4.33"
1019
+ },
1020
+ "ios": {
1021
+ "osVer": "12.0",
1022
+ "uniVer": "",
1023
+ "uniUtsPlugin": "x",
1024
+ "unixVer": "4.41",
1025
+ "unixUtsPlugin": "4.41"
1026
+ }
1027
+ },
1028
+ "web": {
1029
+ "uniVer": "√",
1030
+ "unixVer": "4.0"
1031
+ }
1032
+ }
1033
+ */
1034
+ offSeeking(callback: (result: any) => void): void;
1035
+ /**
1036
+ * 取消监听 onSeeked 事件
1037
+ * @uniPlatform
1038
+ {
1039
+ "app": {
1040
+ "android": {
1041
+ "osVer": "5.0",
1042
+ "uniVer": "√",
1043
+ "uniUtsPlugin": "x",
1044
+ "unixVer": "4.33",
1045
+ "unixUtsPlugin": "4.33"
1046
+ },
1047
+ "ios": {
1048
+ "osVer": "12.0",
1049
+ "uniVer": "",
1050
+ "uniUtsPlugin": "x",
1051
+ "unixVer": "4.41",
1052
+ "unixUtsPlugin": "4.41"
1053
+ }
1054
+ },
1055
+ "web": {
1056
+ "uniVer": "√",
1057
+ "unixVer": "4.0"
1058
+ }
1059
+ }
1060
+ */
1061
+ offSeeked(callback: (result: any) => void): void;
1733
1062
  }
1063
+
1064
+ /**
1065
+ * 错误码
1066
+ */
1067
+ export type CreateInnerAudioContextErrorCode =
1068
+ /**
1069
+ * 系统错误
1070
+ * @uniPlatform
1071
+ {
1072
+ "app": {
1073
+ "android": {
1074
+ "osVer": "5.0",
1075
+ "uniVer": "√",
1076
+ "uniUtsPlugin": "x",
1077
+ "unixVer": "4.33",
1078
+ "unixUtsPlugin": "4.33"
1079
+ },
1080
+ "ios": {
1081
+ "osVer": "12.0",
1082
+ "uniVer": "√",
1083
+ "uniUtsPlugin": "x",
1084
+ "unixVer": "4.41",
1085
+ "unixUtsPlugin": "4.41"
1086
+ }
1087
+ },
1088
+ "web": {
1089
+ "uniVer": "x",
1090
+ "unixVer": "x"
1091
+ }
1092
+ }
1093
+ */
1094
+ 1107601 |
1095
+ /**
1096
+ * 网络错误
1097
+ * @uniPlatform
1098
+ {
1099
+ "app": {
1100
+ "android": {
1101
+ "osVer": "5.0",
1102
+ "uniVer": "√",
1103
+ "uniUtsPlugin": "x",
1104
+ "unixVer": "4.33",
1105
+ "unixUtsPlugin": "4.33"
1106
+ },
1107
+ "ios": {
1108
+ "osVer": "12.0",
1109
+ "uniVer": "√",
1110
+ "uniUtsPlugin": "x",
1111
+ "unixVer": "4.41",
1112
+ "unixUtsPlugin": "4.41"
1113
+ }
1114
+ },
1115
+ "web": {
1116
+ "uniVer": "x",
1117
+ "unixVer": "x"
1118
+ }
1119
+ }
1120
+ */
1121
+ 1107602 |
1122
+ /**
1123
+ * 文件错误
1124
+ * @uniPlatform
1125
+ {
1126
+ "app": {
1127
+ "android": {
1128
+ "osVer": "5.0",
1129
+ "uniVer": "√",
1130
+ "uniUtsPlugin": "x",
1131
+ "unixVer": "4.33",
1132
+ "unixUtsPlugin": "4.33"
1133
+ },
1134
+ "ios": {
1135
+ "osVer": "12.0",
1136
+ "uniVer": "√",
1137
+ "uniUtsPlugin": "x",
1138
+ "unixVer": "4.41",
1139
+ "unixUtsPlugin": "4.41"
1140
+ }
1141
+ },
1142
+ "web": {
1143
+ "uniVer": "x",
1144
+ "unixVer": "x"
1145
+ }
1146
+ }
1147
+ */
1148
+ 1107603 |
1149
+ /**
1150
+ * 格式错误
1151
+ * @uniPlatform
1152
+ {
1153
+ "app": {
1154
+ "android": {
1155
+ "osVer": "5.0",
1156
+ "uniVer": "√",
1157
+ "uniUtsPlugin": "x",
1158
+ "unixVer": "4.33",
1159
+ "unixUtsPlugin": "4.33"
1160
+ },
1161
+ "ios": {
1162
+ "osVer": "12.0",
1163
+ "uniVer": "√",
1164
+ "uniUtsPlugin": "x",
1165
+ "unixVer": "4.41",
1166
+ "unixUtsPlugin": "4.41"
1167
+ }
1168
+ },
1169
+ "web": {
1170
+ "uniVer": "x",
1171
+ "unixVer": "x"
1172
+ }
1173
+ }
1174
+ */
1175
+ 1107604 |
1176
+ /**
1177
+ * 未知错误
1178
+ * @uniPlatform
1179
+ {
1180
+ "app": {
1181
+ "android": {
1182
+ "osVer": "5.0",
1183
+ "uniVer": "√",
1184
+ "uniUtsPlugin": "x",
1185
+ "unixVer": "4.33",
1186
+ "unixUtsPlugin": "4.33"
1187
+ },
1188
+ "ios": {
1189
+ "osVer": "12.0",
1190
+ "uniVer": "√",
1191
+ "uniUtsPlugin": "x",
1192
+ "unixVer": "4.41",
1193
+ "unixUtsPlugin": "4.41"
1194
+ }
1195
+ },
1196
+ "web": {
1197
+ "uniVer": "x",
1198
+ "unixVer": "x"
1199
+ }
1200
+ }
1201
+ */
1202
+ 1107605 |
1203
+ /**
1204
+ * 播放路径不能为空
1205
+ * @uniPlatform
1206
+ {
1207
+ "app": {
1208
+ "android": {
1209
+ "osVer": "5.0",
1210
+ "uniVer": "√",
1211
+ "uniUtsPlugin": "x",
1212
+ "unixVer": "4.33",
1213
+ "unixUtsPlugin": "4.33"
1214
+ },
1215
+ "ios": {
1216
+ "osVer": "12.0",
1217
+ "uniVer": "√",
1218
+ "uniUtsPlugin": "x",
1219
+ "unixVer": "4.41",
1220
+ "unixUtsPlugin": "4.41"
1221
+ }
1222
+ },
1223
+ "web": {
1224
+ "uniVer": "x",
1225
+ "unixVer": "x"
1226
+ }
1227
+ }
1228
+ */
1229
+ 1107609;
1230
+
1231
+ export interface ICreateInnerAudioContextFail extends IUniError {
1232
+ errCode: CreateInnerAudioContextErrorCode
1233
+ };