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
-
Method Summary
Modifier and TypeMethodDescriptionenableViewportFilter
(boolean enableViewportFilter) Sets theenableViewportFilter
and returns a reference to this Builder so that the methods can be chained together.get()
Returns aVideoFilterConfiguration
built from the parameters previously set.maxBitrate
(long maxBitrate) Sets themaxBitrate
and returns a reference to this Builder so that the methods can be chained together.maxFramerate
(float maxFramerate) Sets themaxFramerate
and returns a reference to this Builder so that the methods can be chained together.maxHeight
(int maxHeight) Sets themaxHeight
and returns a reference to this Builder so that the methods can be chained together.maxPixel
(long maxPixel) Sets themaxPixel
and returns a reference to this Builder so that the methods can be chained together.maxWidth
(int maxWidth) Sets themaxWidth
and returns a reference to this Builder so that the methods can be chained together.minBitrate
(long minBitrate) Sets theminBitrate
and returns a reference to this Builder so that the methods can be chained together.minFramerate
(float minFramerate) Sets theminFramerate
and returns a reference to this Builder so that the methods can be chained together.minHeight
(int minHeight) Sets theminHeight
and returns a reference to this Builder so that the methods can be chained together.minPixel
(long minPixel) Sets theminPixel
and returns a reference to this Builder so that the methods can be chained together.minWidth
(int minWidth) Sets theminWidth
and returns a reference to this Builder so that the methods can be chained together.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
maxWidth
Sets themaxWidth
and returns a reference to this Builder so that the methods can be chained together. Setting amaxWidth
disablesVideoFilterConfiguration.enableViewportFilter
.- Parameters:
maxWidth
- themaxWidth
to set- Returns:
- a reference to this Builder
-
minWidth
Sets theminWidth
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
minWidth
- theminWidth
to set- Returns:
- a reference to this Builder
-
maxHeight
Sets themaxHeight
and returns a reference to this Builder so that the methods can be chained together. Setting amaxHeight
disablesVideoFilterConfiguration.enableViewportFilter
.- Parameters:
maxHeight
- themaxHeight
to set- Returns:
- a reference to this Builder
-
minHeight
Sets theminHeight
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
minHeight
- theminHeight
to set- Returns:
- a reference to this Builder
-
maxBitrate
Sets themaxBitrate
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
maxBitrate
- themaxBitrate
to set- Returns:
- a reference to this Builder
-
minBitrate
Sets theminBitrate
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
minBitrate
- theminBitrate
to set- Returns:
- a reference to this Builder
-
maxPixel
Sets themaxPixel
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
maxPixel
- themaxPixel
to set- Returns:
- a reference to this Builder
-
minPixel
Sets theminPixel
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
minPixel
- theminPixel
to set- Returns:
- a reference to this Builder
-
enableViewportFilter
Sets theenableViewportFilter
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
enableViewportFilter
- theenableViewportFilter
to set- Returns:
- a reference to this Builder
-
maxFramerate
Sets themaxFramerate
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
maxFramerate
- themaxFramerate
to set- Returns:
- a reference to this Builder
-
minFramerate
Sets theminFramerate
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
minFramerate
- theminFramerate
to set- Returns:
- a reference to this Builder
-
get
Returns aVideoFilterConfiguration
built from the parameters previously set.- Returns:
- a
VideoFilterConfiguration
built with parameters of thisVideoFilterConfiguration.Builder
-