pushAudioFrame abstract method
Push audio frame to the custom audio source.
Available since: 3.25.0
Description: Push audio frame to the custom audio source.
Use cases: Typically used when developers manage audio data capture themselves and input audio frames to a specified custom audio source.
When to call: After the custom audio source is created by createCustomAudioSource.
Restrictions: None.
Caution: ZegoCustomAudioSource can only be used as a mix source, not as the main capture source.
dataPCM buffer data.dataLengthThe total length of the buffer data.paramThe param of this PCM audio frame.- Returns The result of the API call.
Implementation
Future<int> pushAudioFrame(
Uint8List data, int dataLength, ZegoAudioFrameParam param);