Package com.castlabs.android.player
Class VideoFilterConfiguration.Builder
- java.lang.Object
-
- com.castlabs.android.player.VideoFilterConfiguration.Builder
-
- Enclosing class:
- VideoFilterConfiguration
public static final class VideoFilterConfiguration.Builder extends Object
VideoFilterConfiguration
builder static inner class.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(VideoFilterConfiguration copy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VideoFilterConfiguration.Builder
enableViewportFilter(boolean enableViewportFilter)
Sets theenableViewportFilter
and returns a reference to this Builder so that the methods can be chained together.VideoFilterConfiguration
get()
Returns aVideoFilterConfiguration
built from the parameters previously set.VideoFilterConfiguration.Builder
maxBitrate(long maxBitrate)
Sets themaxBitrate
and returns a reference to this Builder so that the methods can be chained together.VideoFilterConfiguration.Builder
maxFramerate(float maxFramerate)
Sets themaxFramerate
and returns a reference to this Builder so that the methods can be chained together.VideoFilterConfiguration.Builder
maxHeight(int maxHeight)
Sets themaxHeight
and returns a reference to this Builder so that the methods can be chained together.VideoFilterConfiguration.Builder
maxPixel(long maxPixel)
Sets themaxPixel
and returns a reference to this Builder so that the methods can be chained together.VideoFilterConfiguration.Builder
maxWidth(int maxWidth)
Sets themaxWidth
and returns a reference to this Builder so that the methods can be chained together.VideoFilterConfiguration.Builder
minBitrate(long minBitrate)
Sets theminBitrate
and returns a reference to this Builder so that the methods can be chained together.VideoFilterConfiguration.Builder
minFramerate(float minFramerate)
Sets theminFramerate
and returns a reference to this Builder so that the methods can be chained together.VideoFilterConfiguration.Builder
minHeight(int minHeight)
Sets theminHeight
and returns a reference to this Builder so that the methods can be chained together.VideoFilterConfiguration.Builder
minPixel(long minPixel)
Sets theminPixel
and returns a reference to this Builder so that the methods can be chained together.VideoFilterConfiguration.Builder
minWidth(int minWidth)
Sets theminWidth
and returns a reference to this Builder so that the methods can be chained together.
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(VideoFilterConfiguration copy)
-
-
Method Detail
-
maxWidth
public VideoFilterConfiguration.Builder maxWidth(int 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
public VideoFilterConfiguration.Builder minWidth(int 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
public VideoFilterConfiguration.Builder maxHeight(int 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
public VideoFilterConfiguration.Builder minHeight(int 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
public VideoFilterConfiguration.Builder maxBitrate(long 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
public VideoFilterConfiguration.Builder minBitrate(long 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
public VideoFilterConfiguration.Builder maxPixel(long 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
public VideoFilterConfiguration.Builder minPixel(long 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
public VideoFilterConfiguration.Builder enableViewportFilter(boolean 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
public VideoFilterConfiguration.Builder maxFramerate(float 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
public VideoFilterConfiguration.Builder minFramerate(float 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
public VideoFilterConfiguration get()
Returns aVideoFilterConfiguration
built from the parameters previously set.- Returns:
- a
VideoFilterConfiguration
built with parameters of thisVideoFilterConfiguration.Builder
-
-