enableMixSystemPlayout method
- bool enable
Enable or disable system audio capture.
Available since: 1.9.0
Description: Enable sound card capture to mix sounds played by the system into the publishing stream, such as sounds played by the browser, sounds played by the third-party player, etc.
Default value: Default is disable.
When to call: Called this function after calling startPublishingStream
or startPreview
.
Restrictions: None.
Caution: The system sound card sound does not include streaming sound, media player sound and sound effect player sound.
Related APIs: setMixSystemPlayoutVolume function can set system audio capture volume.
Platform differences: Only supports Windows and macOS.
enable
Whether to mix system playout.
Implementation
Future<void> enableMixSystemPlayout(bool enable) async {
return await ZegoExpressImpl.instance.enableMixSystemPlayout(enable);
}