setVideoEncoderConfigurationEx abstract method
Future<void>
setVideoEncoderConfigurationEx({
- required VideoEncoderConfiguration config,
- required RtcConnection connection,
Sets the video encoder configuration.
Sets the encoder configuration for the local video. Each configuration profile corresponds to a set of video parameters, including the resolution, frame rate, and bitrate. The config specified in this method is the maximum value under ideal network conditions. If the video engine cannot render the video using the specified config due to unreliable network conditions, the parameters further down the list are considered until a successful configuration is found.
config
Video profile. See VideoEncoderConfiguration.connection
The connection information. See RtcConnection.
Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly.
Implementation
Future<void> setVideoEncoderConfigurationEx(
{required VideoEncoderConfiguration config,
required RtcConnection connection});