setChannelProfile method

Future<int> setChannelProfile (
  1. int channelProfile
)

设置频道场景 只能在加入频道之前调用 SDK 会根据不同的使用场景采用不同的优化策略,通信场景偏好流畅,直播场景偏好画质。

channelProfile - 频道场景. NERtcChannelProfile

Implementation

Future<int> setChannelProfile(int channelProfile) async {
  assert(channelProfile != null);
  IntValue reply =
      await _api.setChannelProfile(IntValue()..value = channelProfile);
  return reply.value;
}