enableMixExternalAudioFrame abstract method
Enable/Disable custom audio track
After this feature is enabled, you can mix a custom audio track into the SDK through this API. With two boolean parameters, you can control whether to play back this track remotely or locally.
Parameters:
- enablePlayout(bool):
- Whether the mixed audio track should be played back locally.
- Default value: false.
- enablePublish(bool):
- Whether the mixed audio track should be played back remotely.
- Default value: false.
Note:
- If you specify both
enablePublish
andenablePlayout
asfalse
, the custom audio track will be completely closed.
Implementation
void enableMixExternalAudioFrame(bool enablePublish, bool enablePlayout);