The CONNECT Player SDK 5 can be configured with several settings before playback using the OTVPlayerConfiguration class. These settings range from the basic - for example, setting minimum and maximum video resolution - to advanced settings that have a more subtle effect on user experience, such as setting the minimum duration of buffered data required before the player can switch to a higher quality video track.
Each setting in OTVPlayerConfiguration is optional, with player defaults used for unchanged ones. For example, if no maximum bitrate is set, its default is Integer.MAX_VALUE which is effectively unlimited.
The OTVPlayerConfiguration is created using the OTVPlayerConfiguration.Builder() object whose values are set before it is used to construct the OTVPlayerConfiguration object. The configuration object is then passed to the OTVVideoView using the OTVVideoView#setPlayerConfiguration() method.
The builder's configuration setting methods can be broken down into the following categories: