Setting the initial adaptive bitrate strategy
The initial adaptive bitrate (ABR) strategy determines the player's method for selecting the bitrate of the video track when a stream is initially loaded.
As the name suggests, this will not affect player behaviour beyond the beginning of playback. As playback continues, the player will continually adapt to the network conditions and select the most appropriate video track for the available bandwidth.
There are three initial ABR strategies:
INITIAL_ABR_STRATEGY_BANDWIDTH
- Select the track with the bitrate closest to the measured bandwidth. This is the default behaviour and does not need to be set explicitly.INITIAL_ABR_STRATEGY_PERFORMANCE
- Select the track with the lowest bitrate for the fastest loading time.INITIAL_ABR_STRATEGY_QUALITY
- Select the highest bitrate for the highest video quality.
OTVPlayerConfiguration.Builder configBuilder = new OTVPlayerConfiguration.Builder();
// Configure the player to select the highest bitrate video track when the stream first loads
configBuilder.setInitialAbrStrategy(INITIAL_ABR_STRATEGY_QUALITY);
// Build the player configuration and pass it to OTVVideoView
OTVPlayerConfiguration config = configBuilder.build();
videoView.setPlayerConfiguration(config);