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
VideoFilterConfigurationbuilder 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.BuilderenableViewportFilter(boolean enableViewportFilter)Sets theenableViewportFilterand returns a reference to this Builder so that the methods can be chained together.VideoFilterConfigurationget()Returns aVideoFilterConfigurationbuilt from the parameters previously set.VideoFilterConfiguration.BuildermaxBitrate(long maxBitrate)Sets themaxBitrateand returns a reference to this Builder so that the methods can be chained together.VideoFilterConfiguration.BuildermaxFramerate(float maxFramerate)Sets themaxFramerateand returns a reference to this Builder so that the methods can be chained together.VideoFilterConfiguration.BuildermaxHeight(int maxHeight)Sets themaxHeightand returns a reference to this Builder so that the methods can be chained together.VideoFilterConfiguration.BuildermaxPixel(long maxPixel)Sets themaxPixeland returns a reference to this Builder so that the methods can be chained together.VideoFilterConfiguration.BuildermaxWidth(int maxWidth)Sets themaxWidthand returns a reference to this Builder so that the methods can be chained together.VideoFilterConfiguration.BuilderminBitrate(long minBitrate)Sets theminBitrateand returns a reference to this Builder so that the methods can be chained together.VideoFilterConfiguration.BuilderminFramerate(float minFramerate)Sets theminFramerateand returns a reference to this Builder so that the methods can be chained together.VideoFilterConfiguration.BuilderminHeight(int minHeight)Sets theminHeightand returns a reference to this Builder so that the methods can be chained together.VideoFilterConfiguration.BuilderminPixel(long minPixel)Sets theminPixeland returns a reference to this Builder so that the methods can be chained together.VideoFilterConfiguration.BuilderminWidth(int minWidth)Sets theminWidthand 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 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
public VideoFilterConfiguration.Builder minWidth(int 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
public VideoFilterConfiguration.Builder maxHeight(int 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
public VideoFilterConfiguration.Builder minHeight(int 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
public VideoFilterConfiguration.Builder maxBitrate(long 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
public VideoFilterConfiguration.Builder minBitrate(long 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
public VideoFilterConfiguration.Builder maxPixel(long 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
public VideoFilterConfiguration.Builder minPixel(long 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
public VideoFilterConfiguration.Builder enableViewportFilter(boolean 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
public VideoFilterConfiguration.Builder maxFramerate(float 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
public VideoFilterConfiguration.Builder minFramerate(float 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
public VideoFilterConfiguration get()
Returns aVideoFilterConfigurationbuilt from the parameters previously set.- Returns:
- a
VideoFilterConfigurationbuilt with parameters of thisVideoFilterConfiguration.Builder
-
-