@dcloudio/uni-app-x 0.7.59 → 0.7.61
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 +2 -2
- package/types/app.d.ts +24 -9
- package/types/native/IUniElement.d.ts +1 -3
- package/types/native/UniCustomElement.d.ts +2 -2
- package/types/native/UniFormControl.d.ts +1 -1
- package/types/native/UniInputChangeEvent.d.ts +31 -0
- package/types/native/UniPage.d.ts +10 -2
- package/types/native/UniSwiperAnimationFinishEvent.d.ts +1 -0
- package/types/native/UniSwiperChangeEvent.d.ts +1 -0
- package/types/native/WebViewStyles.d.ts +1 -1
- package/types/native/global.d.ts +14 -0
- package/types/native/index.d.ts +1 -0
- package/types/page.d.ts +134 -22
- package/types/uni/uni-camera-global.d.ts +4 -0
- package/types/uni/uni-camera.d.ts +10 -9
- package/types/uni/uts-plugin-api/global.d.ts +1 -0
- package/types/uni/uts-plugin-api/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +77 -433
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +3 -2
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +3 -2
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +9 -6
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +3 -2
- package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +10 -8
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +16 -0
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +569 -139
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +3 -2
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +7 -6
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +22 -37
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +12 -16
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +5 -3
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +5 -0
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +34 -15
- package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +3 -1
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +32 -61
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +45 -80
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +5 -3
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +13 -11
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +16 -15
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +12 -10
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +88 -4
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +54 -7
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +246 -236
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-location/utssdk/global.d.ts +38 -0
- package/types/uni/uts-plugin-api/lib/uni-location/utssdk/index.d.ts +19 -0
- package/types/uni/uts-plugin-api/lib/uni-location/utssdk/interface.d.ts +1783 -107
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +16 -20
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +209 -451
- package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +80 -698
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +10 -8
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +474 -184
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +755 -405
- package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/global.d.ts +16 -0
- package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/index.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/interface.d.ts +40 -0
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +10 -15
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +116 -124
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +11 -11
- package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +25 -26
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +54 -84
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +71 -89
- package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +300 -6
- package/types/uni/uts-plugin-api/lib/uni-share/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-share/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +347 -10
- package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +3 -1
- package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +3 -1
- package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +25 -33
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +20 -20
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +18 -18
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +70 -82
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +6 -5
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +49 -72
- package/types/uni/uts-plugin-biz/global.d.ts +11 -0
- package/types/uni/uts-plugin-biz/index.d.ts +11 -0
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +60 -3
- package/types/uni/uts-plugin-biz/lib/uni-facialVerify/utssdk/interface.d.ts +6 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/global.d.ts +52 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/index.d.ts +25 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/interface.d.ts +445 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/global.d.ts +48 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/index.d.ts +23 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/interface.d.ts +138 -0
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +28 -12
- package/types/uni/uts-plugin-biz/lib/uni-push-fcm/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-fcm/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-fcm/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-gp/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-gp/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-gp/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-hms/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-hms/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-hms/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-honor/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-honor/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-honor/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-mainland/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-mainland/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-mainland/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-meizu/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-meizu/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-meizu/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-oppo/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-oppo/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-oppo/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-vivo/utssdk/global.d.ts +18 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-vivo/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-vivo/utssdk/interface.d.ts +45 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-xiaomi/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-xiaomi/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-xiaomi/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +21 -16
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +16 -2
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +8 -1
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +153 -6
- package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +37 -44
- package/types/uni/uts-plugin-extend/global.d.ts +0 -2
- package/types/uni/uts-plugin-extend/index.d.ts +0 -2
- package/types/uni-cloud/interface.d.ts +13 -9
- package/types/vue/LifeCycle.d.ts +723 -1
- package/types/uni/uts-plugin-api/.temp/uni-actionSheet/utssdk/interface.uts +0 -554
- package/types/uni/uts-plugin-api/.temp/uni-addPhoneContact/utssdk/interface.uts +0 -224
- package/types/uni/uts-plugin-api/.temp/uni-arrayBufferToBase64/utssdk/interface.uts +0 -77
- package/types/uni/uts-plugin-api/.temp/uni-authentication/utssdk/interface.uts +0 -365
- package/types/uni/uts-plugin-api/.temp/uni-base64ToArrayBuffer/utssdk/interface.uts +0 -77
- package/types/uni/uts-plugin-api/.temp/uni-canvas/utssdk/interface.uts +0 -972
- package/types/uni/uts-plugin-api/.temp/uni-chooseLocation/utssdk/interface.uts +0 -410
- package/types/uni/uts-plugin-api/.temp/uni-chooseMedia/utssdk/interface.uts +0 -459
- package/types/uni/uts-plugin-api/.temp/uni-clipboard/utssdk/interface.uts +0 -203
- package/types/uni/uts-plugin-api/.temp/uni-createInnerAudioContext/utssdk/interface.uts +0 -2613
- package/types/uni/uts-plugin-api/.temp/uni-createIntersectionObserver/utssdk/interface.uts +0 -152
- package/types/uni/uts-plugin-api/.temp/uni-createRequestPermissionListener/utssdk/interface.uts +0 -61
- package/types/uni/uts-plugin-api/.temp/uni-createSelectorQuery/utssdk/interface.uts +0 -548
- package/types/uni/uts-plugin-api/.temp/uni-createWebviewContext/utssdk/interface.uts +0 -137
- package/types/uni/uts-plugin-api/.temp/uni-dialogPage/utssdk/interface.uts +0 -1380
- package/types/uni/uts-plugin-api/.temp/uni-document/utssdk/interface.uts +0 -76
- package/types/uni/uts-plugin-api/.temp/uni-event/utssdk/interface.uts +0 -338
- package/types/uni/uts-plugin-api/.temp/uni-exit/utssdk/interface.uts +0 -102
- package/types/uni/uts-plugin-api/.temp/uni-file/utssdk/interface.uts +0 -384
- package/types/uni/uts-plugin-api/.temp/uni-fileSystemManager/utssdk/interface.uts +0 -5316
- package/types/uni/uts-plugin-api/.temp/uni-getAccessibilityInfo/utssdk/interface.uts +0 -35
- package/types/uni/uts-plugin-api/.temp/uni-getAppAuthorizeSetting/utssdk/interface.uts +0 -616
- package/types/uni/uts-plugin-api/.temp/uni-getAppBaseInfo/utssdk/interface.uts +0 -2157
- package/types/uni/uts-plugin-api/.temp/uni-getBackgroundAudioManager/utssdk/interface.uts +0 -895
- package/types/uni/uts-plugin-api/.temp/uni-getDeviceInfo/utssdk/interface.uts +0 -1755
- package/types/uni/uts-plugin-api/.temp/uni-getElementById/utssdk/interface.uts +0 -82
- package/types/uni/uts-plugin-api/.temp/uni-getEnterOptionsSync/utssdk/interface.uts +0 -295
- package/types/uni/uts-plugin-api/.temp/uni-getLaunchOptionsSync/utssdk/interface.uts +0 -299
- package/types/uni/uts-plugin-api/.temp/uni-getLocation/utssdk/interface.uts +0 -1764
- package/types/uni/uts-plugin-api/.temp/uni-getLocation-system/utssdk/interface.uts +0 -1
- package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent/utssdk/interface.uts +0 -1
- package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent-uni1/utssdk/interface.uts +0 -736
- package/types/uni/uts-plugin-api/.temp/uni-getNetworkType/utssdk/interface.uts +0 -274
- package/types/uni/uts-plugin-api/.temp/uni-getPerformance/utssdk/interface.uts +0 -198
- package/types/uni/uts-plugin-api/.temp/uni-getProvider/utssdk/interface.uts +0 -634
- package/types/uni/uts-plugin-api/.temp/uni-getRecorderManager/utssdk/interface.uts +0 -980
- package/types/uni/uts-plugin-api/.temp/uni-getSystemInfo/utssdk/interface.uts +0 -5550
- package/types/uni/uts-plugin-api/.temp/uni-getSystemSetting/utssdk/interface.uts +0 -501
- package/types/uni/uts-plugin-api/.temp/uni-installApk/utssdk/interface.uts +0 -83
- package/types/uni/uts-plugin-api/.temp/uni-interceptor/utssdk/interface.uts +0 -169
- package/types/uni/uts-plugin-api/.temp/uni-keyboard/utssdk/interface.uts +0 -102
- package/types/uni/uts-plugin-api/.temp/uni-loadFontFace/utssdk/interface.uts +0 -580
- package/types/uni/uts-plugin-api/.temp/uni-makePhoneCall/utssdk/interface.uts +0 -100
- package/types/uni/uts-plugin-api/.temp/uni-media/utssdk/interface.uts +0 -2980
- package/types/uni/uts-plugin-api/.temp/uni-modal/utssdk/interface.uts +0 -190
- package/types/uni/uts-plugin-api/.temp/uni-navigationBar/utssdk/interface.uts +0 -1002
- package/types/uni/uts-plugin-api/.temp/uni-network/utssdk/interface.uts +0 -3620
- package/types/uni/uts-plugin-api/.temp/uni-oauth/utssdk/interface.uts +0 -1592
- package/types/uni/uts-plugin-api/.temp/uni-oauth-huawei/utssdk/interface.uts +0 -1
- package/types/uni/uts-plugin-api/.temp/uni-openAppAuthorizeSetting/utssdk/interface.uts +0 -254
- package/types/uni/uts-plugin-api/.temp/uni-openDocument/utssdk/interface.uts +0 -112
- package/types/uni/uts-plugin-api/.temp/uni-pageScrollTo/utssdk/interface.uts +0 -153
- package/types/uni/uts-plugin-api/.temp/uni-payment/utssdk/interface.uts +0 -833
- package/types/uni/uts-plugin-api/.temp/uni-payment-alipay/utssdk/interface.uts +0 -1
- package/types/uni/uts-plugin-api/.temp/uni-payment-huawei/utssdk/interface.uts +0 -1
- package/types/uni/uts-plugin-api/.temp/uni-payment-wxpay/utssdk/interface.uts +0 -3
- package/types/uni/uts-plugin-api/.temp/uni-previewImage/utssdk/interface.uts +0 -518
- package/types/uni/uts-plugin-api/.temp/uni-privacy/utssdk/interface.uts +0 -560
- package/types/uni/uts-plugin-api/.temp/uni-prompt/utssdk/interface.uts +0 -2607
- package/types/uni/uts-plugin-api/.temp/uni-pullDownRefresh/utssdk/interface.uts +0 -189
- package/types/uni/uts-plugin-api/.temp/uni-requestMerchantTransfer/utssdk/interface.uts +0 -710
- package/types/uni/uts-plugin-api/.temp/uni-route/utssdk/interface.uts +0 -2695
- package/types/uni/uts-plugin-api/.temp/uni-rpx2px/utssdk/interface.uts +0 -80
- package/types/uni/uts-plugin-api/.temp/uni-scanCode/utssdk/interface.uts +0 -130
- package/types/uni/uts-plugin-api/.temp/uni-shareWithSystem/utssdk/interface.uts +0 -719
- package/types/uni/uts-plugin-api/.temp/uni-sse/utssdk/interface.uts +0 -277
- package/types/uni/uts-plugin-api/.temp/uni-storage/utssdk/interface.uts +0 -1020
- package/types/uni/uts-plugin-api/.temp/uni-tabBar/utssdk/interface.uts +0 -1148
- package/types/uni/uts-plugin-api/.temp/uni-theme/utssdk/interface.uts +0 -1059
- package/types/uni/uts-plugin-api/.temp/uni-virtualPayment/utssdk/interface.uts +0 -1660
- package/types/uni/uts-plugin-api/.temp/uni-websocket/utssdk/interface.uts +0 -1941
- package/types/uni/uts-plugin-biz/.temp/uni-ad/utssdk/interface.uts +0 -726
- package/types/uni/uts-plugin-biz/.temp/uni-crash/utssdk/interface.uts +0 -89
- package/types/uni/uts-plugin-biz/.temp/uni-facialRecognitionVerify/utssdk/interface.uts +0 -212
- package/types/uni/uts-plugin-biz/.temp/uni-map-tencent/utssdk/interface.uts +0 -2359
- package/types/uni/uts-plugin-biz/.temp/uni-push/utssdk/interface.uts +0 -960
- package/types/uni/uts-plugin-biz/.temp/uni-secure-network/utssdk/interface.uts +0 -204
- package/types/uni/uts-plugin-biz/.temp/uni-verify/utssdk/interface.uts +0 -730
- package/types/uni/uts-plugin-component/.temp/uni-camera/utssdk/interface.uts +0 -221
- package/types/uni/uts-plugin-component/.temp/uni-video/utssdk/interface.uts +0 -935
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +0 -14
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +0 -1670
|
@@ -1,895 +0,0 @@
|
|
|
1
|
-
export interface Uni {
|
|
2
|
-
/**
|
|
3
|
-
* 获取全局唯一的背景音频管理器 backgroundAudioManager
|
|
4
|
-
*
|
|
5
|
-
* @tutorial https://uniapp.dcloud.net.cn/api/media/background-audio-manager.html
|
|
6
|
-
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/media/background-audio-manager.html
|
|
7
|
-
* @uniPlatform {
|
|
8
|
-
* "app": {
|
|
9
|
-
* "android": {
|
|
10
|
-
* "osVer": "5.0",
|
|
11
|
-
* "uniVer": "√",
|
|
12
|
-
* "unixVer": "4.41"
|
|
13
|
-
* },
|
|
14
|
-
* "ios": {
|
|
15
|
-
* "osVer": "12.0",
|
|
16
|
-
* "uniVer": "√",
|
|
17
|
-
* "unixVer": "4.41"
|
|
18
|
-
* },
|
|
19
|
-
* "harmony": {
|
|
20
|
-
* "osVer": "3.0",
|
|
21
|
-
* "uniVer": "4.31",
|
|
22
|
-
* "unixVer": "4.61"
|
|
23
|
-
* }
|
|
24
|
-
* },
|
|
25
|
-
* "web": {
|
|
26
|
-
* "uniVer": "√",
|
|
27
|
-
* "unixVer": "x"
|
|
28
|
-
* }
|
|
29
|
-
* "mp":{
|
|
30
|
-
* "weixin": {
|
|
31
|
-
* "hostVer": "√",
|
|
32
|
-
* "uniVer": "√",
|
|
33
|
-
* "unixVer": "4.41"
|
|
34
|
-
* },
|
|
35
|
-
* "alipay": {
|
|
36
|
-
* "hostVer": "1.11.0",
|
|
37
|
-
* "uniVer": "√",
|
|
38
|
-
* "unixVer": "x"
|
|
39
|
-
* },
|
|
40
|
-
* "baidu": {
|
|
41
|
-
* "hostVer": "√",
|
|
42
|
-
* "uniVer": "√",
|
|
43
|
-
* "unixVer": "x"
|
|
44
|
-
* },
|
|
45
|
-
* "toutiao": {
|
|
46
|
-
* "hostVer": "√",
|
|
47
|
-
* "uniVer": "√",
|
|
48
|
-
* "unixVer": "x"
|
|
49
|
-
* },
|
|
50
|
-
* "lark": {
|
|
51
|
-
* "hostVer": "5.20.0",
|
|
52
|
-
* "uniVer": "√",
|
|
53
|
-
* "unixVer": "x"
|
|
54
|
-
* },
|
|
55
|
-
* "qq": {
|
|
56
|
-
* "hostVer": "√",
|
|
57
|
-
* "uniVer": "√",
|
|
58
|
-
* "unixVer": "x"
|
|
59
|
-
* },
|
|
60
|
-
* "kuaishou": {
|
|
61
|
-
* "hostVer": "√",
|
|
62
|
-
* "uniVer": "√",
|
|
63
|
-
* "unixVer": "x"
|
|
64
|
-
* },
|
|
65
|
-
* "jd": {
|
|
66
|
-
* "hostVer": "√",
|
|
67
|
-
* "uniVer": "√",
|
|
68
|
-
* "unixVer": "x"
|
|
69
|
-
* }
|
|
70
|
-
* }
|
|
71
|
-
* }
|
|
72
|
-
*/
|
|
73
|
-
getBackgroundAudioManager(): BackgroundAudioManager;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export type GetBackgroundAudioManager = () => BackgroundAudioManager;
|
|
77
|
-
|
|
78
|
-
export interface BackgroundAudioManager {
|
|
79
|
-
/**
|
|
80
|
-
* 当前音频的长度(单位:s),只有在当前有合法的 src 时返回
|
|
81
|
-
* @uniPlatform
|
|
82
|
-
{
|
|
83
|
-
"app": {
|
|
84
|
-
"android": {
|
|
85
|
-
"osVer": "5.0",
|
|
86
|
-
"uniVer": "√",
|
|
87
|
-
"uniUtsPlugin": "x",
|
|
88
|
-
"unixVer": "4.41",
|
|
89
|
-
"unixUtsPlugin": "4.41"
|
|
90
|
-
},
|
|
91
|
-
"ios": {
|
|
92
|
-
"osVer": "12.0",
|
|
93
|
-
"uniVer": "√",
|
|
94
|
-
"uniUtsPlugin": "x",
|
|
95
|
-
"unixVer": "4.41",
|
|
96
|
-
"unixUtsPlugin": "4.41"
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
*/
|
|
101
|
-
duration: number;
|
|
102
|
-
/**
|
|
103
|
-
* 当前音频的播放位置(单位:s),只有在当前有合法的 src 时返回
|
|
104
|
-
* @uniPlatform
|
|
105
|
-
{
|
|
106
|
-
"app": {
|
|
107
|
-
"android": {
|
|
108
|
-
"osVer": "5.0",
|
|
109
|
-
"uniVer": "√",
|
|
110
|
-
"uniUtsPlugin": "x",
|
|
111
|
-
"unixVer": "4.41",
|
|
112
|
-
"unixUtsPlugin": "4.41"
|
|
113
|
-
},
|
|
114
|
-
"ios": {
|
|
115
|
-
"osVer": "12.0",
|
|
116
|
-
"uniVer": "√",
|
|
117
|
-
"uniUtsPlugin": "x",
|
|
118
|
-
"unixVer": "4.41",
|
|
119
|
-
"unixUtsPlugin": "4.41"
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
*/
|
|
124
|
-
currentTime: number;
|
|
125
|
-
/**
|
|
126
|
-
* 当前是是否暂停或停止状态,true 表示暂停或停止,false 表示正在播放
|
|
127
|
-
* @uniPlatform
|
|
128
|
-
{
|
|
129
|
-
"app": {
|
|
130
|
-
"android": {
|
|
131
|
-
"osVer": "5.0",
|
|
132
|
-
"uniVer": "√",
|
|
133
|
-
"uniUtsPlugin": "x",
|
|
134
|
-
"unixVer": "4.41",
|
|
135
|
-
"unixUtsPlugin": "4.41"
|
|
136
|
-
},
|
|
137
|
-
"ios": {
|
|
138
|
-
"osVer": "12.0",
|
|
139
|
-
"uniVer": "√",
|
|
140
|
-
"uniUtsPlugin": "x",
|
|
141
|
-
"unixVer": "4.41",
|
|
142
|
-
"unixUtsPlugin": "4.41"
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
* @type boolean
|
|
147
|
-
*/
|
|
148
|
-
paused: boolean;
|
|
149
|
-
/**
|
|
150
|
-
* 音频的数据源,默认为空字符串,当设置了新的 src 时,会自动开始播放 ,目前支持的格式有 m4a, aac, mp3, wav
|
|
151
|
-
* @uniPlatform
|
|
152
|
-
{
|
|
153
|
-
"app": {
|
|
154
|
-
"android": {
|
|
155
|
-
"osVer": "5.0",
|
|
156
|
-
"uniVer": "√",
|
|
157
|
-
"uniUtsPlugin": "x",
|
|
158
|
-
"unixVer": "4.41",
|
|
159
|
-
"unixUtsPlugin": "4.41"
|
|
160
|
-
},
|
|
161
|
-
"ios": {
|
|
162
|
-
"osVer": "12.0",
|
|
163
|
-
"uniVer": "√",
|
|
164
|
-
"uniUtsPlugin": "x",
|
|
165
|
-
"unixVer": "4.41",
|
|
166
|
-
"unixUtsPlugin": "4.41"
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
*/
|
|
171
|
-
src: string;
|
|
172
|
-
/**
|
|
173
|
-
* 音频开始播放的位置(单位:s)
|
|
174
|
-
* @uniPlatform
|
|
175
|
-
{
|
|
176
|
-
"app": {
|
|
177
|
-
"android": {
|
|
178
|
-
"osVer": "5.0",
|
|
179
|
-
"uniVer": "√",
|
|
180
|
-
"uniUtsPlugin": "x",
|
|
181
|
-
"unixVer": "4.41",
|
|
182
|
-
"unixUtsPlugin": "4.41"
|
|
183
|
-
},
|
|
184
|
-
"ios": {
|
|
185
|
-
"osVer": "12.0",
|
|
186
|
-
"uniVer": "√",
|
|
187
|
-
"uniUtsPlugin": "x",
|
|
188
|
-
"unixVer": "4.41",
|
|
189
|
-
"unixUtsPlugin": "4.41"
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
*/
|
|
194
|
-
startTime: number;
|
|
195
|
-
/**
|
|
196
|
-
* 音频缓冲的时间点,仅保证当前播放时间点到此时间点内容已缓冲
|
|
197
|
-
* @uniPlatform
|
|
198
|
-
{
|
|
199
|
-
"app": {
|
|
200
|
-
"android": {
|
|
201
|
-
"osVer": "5.0",
|
|
202
|
-
"uniVer": "√",
|
|
203
|
-
"uniUtsPlugin": "x",
|
|
204
|
-
"unixVer": "4.41",
|
|
205
|
-
"unixUtsPlugin": "4.41"
|
|
206
|
-
},
|
|
207
|
-
"ios": {
|
|
208
|
-
"osVer": "12.0",
|
|
209
|
-
"uniVer": "√",
|
|
210
|
-
"uniUtsPlugin": "x",
|
|
211
|
-
"unixVer": "4.41",
|
|
212
|
-
"unixUtsPlugin": "4.41"
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
*/
|
|
217
|
-
buffered: number;
|
|
218
|
-
/**
|
|
219
|
-
* 音频标题,用于做原生音频播放器音频标题。原生音频播放器中的分享功能,分享出去的卡片标题,也将使用该值。
|
|
220
|
-
* @uniPlatform
|
|
221
|
-
{
|
|
222
|
-
"app": {
|
|
223
|
-
"android": {
|
|
224
|
-
"osVer": "5.0",
|
|
225
|
-
"uniVer": "√",
|
|
226
|
-
"uniUtsPlugin": "x",
|
|
227
|
-
"unixVer": "4.41",
|
|
228
|
-
"unixUtsPlugin": "4.41"
|
|
229
|
-
},
|
|
230
|
-
"ios": {
|
|
231
|
-
"osVer": "12.0",
|
|
232
|
-
"uniVer": "√",
|
|
233
|
-
"uniUtsPlugin": "x",
|
|
234
|
-
"unixVer": "4.41",
|
|
235
|
-
"unixUtsPlugin": "4.41"
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
*/
|
|
240
|
-
title: string;
|
|
241
|
-
/**
|
|
242
|
-
* 专辑名,原生音频播放器中的分享功能,分享出去的卡片简介,也将使用该值
|
|
243
|
-
* @uniPlatform
|
|
244
|
-
{
|
|
245
|
-
"app": {
|
|
246
|
-
"android": {
|
|
247
|
-
"osVer": "5.0",
|
|
248
|
-
"uniVer": "√",
|
|
249
|
-
"uniUtsPlugin": "x",
|
|
250
|
-
"unixVer": "4.41",
|
|
251
|
-
"unixUtsPlugin": "4.41"
|
|
252
|
-
},
|
|
253
|
-
"ios": {
|
|
254
|
-
"osVer": "12.0",
|
|
255
|
-
"uniVer": "√",
|
|
256
|
-
"uniUtsPlugin": "x",
|
|
257
|
-
"unixVer": "4.41",
|
|
258
|
-
"unixUtsPlugin": "4.41"
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
*/
|
|
263
|
-
epname: string;
|
|
264
|
-
/**
|
|
265
|
-
* 歌手名,原生音频播放器中的分享功能,分享出去的卡片简介,也将使用该值
|
|
266
|
-
* @uniPlatform
|
|
267
|
-
{
|
|
268
|
-
"app": {
|
|
269
|
-
"android": {
|
|
270
|
-
"osVer": "5.0",
|
|
271
|
-
"uniVer": "√",
|
|
272
|
-
"uniUtsPlugin": "x",
|
|
273
|
-
"unixVer": "4.41",
|
|
274
|
-
"unixUtsPlugin": "4.41"
|
|
275
|
-
},
|
|
276
|
-
"ios": {
|
|
277
|
-
"osVer": "12.0",
|
|
278
|
-
"uniVer": "√",
|
|
279
|
-
"uniUtsPlugin": "x",
|
|
280
|
-
"unixVer": "4.41",
|
|
281
|
-
"unixUtsPlugin": "4.41"
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
*/
|
|
286
|
-
singer: string;
|
|
287
|
-
/**
|
|
288
|
-
* 封面图url,用于做原生音频播放器背景图。原生音频播放器中的分享功能,分享出去的卡片配图及背景也将使用该图。
|
|
289
|
-
* @uniPlatform
|
|
290
|
-
{
|
|
291
|
-
"app": {
|
|
292
|
-
"android": {
|
|
293
|
-
"osVer": "5.0",
|
|
294
|
-
"uniVer": "√",
|
|
295
|
-
"uniUtsPlugin": "x",
|
|
296
|
-
"unixVer": "4.41",
|
|
297
|
-
"unixUtsPlugin": "4.41"
|
|
298
|
-
},
|
|
299
|
-
"ios": {
|
|
300
|
-
"osVer": "12.0",
|
|
301
|
-
"uniVer": "√",
|
|
302
|
-
"uniUtsPlugin": "x",
|
|
303
|
-
"unixVer": "4.41",
|
|
304
|
-
"unixUtsPlugin": "4.41"
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
*/
|
|
309
|
-
coverImgUrl: string;
|
|
310
|
-
/**
|
|
311
|
-
* 页面链接,原生音频播放器中的分享功能,分享出去的卡片简介,也将使用该值
|
|
312
|
-
* @uniPlatform
|
|
313
|
-
{
|
|
314
|
-
"app": {
|
|
315
|
-
"android": {
|
|
316
|
-
"osVer": "5.0",
|
|
317
|
-
"uniVer": "√",
|
|
318
|
-
"uniUtsPlugin": "x",
|
|
319
|
-
"unixVer": "x",
|
|
320
|
-
"unixUtsPlugin": "x"
|
|
321
|
-
},
|
|
322
|
-
"ios": {
|
|
323
|
-
"osVer": "12.0",
|
|
324
|
-
"uniVer": "√",
|
|
325
|
-
"uniUtsPlugin": "x",
|
|
326
|
-
"unixVer": "x",
|
|
327
|
-
"unixUtsPlugin": "x"
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
*/
|
|
332
|
-
webUrl: string;
|
|
333
|
-
/**
|
|
334
|
-
* 音频协议。默认值为 'http',设置 'hls' 可以支持播放 HLS 协议的直播音频
|
|
335
|
-
* @uniPlatform
|
|
336
|
-
{
|
|
337
|
-
"app": {
|
|
338
|
-
"android": {
|
|
339
|
-
"osVer": "5.0",
|
|
340
|
-
"uniVer": "√",
|
|
341
|
-
"uniUtsPlugin": "x",
|
|
342
|
-
"unixVer": "x",
|
|
343
|
-
"unixUtsPlugin": "x"
|
|
344
|
-
},
|
|
345
|
-
"ios": {
|
|
346
|
-
"osVer": "12.0",
|
|
347
|
-
"uniVer": "√",
|
|
348
|
-
"uniUtsPlugin": "x",
|
|
349
|
-
"unixVer": "x",
|
|
350
|
-
"unixUtsPlugin": "x"
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
*/
|
|
355
|
-
protocol: string;
|
|
356
|
-
/**
|
|
357
|
-
* 播放的倍率。可取值: 0.5/0.8/1.0/1.25/1.5/2.0,默认值为1.0。(仅 App 支持)
|
|
358
|
-
* @uniPlatform
|
|
359
|
-
{
|
|
360
|
-
"app": {
|
|
361
|
-
"android": {
|
|
362
|
-
"osVer": "5.0",
|
|
363
|
-
"uniVer": "√",
|
|
364
|
-
"uniUtsPlugin": "x",
|
|
365
|
-
"unixVer": "4.41",
|
|
366
|
-
"unixUtsPlugin": "4.41"
|
|
367
|
-
},
|
|
368
|
-
"ios": {
|
|
369
|
-
"osVer": "12.0",
|
|
370
|
-
"uniVer": "√",
|
|
371
|
-
"uniUtsPlugin": "x",
|
|
372
|
-
"unixVer": "4.41",
|
|
373
|
-
"unixUtsPlugin": "4.41"
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
*/
|
|
378
|
-
playbackRate?: number;
|
|
379
|
-
/**
|
|
380
|
-
* 播放
|
|
381
|
-
* @uniPlatform
|
|
382
|
-
{
|
|
383
|
-
"app": {
|
|
384
|
-
"android": {
|
|
385
|
-
"osVer": "5.0",
|
|
386
|
-
"uniVer": "√",
|
|
387
|
-
"uniUtsPlugin": "x",
|
|
388
|
-
"unixVer": "4.41",
|
|
389
|
-
"unixUtsPlugin": "4.41"
|
|
390
|
-
},
|
|
391
|
-
"ios": {
|
|
392
|
-
"osVer": "12.0",
|
|
393
|
-
"uniVer": "√",
|
|
394
|
-
"uniUtsPlugin": "x",
|
|
395
|
-
"unixVer": "4.41",
|
|
396
|
-
"unixUtsPlugin": "4.41"
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
*/
|
|
401
|
-
play(): void;
|
|
402
|
-
/**
|
|
403
|
-
* 暂停
|
|
404
|
-
* @uniPlatform
|
|
405
|
-
{
|
|
406
|
-
"app": {
|
|
407
|
-
"android": {
|
|
408
|
-
"osVer": "5.0",
|
|
409
|
-
"uniVer": "√",
|
|
410
|
-
"uniUtsPlugin": "x",
|
|
411
|
-
"unixVer": "4.41",
|
|
412
|
-
"unixUtsPlugin": "4.41"
|
|
413
|
-
},
|
|
414
|
-
"ios": {
|
|
415
|
-
"osVer": "12.0",
|
|
416
|
-
"uniVer": "√",
|
|
417
|
-
"uniUtsPlugin": "x",
|
|
418
|
-
"unixVer": "4.41",
|
|
419
|
-
"unixUtsPlugin": "4.41"
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
*/
|
|
424
|
-
pause(): void;
|
|
425
|
-
/**
|
|
426
|
-
* 跳转到指定位置,单位 s
|
|
427
|
-
* @uniPlatform
|
|
428
|
-
{
|
|
429
|
-
"app": {
|
|
430
|
-
"android": {
|
|
431
|
-
"osVer": "5.0",
|
|
432
|
-
"uniVer": "√",
|
|
433
|
-
"uniUtsPlugin": "x",
|
|
434
|
-
"unixVer": "4.41",
|
|
435
|
-
"unixUtsPlugin": "4.41"
|
|
436
|
-
},
|
|
437
|
-
"ios": {
|
|
438
|
-
"osVer": "12.0",
|
|
439
|
-
"uniVer": "√",
|
|
440
|
-
"uniUtsPlugin": "x",
|
|
441
|
-
"unixVer": "4.41",
|
|
442
|
-
"unixUtsPlugin": "4.41"
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
*/
|
|
447
|
-
seek(position: number): void;
|
|
448
|
-
/**
|
|
449
|
-
* 停止
|
|
450
|
-
* @uniPlatform
|
|
451
|
-
{
|
|
452
|
-
"app": {
|
|
453
|
-
"android": {
|
|
454
|
-
"osVer": "5.0",
|
|
455
|
-
"uniVer": "√",
|
|
456
|
-
"uniUtsPlugin": "x",
|
|
457
|
-
"unixVer": "4.41",
|
|
458
|
-
"unixUtsPlugin": "4.41"
|
|
459
|
-
},
|
|
460
|
-
"ios": {
|
|
461
|
-
"osVer": "12.0",
|
|
462
|
-
"uniVer": "√",
|
|
463
|
-
"uniUtsPlugin": "x",
|
|
464
|
-
"unixVer": "4.41",
|
|
465
|
-
"unixUtsPlugin": "4.41"
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
*/
|
|
470
|
-
stop(): void;
|
|
471
|
-
/**
|
|
472
|
-
* 背景音频进入可以播放状态,但不保证后面可以流畅播放
|
|
473
|
-
* @uniPlatform
|
|
474
|
-
{
|
|
475
|
-
"app": {
|
|
476
|
-
"android": {
|
|
477
|
-
"osVer": "5.0",
|
|
478
|
-
"uniVer": "√",
|
|
479
|
-
"uniUtsPlugin": "x",
|
|
480
|
-
"unixVer": "4.41",
|
|
481
|
-
"unixUtsPlugin": "4.41"
|
|
482
|
-
},
|
|
483
|
-
"ios": {
|
|
484
|
-
"osVer": "12.0",
|
|
485
|
-
"uniVer": "√",
|
|
486
|
-
"uniUtsPlugin": "x",
|
|
487
|
-
"unixVer": "4.41",
|
|
488
|
-
"unixUtsPlugin": "4.41"
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
*/
|
|
493
|
-
onCanplay(callback: (result: any) => void): void;
|
|
494
|
-
/**
|
|
495
|
-
* 背景音频播放事件
|
|
496
|
-
* @uniPlatform
|
|
497
|
-
{
|
|
498
|
-
"app": {
|
|
499
|
-
"android": {
|
|
500
|
-
"osVer": "5.0",
|
|
501
|
-
"uniVer": "√",
|
|
502
|
-
"uniUtsPlugin": "x",
|
|
503
|
-
"unixVer": "4.41",
|
|
504
|
-
"unixUtsPlugin": "4.41"
|
|
505
|
-
},
|
|
506
|
-
"ios": {
|
|
507
|
-
"osVer": "12.0",
|
|
508
|
-
"uniVer": "√",
|
|
509
|
-
"uniUtsPlugin": "x",
|
|
510
|
-
"unixVer": "4.41",
|
|
511
|
-
"unixUtsPlugin": "4.41"
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
*/
|
|
516
|
-
onPlay(callback: (result: any) => void): void;
|
|
517
|
-
/**
|
|
518
|
-
* 背景音频暂停事件
|
|
519
|
-
* @uniPlatform
|
|
520
|
-
{
|
|
521
|
-
"app": {
|
|
522
|
-
"android": {
|
|
523
|
-
"osVer": "5.0",
|
|
524
|
-
"uniVer": "√",
|
|
525
|
-
"uniUtsPlugin": "x",
|
|
526
|
-
"unixVer": "4.41",
|
|
527
|
-
"unixUtsPlugin": "4.41"
|
|
528
|
-
},
|
|
529
|
-
"ios": {
|
|
530
|
-
"osVer": "12.0",
|
|
531
|
-
"uniVer": "√",
|
|
532
|
-
"uniUtsPlugin": "x",
|
|
533
|
-
"unixVer": "4.41",
|
|
534
|
-
"unixUtsPlugin": "4.41"
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
*/
|
|
539
|
-
onPause(callback: (result: any) => void): void;
|
|
540
|
-
/**
|
|
541
|
-
* 背景音频停止事件
|
|
542
|
-
* @uniPlatform
|
|
543
|
-
{
|
|
544
|
-
"app": {
|
|
545
|
-
"android": {
|
|
546
|
-
"osVer": "5.0",
|
|
547
|
-
"uniVer": "√",
|
|
548
|
-
"uniUtsPlugin": "x",
|
|
549
|
-
"unixVer": "4.41",
|
|
550
|
-
"unixUtsPlugin": "4.41"
|
|
551
|
-
},
|
|
552
|
-
"ios": {
|
|
553
|
-
"osVer": "12.0",
|
|
554
|
-
"uniVer": "√",
|
|
555
|
-
"uniUtsPlugin": "x",
|
|
556
|
-
"unixVer": "4.41",
|
|
557
|
-
"unixUtsPlugin": "4.41"
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
*/
|
|
562
|
-
onStop(callback: (result: any) => void): void;
|
|
563
|
-
/**
|
|
564
|
-
* 背景音频自然播放结束事件
|
|
565
|
-
* @uniPlatform
|
|
566
|
-
{
|
|
567
|
-
"app": {
|
|
568
|
-
"android": {
|
|
569
|
-
"osVer": "5.0",
|
|
570
|
-
"uniVer": "√",
|
|
571
|
-
"uniUtsPlugin": "x",
|
|
572
|
-
"unixVer": "4.41",
|
|
573
|
-
"unixUtsPlugin": "4.41"
|
|
574
|
-
},
|
|
575
|
-
"ios": {
|
|
576
|
-
"osVer": "12.0",
|
|
577
|
-
"uniVer": "√",
|
|
578
|
-
"uniUtsPlugin": "x",
|
|
579
|
-
"unixVer": "4.41",
|
|
580
|
-
"unixUtsPlugin": "4.41"
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
*/
|
|
585
|
-
onEnded(callback: (result: any) => void): void;
|
|
586
|
-
/**
|
|
587
|
-
* 音频进行 seek 操作事件
|
|
588
|
-
* @uniPlatform
|
|
589
|
-
{
|
|
590
|
-
"app": {
|
|
591
|
-
"android": {
|
|
592
|
-
"osVer": "5.0",
|
|
593
|
-
"uniVer": "√",
|
|
594
|
-
"uniUtsPlugin": "x",
|
|
595
|
-
"unixVer": "4.41",
|
|
596
|
-
"unixUtsPlugin": "4.41"
|
|
597
|
-
},
|
|
598
|
-
"ios": {
|
|
599
|
-
"osVer": "12.0",
|
|
600
|
-
"uniVer": "√",
|
|
601
|
-
"uniUtsPlugin": "x",
|
|
602
|
-
"unixVer": "4.41",
|
|
603
|
-
"unixUtsPlugin": "4.41"
|
|
604
|
-
}
|
|
605
|
-
},
|
|
606
|
-
"web": {
|
|
607
|
-
"uniVer": "√",
|
|
608
|
-
"unixVer": "4.0"
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
*/
|
|
612
|
-
onSeeking(callback : (result : any) => void) : void;
|
|
613
|
-
/**
|
|
614
|
-
* 音频完成 seek 操作事件
|
|
615
|
-
* @uniPlatform
|
|
616
|
-
{
|
|
617
|
-
"app": {
|
|
618
|
-
"android": {
|
|
619
|
-
"osVer": "5.0",
|
|
620
|
-
"uniVer": "√",
|
|
621
|
-
"uniUtsPlugin": "x",
|
|
622
|
-
"unixVer": "4.41",
|
|
623
|
-
"unixUtsPlugin": "4.41"
|
|
624
|
-
},
|
|
625
|
-
"ios": {
|
|
626
|
-
"osVer": "12.0",
|
|
627
|
-
"uniVer": "√",
|
|
628
|
-
"uniUtsPlugin": "x",
|
|
629
|
-
"unixVer": "4.41",
|
|
630
|
-
"unixUtsPlugin": "4.41"
|
|
631
|
-
}
|
|
632
|
-
},
|
|
633
|
-
"web": {
|
|
634
|
-
"uniVer": "√",
|
|
635
|
-
"unixVer": "4.0"
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
*/
|
|
639
|
-
onSeeked(callback : (result : any) => void) : void;
|
|
640
|
-
/**
|
|
641
|
-
* 背景音频播放进度更新事件
|
|
642
|
-
* @uniPlatform
|
|
643
|
-
{
|
|
644
|
-
"app": {
|
|
645
|
-
"android": {
|
|
646
|
-
"osVer": "5.0",
|
|
647
|
-
"uniVer": "√",
|
|
648
|
-
"uniUtsPlugin": "x",
|
|
649
|
-
"unixVer": "4.41",
|
|
650
|
-
"unixUtsPlugin": "4.41"
|
|
651
|
-
},
|
|
652
|
-
"ios": {
|
|
653
|
-
"osVer": "12.0",
|
|
654
|
-
"uniVer": "√",
|
|
655
|
-
"uniUtsPlugin": "x",
|
|
656
|
-
"unixVer": "4.41",
|
|
657
|
-
"unixUtsPlugin": "4.41"
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
}
|
|
661
|
-
*/
|
|
662
|
-
onTimeUpdate(callback: (result: any) => void): void;
|
|
663
|
-
/**
|
|
664
|
-
* 用户在系统音乐播放面板点击上一曲事件
|
|
665
|
-
* @uniPlatform
|
|
666
|
-
{
|
|
667
|
-
"app": {
|
|
668
|
-
"android": {
|
|
669
|
-
"osVer": "5.0",
|
|
670
|
-
"uniVer": "√",
|
|
671
|
-
"uniUtsPlugin": "x",
|
|
672
|
-
"unixVer": "4.41",
|
|
673
|
-
"unixUtsPlugin": "4.41"
|
|
674
|
-
},
|
|
675
|
-
"ios": {
|
|
676
|
-
"osVer": "12.0",
|
|
677
|
-
"uniVer": "√",
|
|
678
|
-
"uniUtsPlugin": "x",
|
|
679
|
-
"unixVer": "4.41",
|
|
680
|
-
"unixUtsPlugin": "4.41"
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
*/
|
|
685
|
-
onPrev(callback: (result: any) => void): void;
|
|
686
|
-
/**
|
|
687
|
-
* 用户在系统音乐播放面板点击下一曲事件
|
|
688
|
-
* @uniPlatform
|
|
689
|
-
{
|
|
690
|
-
"app": {
|
|
691
|
-
"android": {
|
|
692
|
-
"osVer": "5.0",
|
|
693
|
-
"uniVer": "√",
|
|
694
|
-
"uniUtsPlugin": "x",
|
|
695
|
-
"unixVer": "4.41",
|
|
696
|
-
"unixUtsPlugin": "4.41"
|
|
697
|
-
},
|
|
698
|
-
"ios": {
|
|
699
|
-
"osVer": "12.0",
|
|
700
|
-
"uniVer": "√",
|
|
701
|
-
"uniUtsPlugin": "x",
|
|
702
|
-
"unixVer": "4.41",
|
|
703
|
-
"unixUtsPlugin": "4.41"
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
*/
|
|
708
|
-
onNext(callback: (result: any) => void): void;
|
|
709
|
-
/**
|
|
710
|
-
* 背景音频播放错误事件
|
|
711
|
-
* @uniPlatform
|
|
712
|
-
{
|
|
713
|
-
"app": {
|
|
714
|
-
"android": {
|
|
715
|
-
"osVer": "5.0",
|
|
716
|
-
"uniVer": "√",
|
|
717
|
-
"uniUtsPlugin": "x",
|
|
718
|
-
"unixVer": "4.41",
|
|
719
|
-
"unixUtsPlugin": "4.41"
|
|
720
|
-
},
|
|
721
|
-
"ios": {
|
|
722
|
-
"osVer": "12.0",
|
|
723
|
-
"uniVer": "√",
|
|
724
|
-
"uniUtsPlugin": "x",
|
|
725
|
-
"unixVer": "4.41",
|
|
726
|
-
"unixUtsPlugin": "4.41"
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
*/
|
|
731
|
-
onError(callback : (result : ICreateBackgroundAudioFail) => void) : void;
|
|
732
|
-
/**
|
|
733
|
-
* 音频加载中事件,当音频因为数据不足,需要停下来加载时会触发
|
|
734
|
-
* @uniPlatform
|
|
735
|
-
{
|
|
736
|
-
"app": {
|
|
737
|
-
"android": {
|
|
738
|
-
"osVer": "5.0",
|
|
739
|
-
"uniVer": "√",
|
|
740
|
-
"uniUtsPlugin": "x",
|
|
741
|
-
"unixVer": "4.41",
|
|
742
|
-
"unixUtsPlugin": "4.41"
|
|
743
|
-
},
|
|
744
|
-
"ios": {
|
|
745
|
-
"osVer": "12.0",
|
|
746
|
-
"uniVer": "√",
|
|
747
|
-
"uniUtsPlugin": "x",
|
|
748
|
-
"unixVer": "4.41",
|
|
749
|
-
"unixUtsPlugin": "4.41"
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
}
|
|
753
|
-
*/
|
|
754
|
-
onWaiting(callback: (result: any) => void): void;
|
|
755
|
-
}
|
|
756
|
-
/**
|
|
757
|
-
* 错误码
|
|
758
|
-
*/
|
|
759
|
-
export type CreateBackgroundAudioErrorCode =
|
|
760
|
-
/**
|
|
761
|
-
* 系统错误
|
|
762
|
-
* @uniPlatform {
|
|
763
|
-
"app": {
|
|
764
|
-
"android": {
|
|
765
|
-
"osVer": "5.0",
|
|
766
|
-
"uniVer": "√",
|
|
767
|
-
"uniUtsPlugin": "x",
|
|
768
|
-
"unixVer": "4.41",
|
|
769
|
-
"unixUtsPlugin": "4.41"
|
|
770
|
-
},
|
|
771
|
-
"ios": {
|
|
772
|
-
"osVer": "12.0",
|
|
773
|
-
"uniVer": "√",
|
|
774
|
-
"uniUtsPlugin": "x",
|
|
775
|
-
"unixVer": "4.41",
|
|
776
|
-
"unixUtsPlugin": "4.41"
|
|
777
|
-
}
|
|
778
|
-
},
|
|
779
|
-
}
|
|
780
|
-
*/
|
|
781
|
-
1107601 |
|
|
782
|
-
/**
|
|
783
|
-
* 网络错误
|
|
784
|
-
* @uniPlatform {
|
|
785
|
-
"app": {
|
|
786
|
-
"android": {
|
|
787
|
-
"osVer": "5.0",
|
|
788
|
-
"uniVer": "√",
|
|
789
|
-
"uniUtsPlugin": "x",
|
|
790
|
-
"unixVer": "4.41",
|
|
791
|
-
"unixUtsPlugin": "4.41"
|
|
792
|
-
},
|
|
793
|
-
"ios": {
|
|
794
|
-
"osVer": "12.0",
|
|
795
|
-
"uniVer": "√",
|
|
796
|
-
"uniUtsPlugin": "x",
|
|
797
|
-
"unixVer": "4.41",
|
|
798
|
-
"unixUtsPlugin": "4.41"
|
|
799
|
-
}
|
|
800
|
-
},
|
|
801
|
-
}
|
|
802
|
-
*/
|
|
803
|
-
1107602 |
|
|
804
|
-
/**
|
|
805
|
-
* 文件错误
|
|
806
|
-
* @uniPlatform {
|
|
807
|
-
"app": {
|
|
808
|
-
"android": {
|
|
809
|
-
"osVer": "5.0",
|
|
810
|
-
"uniVer": "√",
|
|
811
|
-
"uniUtsPlugin": "x",
|
|
812
|
-
"unixVer": "4.41",
|
|
813
|
-
"unixUtsPlugin": "4.41"
|
|
814
|
-
},
|
|
815
|
-
"ios": {
|
|
816
|
-
"osVer": "12.0",
|
|
817
|
-
"uniVer": "√",
|
|
818
|
-
"uniUtsPlugin": "x",
|
|
819
|
-
"unixVer": "4.41",
|
|
820
|
-
"unixUtsPlugin": "4.41"
|
|
821
|
-
}
|
|
822
|
-
},
|
|
823
|
-
}
|
|
824
|
-
*/
|
|
825
|
-
1107603 |
|
|
826
|
-
/**
|
|
827
|
-
* 格式错误
|
|
828
|
-
* @uniPlatform {
|
|
829
|
-
"app": {
|
|
830
|
-
"android": {
|
|
831
|
-
"osVer": "5.0",
|
|
832
|
-
"uniVer": "√",
|
|
833
|
-
"uniUtsPlugin": "x",
|
|
834
|
-
"unixVer": "4.41",
|
|
835
|
-
"unixUtsPlugin": "4.41"
|
|
836
|
-
},
|
|
837
|
-
"ios": {
|
|
838
|
-
"osVer": "12.0",
|
|
839
|
-
"uniVer": "√",
|
|
840
|
-
"uniUtsPlugin": "x",
|
|
841
|
-
"unixVer": "4.41",
|
|
842
|
-
"unixUtsPlugin": "4.41"
|
|
843
|
-
}
|
|
844
|
-
},
|
|
845
|
-
}
|
|
846
|
-
*/
|
|
847
|
-
1107604 |
|
|
848
|
-
/**
|
|
849
|
-
* 未知错误
|
|
850
|
-
* @uniPlatform {
|
|
851
|
-
"app": {
|
|
852
|
-
"android": {
|
|
853
|
-
"osVer": "5.0",
|
|
854
|
-
"uniVer": "√",
|
|
855
|
-
"uniUtsPlugin": "x",
|
|
856
|
-
"unixVer": "4.41",
|
|
857
|
-
"unixUtsPlugin": "4.41"
|
|
858
|
-
},
|
|
859
|
-
"ios": {
|
|
860
|
-
"osVer": "12.0",
|
|
861
|
-
"uniVer": "√",
|
|
862
|
-
"uniUtsPlugin": "x",
|
|
863
|
-
"unixVer": "4.41",
|
|
864
|
-
"unixUtsPlugin": "4.41"
|
|
865
|
-
}
|
|
866
|
-
},
|
|
867
|
-
}
|
|
868
|
-
*/
|
|
869
|
-
1107605 |
|
|
870
|
-
/**
|
|
871
|
-
* 播放路径不能为空
|
|
872
|
-
* @uniPlatform {
|
|
873
|
-
"app": {
|
|
874
|
-
"android": {
|
|
875
|
-
"osVer": "5.0",
|
|
876
|
-
"uniVer": "√",
|
|
877
|
-
"uniUtsPlugin": "x",
|
|
878
|
-
"unixVer": "4.41",
|
|
879
|
-
"unixUtsPlugin": "4.41"
|
|
880
|
-
},
|
|
881
|
-
"ios": {
|
|
882
|
-
"osVer": "12.0",
|
|
883
|
-
"uniVer": "√",
|
|
884
|
-
"uniUtsPlugin": "x",
|
|
885
|
-
"unixVer": "4.41",
|
|
886
|
-
"unixUtsPlugin": "4.41"
|
|
887
|
-
}
|
|
888
|
-
},
|
|
889
|
-
}
|
|
890
|
-
*/
|
|
891
|
-
1107609;
|
|
892
|
-
|
|
893
|
-
export interface ICreateBackgroundAudioFail extends IUniError {
|
|
894
|
-
errCode : CreateBackgroundAudioErrorCode
|
|
895
|
-
};
|