pushAudioFrame abstract method

Future<int> pushAudioFrame(
  1. Uint8List data,
  2. int dataLength,
  3. ZegoAudioFrameParam param
)

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.

  • data PCM buffer data.
  • dataLength The total length of the buffer data.
  • param The param of this PCM audio frame.
  • Returns The result of the API call.

Implementation

Future<int> pushAudioFrame(
    Uint8List data, int dataLength, ZegoAudioFrameParam param);