Package com.castlabs.android.player
Class VideoFilterConfiguration
java.lang.Object
com.castlabs.android.player.VideoFilterConfiguration
- All Implemented Interfaces:
Parcelable
Configuration for filtering video renditions.
This configuration allows specifying various criteria to filter video renditions, such as resolution, bitrate, pixel count, and framerate. It also provides an option to filter renditions based on the display viewport.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
VideoFilterConfiguration
builder static inner class.Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Parcelable.Creator
<VideoFilterConfiguration> Creator forVideoFilterConfiguration
from aParcel
.static final boolean
Default value for enabling viewport-based filtering.static final long
Default maximum bitrate of the rendition in bits per second.static final float
Default maximum framerate of the rendition.static final int
Default maximum height of the rendition in pixels.static final long
Default maximum number of pixels (width * height) of the rendition.static final int
Default maximum width of the rendition in pixels.static final long
Default minimum bitrate of the rendition in bits per second.static final float
Default minimum framerate of the rendition.static final int
Default minimum height of the rendition in pixels.static final long
Default minimum number of pixels (width * height) of the rendition.static final int
Default minimum width of the rendition in pixels.final boolean
Enable to filter out renditions having unnecessarily high resolution for the current display viewport.final long
Max bitrate of the rendition in bits per second In case rendition's bitrate is not specified in the manifest then the filtering is not enabledfinal float
Max framerate of the rendition In case rendition's framerate is not specified in the manifest then the filtering is not enabledfinal int
Max height of the rendition in pixels, ignored ifenableViewportFilter
is set.final long
Max number of pixels (width * height) of the rendition In case rendition's resolution is not specified in the manifest then the filtering is not enabledfinal int
Max width of the rendition in pixels, ignored ifenableViewportFilter
is set.final long
Min bitrate of the rendition in bits per second In case rendition's bitrate is not specified in the manifest then the filtering is not enabledfinal float
Min framerate of the rendition In case rendition's framerate is not specified in the manifest then the filtering is not enabledfinal int
Min height of the rendition in pixels In case rendition's height is not specified in the manifest then the filtering is not enabledfinal long
Min number of pixels (width * height) of the rendition In case rendition's resolution is not specified in the manifest then the filtering is not enabledfinal int
Min width of the rendition in pixelsFields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Method Summary
-
Field Details
-
DEFAULT_MAX_WIDTH
public static final int DEFAULT_MAX_WIDTHDefault maximum width of the rendition in pixels.- See Also:
-
DEFAULT_MIN_WIDTH
public static final int DEFAULT_MIN_WIDTHDefault minimum width of the rendition in pixels.- See Also:
-
DEFAULT_MAX_HEIGHT
public static final int DEFAULT_MAX_HEIGHTDefault maximum height of the rendition in pixels.- See Also:
-
DEFAULT_MIN_HEIGHT
public static final int DEFAULT_MIN_HEIGHTDefault minimum height of the rendition in pixels.- See Also:
-
DEFAULT_MAX_BITRATE
public static final long DEFAULT_MAX_BITRATEDefault maximum bitrate of the rendition in bits per second.- See Also:
-
DEFAULT_MIN_BITRATE
public static final long DEFAULT_MIN_BITRATEDefault minimum bitrate of the rendition in bits per second.- See Also:
-
DEFAULT_MAX_PIXEL
public static final long DEFAULT_MAX_PIXELDefault maximum number of pixels (width * height) of the rendition.- See Also:
-
DEFAULT_MIN_PIXEL
public static final long DEFAULT_MIN_PIXELDefault minimum number of pixels (width * height) of the rendition.- See Also:
-
DEFAULT_ENABLE_VIEWPORT_FILTER
public static final boolean DEFAULT_ENABLE_VIEWPORT_FILTERDefault value for enabling viewport-based filtering.- See Also:
-
DEFAULT_MAX_FRAMERATE
public static final float DEFAULT_MAX_FRAMERATEDefault maximum framerate of the rendition.- See Also:
-
DEFAULT_MIN_FRAMERATE
public static final float DEFAULT_MIN_FRAMERATEDefault minimum framerate of the rendition.- See Also:
-
maxWidth
public final int maxWidthMax width of the rendition in pixels, ignored ifenableViewportFilter
is set. In case rendition's width is not specified in the manifest then the filtering is not enabled -
minWidth
public final int minWidthMin width of the rendition in pixels -
maxHeight
public final int maxHeightMax height of the rendition in pixels, ignored ifenableViewportFilter
is set. In case rendition's height is not specified in the manifest then the filtering is not enabled -
minHeight
public final int minHeightMin height of the rendition in pixels In case rendition's height is not specified in the manifest then the filtering is not enabled -
maxBitrate
public final long maxBitrateMax bitrate of the rendition in bits per second In case rendition's bitrate is not specified in the manifest then the filtering is not enabled -
minBitrate
public final long minBitrateMin bitrate of the rendition in bits per second In case rendition's bitrate is not specified in the manifest then the filtering is not enabled -
maxPixel
public final long maxPixelMax number of pixels (width * height) of the rendition In case rendition's resolution is not specified in the manifest then the filtering is not enabled -
minPixel
public final long minPixelMin number of pixels (width * height) of the rendition In case rendition's resolution is not specified in the manifest then the filtering is not enabled -
enableViewportFilter
public final boolean enableViewportFilter -
maxFramerate
public final float maxFramerateMax framerate of the rendition In case rendition's framerate is not specified in the manifest then the filtering is not enabled -
minFramerate
public final float minFramerateMin framerate of the rendition In case rendition's framerate is not specified in the manifest then the filtering is not enabled -
CREATOR
Creator forVideoFilterConfiguration
from aParcel
.
-
-
Method Details
-
writeToParcel
- Specified by:
writeToParcel
in interfaceParcelable
-
describeContents
public int describeContents()- Specified by:
describeContents
in interfaceParcelable
-
equals
-