getAudioConfig method
- {ZegoPublishChannel? channel}
Gets the current audio configurations from the specified publish channel.
Available since: 1.8.0 Description: You can get the current audio codec, bit rate, and audio channel through this function. When to call: After the engine is created createEngine. Restrictions: None. Related APIs: setAudioConfig.
channel
Publish stream channel.- Returns Audio config.
Implementation
Future<ZegoAudioConfig> getAudioConfig({ZegoPublishChannel? channel}) async {
return await ZegoExpressImpl.instance.getAudioConfig(channel: channel);
}