encodings

val encodings: Update<VideoEncodingsSettingsUpdate>? = null

Custom encoding configuration for any of the quality settings.

Note that when an encoding is specified, all encodings for qualities lower than it must also be specified.

This means that it's only valid to specify the following sets of encodings:

  • low

  • low and medium

  • low and medium and high

Each of the settings is an instance of RTCRtpEncodingParameters. As of today, the only options which will take effect are:

  • maxBitrate

  • scaleResolutionDownBy

  • maxFramerate

Default is

mapOf( VideoMaxQualityUpdate.low to VideoEncodingSettingsUpdate( maxBitrate = 110000, scaleResolutionDownBy = 4.0, maxFramerate = 15.0 ), VideoMaxQualityUpdate.medium to VideoEncodingSettingsUpdate( maxBitrate = 520000, scaleResolutionDownBy = 2.0, maxFramerate = 30.0 ), )