setChannelProfile method Null safety
- int channelProfile
Set the channel profile You can call the method before joining a channel. SDK applies different optimization strategies based on different scenarios. The communication scenario prefers fluent data transfer and the live streaming scenario prefers graphic quality.
channelProfile - channel profile. NERtcChannelProfile
Implementation
Future<int> setChannelProfile(int channelProfile) async {
IntValue reply =
await _api.setChannelProfile(IntValue()..value = channelProfile);
return reply.value ?? -1;
}