# wx.setInnerAudioOption(Object object)
Start from base library version 2.3.0. Please remaining backward compatible.
Sets the playback options for InnerAudioContext. The options apply to the current Mini Program globally once set.
# Parameters
# Object object
Attribute | Type | Default | Required | Description |
---|---|---|---|---|
mixWithOther | boolean | true | No | Whether to play the file with other audio files played. If it is set to true, the music from other Apps or the WeChat will not be stopped. |
obeyMuteSwitch | boolean | true | No | (Only for iOS) Whether to follow the "Mute" switch. If it is set to false, the audio file still sounds even in a Mute mode. |
success | function | No | The callback function for a successful API call | |
fail | function | No | Callback function for failed API call | |
complete | function | No | Callback function used when API call completed (always executed whether call succeeds or fails) |