pushExternalEncodedAudioFrame method
@hidden for internal use only
@region custom audio acquisition rendering
@brief Pull remote audio data. You can use the data for audio processing or custom rendering.
After calling this method, the SDK will actively pull the audio data that is ready to be played, including the decoded and mixed audio data from remote end for external playback.
@param audio_frame The audio data. See EncodedAudioFrameData{@link #EncodedAudioFrameData}。
@return API call result:
- 0: Success.
- <0: Failure. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for specific reasons.
@note
- Before push the audio data, call enableAudioEncoding{@link #ByteRTCEngine#enableAudioEncoding} to close audio encode.
Implementation
FutureOr<int> pushExternalEncodedAudioFrame(
ByteRTCEncodedAudioFrameData audioFrame) async {
return await nativeCall('pushExternalEncodedAudioFrame:', [audioFrame]);
}