Taro.getBackgroundAudioPlayerState(OBJECT)
使用方式同 wx.getBackgroundAudioPlayerState,支持 Promise 化使用。
示例代码
import Taro from '@tarojs/taro'
Taro.getBackgroundAudioPlayerState(params).then(...)
API支持度
| API | 微信小程序 | H5 | React Native | 支付宝小程序 | 百度小程序 |
|---|---|---|---|---|---|
| Taro.getBackgroundAudioPlayerState | ✔️ |