pushAudioFrame abstract method
Pushes the external audio frame.
Call this method to push external audio frames through the audio track.
frame
The external audio frame. See AudioFrame.trackId
The audio track ID. If you want to publish a custom external audio source, set this parameter to the ID of the corresponding custom audio track you want to publish.
Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly.
Implementation
Future<void> pushAudioFrame({required AudioFrame frame, int trackId = 0});