onMixedAudioData property
Callback to get the audio data played by the SDK and the audio data captured by the local microphone. The audio data is the data mixed by the SDK.
Available: Since 1.1.0
Description: The audio data played by the SDK is mixed with the data captured by the local microphone before being sent to the speaker, and is called back through this function.
When to trigger: On the premise of calling setAudioDataHandler
to set the listener callback, after calling startAudioDataObserver
to set the mask 0x04, this callback will be triggered only when it is in the publishing stream state or playing stream state.
Restrictions: When playing copyrighted music, this callback will be disabled by default. If necessary, please contact ZEGO technical support.
Caution: This callback is a high-frequency callback, please do not perform time-consuming operations in this callback.
data
Audio data in PCM format.dataLength
Length of the data.param
Parameters of the audio frame.
Implementation
static void Function(
Uint8List data, int dataLength, ZegoAudioFrameParam param)?
onMixedAudioData;