Package com.brightcove.player
Class Constants
java.lang.Object
com.brightcove.player.Constants
- Direct Known Subclasses:
C
Created by rsubramaniam on 10/2/17.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic @interface
Represents an audio encoding, or an invalid or unset value.static @interface
Represents a PCM audio encoding, or an invalid or unset value.static @interface
Track selection flags.static @interface
Define of selection reason constants.static @interface
The stereo mode for 360/3D/VR videos. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The error message for a null Catalog objectstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
PCM encoding with 24 bits per sample.static final int
PCM encoding with 32 bits per sample.static final int
static final int
Represents an unset or unknown index.static final int
Represents an unset or unknown length.static final long
Represents a microsecond duration whose exact value is unknown, but which should match the longest of some other known durations.static final int
A value for various fields to indicate that the field's value is unknown or not applicable.static final String
The error message for a null Catalog objectstatic final UUID
UUID for the PlayReady DRM scheme.static final int
Represents an unset or unknown position.static final int
Indicates that the player may choose to play the track in absence of an explicit user preference.static final int
Indicates that the track should be selected if user preferences do not state otherwise.static final int
Indicates that the track must be displayed.static final int
A selection reason constant for an adaptive track selection.static final int
A selection reason constant for an initial track selection.static final int
A selection reason constant for an manual (i.e.static final int
A selection reason constant for a trick play track selection.static final int
A selection reason constant for selections whose reasons are unknown or unspecified.static final int
Indicates Left-Right stereo layout, used with 360/3D/VR videos.static final int
Indicates Monoscopic stereo layout, used with 360/3D/VR videos.static final int
Indicates Top-Bottom stereo layout, used with 360/3D/VR videos.static final long
Special constant representing a time corresponding to the end of a source.static final long
Special constant representing an unset or unknown time or duration.static final long
Represents an unknown microsecond time or duration.static final String
The error message for missing Video ID or Reference IDstatic final UUID
UUID for the Widevine DRM scheme. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
msToUs
(long timeMs) Converts a time in milliseconds to the corresponding time in microseconds, preservingTIME_UNSET
values.static long
usToMs
(long timeUs) Converts a time in microseconds to the corresponding time in milliseconds, preservingTIME_UNSET
values.
-
Field Details
-
TIME_END_OF_SOURCE
public static final long TIME_END_OF_SOURCESpecial constant representing a time corresponding to the end of a source. Suitable for use in any time base.- See Also:
-
TIME_UNSET
public static final long TIME_UNSETSpecial constant representing an unset or unknown time or duration. Suitable for use in any time base.- See Also:
-
UNKNOWN_TIME_US
public static final long UNKNOWN_TIME_USRepresents an unknown microsecond time or duration.- See Also:
-
MATCH_LONGEST_US
public static final long MATCH_LONGEST_USRepresents a microsecond duration whose exact value is unknown, but which should match the longest of some other known durations.- See Also:
-
INDEX_UNSET
public static final int INDEX_UNSETRepresents an unset or unknown index.- See Also:
-
POSITION_UNSET
public static final int POSITION_UNSETRepresents an unset or unknown position.- See Also:
-
LENGTH_UNSET
public static final int LENGTH_UNSETRepresents an unset or unknown length.- See Also:
-
NO_VALUE
public static final int NO_VALUEA value for various fields to indicate that the field's value is unknown or not applicable.- See Also:
-
ENCODING_INVALID
public static final int ENCODING_INVALID- See Also:
-
AudioFormat.ENCODING_INVALID
- Constant Field Values
-
ENCODING_PCM_8BIT
public static final int ENCODING_PCM_8BIT- See Also:
-
AudioFormat.ENCODING_PCM_8BIT
- Constant Field Values
-
ENCODING_PCM_16BIT
public static final int ENCODING_PCM_16BIT- See Also:
-
AudioFormat.ENCODING_PCM_16BIT
- Constant Field Values
-
ENCODING_PCM_24BIT
public static final int ENCODING_PCM_24BITPCM encoding with 24 bits per sample.- See Also:
-
ENCODING_PCM_32BIT
public static final int ENCODING_PCM_32BITPCM encoding with 32 bits per sample.- See Also:
-
ENCODING_AC3
public static final int ENCODING_AC3- See Also:
-
AudioFormat.ENCODING_AC3
- Constant Field Values
-
ENCODING_E_AC3
public static final int ENCODING_E_AC3- See Also:
-
AudioFormat.ENCODING_E_AC3
- Constant Field Values
-
ENCODING_DTS
public static final int ENCODING_DTS- See Also:
-
AudioFormat.ENCODING_DTS
- Constant Field Values
-
ENCODING_DTS_HD
public static final int ENCODING_DTS_HD- See Also:
-
AudioFormat.ENCODING_DTS_HD
- Constant Field Values
-
SELECTION_REASON_UNKNOWN
public static final int SELECTION_REASON_UNKNOWNA selection reason constant for selections whose reasons are unknown or unspecified.- See Also:
-
SELECTION_REASON_INITIAL
public static final int SELECTION_REASON_INITIALA selection reason constant for an initial track selection.- See Also:
-
SELECTION_REASON_MANUAL
public static final int SELECTION_REASON_MANUALA selection reason constant for an manual (i.e. user initiated) track selection.- See Also:
-
SELECTION_REASON_ADAPTIVE
public static final int SELECTION_REASON_ADAPTIVEA selection reason constant for an adaptive track selection.- See Also:
-
SELECTION_REASON_TRICK_PLAY
public static final int SELECTION_REASON_TRICK_PLAYA selection reason constant for a trick play track selection.- See Also:
-
SELECTION_FLAG_DEFAULT
public static final int SELECTION_FLAG_DEFAULTIndicates that the track should be selected if user preferences do not state otherwise.- See Also:
-
SELECTION_FLAG_FORCED
public static final int SELECTION_FLAG_FORCEDIndicates that the track must be displayed. Only applies to text tracks.- See Also:
-
SELECTION_FLAG_AUTOSELECT
public static final int SELECTION_FLAG_AUTOSELECTIndicates that the player may choose to play the track in absence of an explicit user preference.- See Also:
-
WIDEVINE_UUID
UUID for the Widevine DRM scheme. Widevine is supported on Android devices running Android 4.3 (API Level 18) and up. -
PLAYREADY_UUID
UUID for the PlayReady DRM scheme.PlayReady is supported on all AndroidTV devices. Note that most other Android devices do not provide PlayReady support.
-
STEREO_MODE_MONO
public static final int STEREO_MODE_MONOIndicates Monoscopic stereo layout, used with 360/3D/VR videos.- See Also:
-
STEREO_MODE_TOP_BOTTOM
public static final int STEREO_MODE_TOP_BOTTOMIndicates Top-Bottom stereo layout, used with 360/3D/VR videos.- See Also:
-
STEREO_MODE_LEFT_RIGHT
public static final int STEREO_MODE_LEFT_RIGHTIndicates Left-Right stereo layout, used with 360/3D/VR videos.- See Also:
-
NULL_CATALOG_ERROR
The error message for a null Catalog object- See Also:
-
EMPTY_HTTPREQUESTCONFIG
The error message for a null Catalog object- See Also:
-
VIDEO_ID_OR_REFERENCE_ID_REQUIRED
The error message for missing Video ID or Reference ID- See Also:
-
-
Constructor Details
-
Constants
public Constants()
-
-
Method Details
-
usToMs
public static long usToMs(long timeUs) Converts a time in microseconds to the corresponding time in milliseconds, preservingTIME_UNSET
values.- Parameters:
timeUs
- The time in microseconds.- Returns:
- The corresponding time in milliseconds.
-
msToUs
public static long msToUs(long timeMs) Converts a time in milliseconds to the corresponding time in microseconds, preservingTIME_UNSET
values.- Parameters:
timeMs
- The time in milliseconds.- Returns:
- The corresponding time in microseconds.
-