Skip to main content
Version: 2.x

Taro.onAudioInterruptionEnd(callback)

监听音频中断结束事件。在收到 onAudioInterruptionBegin 事件之后,小程序内所有音频会暂停,收到此事件之后才可再次播放成功

参考文档

类型

(callback: (res: CallbackResult) => void) => void

参数

参数类型说明
callback(res: CallbackResult) => void音频中断结束事件的回调函数

API 支持度

API微信小程序H5React Native
Taro.onAudioInterruptionEnd✔️