audioMixingStateChanged property

AudioMixingStateCallback? audioMixingStateChanged
getter/setter pair

Occurs when the state of the local user's audio mixing file changes.

When you call the RtcEngine.startAudioMixing method and the state of audio mixing file changes, the Meta SDK triggers this callback.

  • When the audio mixing file plays, pauses playing, or stops playing, this callback returns 710, 711, or 713 in state, and 0 in the errorCode parameter.
  • When exceptions occur during playback, this callback returns 714 in state and an error in the errorCode parameter.
  • If the local audio mixing file does not exist, or if the SDK does not support the file format or cannot access the music file URL, the SDK returns WarningCode.AudioMixingOpenError = 701.

The AudioMixingStateCallback typedef includes the following parameters:

Implementation

AudioMixingStateCallback? audioMixingStateChanged;