com.ooyala.android.configuration.ExoConfiguration.Builder Class Reference

Build the object of ExoPlayer configurations. More...

Public Member Functions

 Builder ()
 
Builder setLoadControl (LoadControl loadControl)
 Set object for Custom implementation of ExoPlayer's LoadControl class. More...
 
Builder setMaxBitrate (int bitrate)
 Constraints the maximum bitrate that can be selected by ExoPlayer. More...
 
Builder setMaxVideoSize (int width, int height)
 Constraints the maximum video resolution that can be used by ExoPlayer. More...
 
ExoConfiguration build ()
 

Detailed Description

Build the object of ExoPlayer configurations.

Constructor & Destructor Documentation

com.ooyala.android.configuration.ExoConfiguration.Builder.Builder ( )

Member Function Documentation

ExoConfiguration com.ooyala.android.configuration.ExoConfiguration.Builder.build ( )
Builder com.ooyala.android.configuration.ExoConfiguration.Builder.setLoadControl ( LoadControl  loadControl)

Set object for Custom implementation of ExoPlayer's LoadControl class.

This custom implementation can contain different buffer configurations and logic to handle re-buffering. Please refer to the links below: http://google.github.io/ExoPlayer/doc/reference/com/google/android/exoplayer2/LoadControl.html http://google.github.io/ExoPlayer/doc/reference/com/google/android/exoplayer2/DefaultLoadControl.html

Parameters
loadControlCustom implementation of ExoPlayer's LoadControl class.
Returns
the Builder object to continue building
Builder com.ooyala.android.configuration.ExoConfiguration.Builder.setMaxBitrate ( int  bitrate)

Constraints the maximum bitrate that can be selected by ExoPlayer.

Parameters
bitratethe bitrate value should be a positive integer
Returns
the Builder object to continue building
Builder com.ooyala.android.configuration.ExoConfiguration.Builder.setMaxVideoSize ( int  width,
int  height 
)

Constraints the maximum video resolution that can be used by ExoPlayer.

Parameters
widththe width value should be a positive integer
heightthe height value should be a positive integer
Returns
the Builder object to continue building