Skip to main content
Version: 3.x

Taro.onBackgroundAudioPlay(callback)

Listens on the music playback event.

Reference

Type

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

Parameters

PropertyTypeDescription
callback(res: CallbackResult) => voidThe callback function for the music playback event.

API Support

APIWeChat Mini-ProgramH5React Native
Taro.onBackgroundAudioPlay✔️