Skip to main content
Version: 1.x

Taro.createAudioContext(audioId, componentInstance)

使用方式同 wx.createAudioContext

示例代码#

import Taro from '@tarojs/taro'
const audioCtx = Taro.createAudioContext('myAudio')

API支持度#

API微信小程序H5React Native支付宝小程序百度小程序
Taro.createAudioContext✔️