Package com.castlabs.android.player
Class VideoFilterConfiguration.Builder
java.lang.Object
com.castlabs.android.player.VideoFilterConfiguration.Builder
- Enclosing class:
VideoFilterConfiguration
VideoFilterConfiguration builder static inner class.-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()Constructs a newBuilder.Constructs a newBuilderby copying the values from an existingVideoFilterConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionenableViewportFilter(boolean enableViewportFilter) Sets theenableViewportFilterand returns a reference to this Builder so that the methods can be chained together.get()Returns aVideoFilterConfigurationbuilt from the parameters previously set.maxBitrate(long maxBitrate) Sets themaxBitrateand returns a reference to this Builder so that the methods can be chained together.maxFramerate(float maxFramerate) Sets themaxFramerateand returns a reference to this Builder so that the methods can be chained together.maxHeight(int maxHeight) Sets themaxHeightand returns a reference to this Builder so that the methods can be chained together.maxPixel(long maxPixel) Sets themaxPixeland returns a reference to this Builder so that the methods can be chained together.maxWidth(int maxWidth) Sets themaxWidthand returns a reference to this Builder so that the methods can be chained together.minBitrate(long minBitrate) Sets theminBitrateand returns a reference to this Builder so that the methods can be chained together.minFramerate(float minFramerate) Sets theminFramerateand returns a reference to this Builder so that the methods can be chained together.minHeight(int minHeight) Sets theminHeightand returns a reference to this Builder so that the methods can be chained together.minPixel(long minPixel) Sets theminPixeland returns a reference to this Builder so that the methods can be chained together.minWidth(int minWidth) Sets theminWidthand returns a reference to this Builder so that the methods can be chained together.
-
Constructor Details
-
Builder
public Builder()Constructs a newBuilder. -
Builder
Constructs a newBuilderby copying the values from an existingVideoFilterConfiguration.- Parameters:
copy- TheVideoFilterConfigurationto copy values from.
-
-
Method Details
-
maxWidth
Sets themaxWidthand returns a reference to this Builder so that the methods can be chained together. Setting amaxWidthdisablesVideoFilterConfiguration.enableViewportFilter.- Parameters:
maxWidth- themaxWidthto set- Returns:
- a reference to this Builder
-
minWidth
Sets theminWidthand returns a reference to this Builder so that the methods can be chained together.- Parameters:
minWidth- theminWidthto set- Returns:
- a reference to this Builder
-
maxHeight
Sets themaxHeightand returns a reference to this Builder so that the methods can be chained together. Setting amaxHeightdisablesVideoFilterConfiguration.enableViewportFilter.- Parameters:
maxHeight- themaxHeightto set- Returns:
- a reference to this Builder
-
minHeight
Sets theminHeightand returns a reference to this Builder so that the methods can be chained together.- Parameters:
minHeight- theminHeightto set- Returns:
- a reference to this Builder
-
maxBitrate
Sets themaxBitrateand returns a reference to this Builder so that the methods can be chained together.- Parameters:
maxBitrate- themaxBitrateto set- Returns:
- a reference to this Builder
-
minBitrate
Sets theminBitrateand returns a reference to this Builder so that the methods can be chained together.- Parameters:
minBitrate- theminBitrateto set- Returns:
- a reference to this Builder
-
maxPixel
Sets themaxPixeland returns a reference to this Builder so that the methods can be chained together.- Parameters:
maxPixel- themaxPixelto set- Returns:
- a reference to this Builder
-
minPixel
Sets theminPixeland returns a reference to this Builder so that the methods can be chained together.- Parameters:
minPixel- theminPixelto set- Returns:
- a reference to this Builder
-
enableViewportFilter
Sets theenableViewportFilterand returns a reference to this Builder so that the methods can be chained together.- Parameters:
enableViewportFilter- theenableViewportFilterto set- Returns:
- a reference to this Builder
-
maxFramerate
Sets themaxFramerateand returns a reference to this Builder so that the methods can be chained together.- Parameters:
maxFramerate- themaxFramerateto set- Returns:
- a reference to this Builder
-
minFramerate
Sets theminFramerateand returns a reference to this Builder so that the methods can be chained together.- Parameters:
minFramerate- theminFramerateto set- Returns:
- a reference to this Builder
-
get
Returns aVideoFilterConfigurationbuilt from the parameters previously set.- Returns:
- a
VideoFilterConfigurationbuilt with parameters of thisVideoFilterConfiguration.Builder
-