PushAudioFrame
Pushes the external audio frame.
Details
Attention:
Before calling this method to push external audio data, perform the following steps:
- Call CreateCustomAudioTrack to create a custom audio track and get the audio track ID.
- Call JoinChannel to join the channel. In FChannelMediaOptions, set publishCustomAudioTrackId to the audio track ID that you want to publish, and set publishCustomAudioTrack to
true
.
Parameters
- frame
- The external audio frame. See FAudioFrame.
- 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
- 0: Success.
- < 0: Failure.