Package com.brightcove.player
Class Constants
- java.lang.Object
-
- com.brightcove.player.Constants
-
- Direct Known Subclasses:
C
public class Constants extends java.lang.ObjectCreated by rsubramaniam on 10/2/17.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceConstants.EncodingRepresents an audio encoding, or an invalid or unset value.static interfaceConstants.PcmEncodingRepresents a PCM audio encoding, or an invalid or unset value.static interfaceConstants.SelectionFlagsTrack selection flags.static interfaceConstants.SelectionReasonDefine of selection reason constants.static interfaceConstants.StereoModeThe stereo mode for 360/3D/VR videos.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringEMPTY_HTTPREQUESTCONFIGThe error message for a null Catalog objectstatic intENCODING_AC3static intENCODING_DTSstatic intENCODING_DTS_HDstatic intENCODING_E_AC3static intENCODING_INVALIDstatic intENCODING_PCM_16BITstatic intENCODING_PCM_24BITPCM encoding with 24 bits per sample.static intENCODING_PCM_32BITPCM encoding with 32 bits per sample.static intENCODING_PCM_8BITstatic intINDEX_UNSETRepresents an unset or unknown index.static intLENGTH_UNSETRepresents an unset or unknown length.static longMATCH_LONGEST_USRepresents a microsecond duration whose exact value is unknown, but which should match the longest of some other known durations.static intNO_VALUEA value for various fields to indicate that the field's value is unknown or not applicable.static java.lang.StringNULL_CATALOG_ERRORThe error message for a null Catalog objectstatic java.util.UUIDPLAYREADY_UUIDUUID for the PlayReady DRM scheme.static intPOSITION_UNSETRepresents an unset or unknown position.static intSELECTION_FLAG_AUTOSELECTIndicates that the player may choose to play the track in absence of an explicit user preference.static intSELECTION_FLAG_DEFAULTIndicates that the track should be selected if user preferences do not state otherwise.static intSELECTION_FLAG_FORCEDIndicates that the track must be displayed.static intSELECTION_REASON_ADAPTIVEA selection reason constant for an adaptive track selection.static intSELECTION_REASON_INITIALA selection reason constant for an initial track selection.static intSELECTION_REASON_MANUALA selection reason constant for an manual (i.e.static intSELECTION_REASON_TRICK_PLAYA selection reason constant for a trick play track selection.static intSELECTION_REASON_UNKNOWNA selection reason constant for selections whose reasons are unknown or unspecified.static intSTEREO_MODE_LEFT_RIGHTIndicates Left-Right stereo layout, used with 360/3D/VR videos.static intSTEREO_MODE_MONOIndicates Monoscopic stereo layout, used with 360/3D/VR videos.static intSTEREO_MODE_TOP_BOTTOMIndicates Top-Bottom stereo layout, used with 360/3D/VR videos.static longTIME_END_OF_SOURCESpecial constant representing a time corresponding to the end of a source.static longTIME_UNSETSpecial constant representing an unset or unknown time or duration.static longUNKNOWN_TIME_USRepresents an unknown microsecond time or duration.static java.lang.StringVIDEO_ID_OR_REFERENCE_ID_REQUIREDThe error message for missing Video ID or Reference IDstatic java.util.UUIDWIDEVINE_UUIDUUID for the Widevine DRM scheme.
-
Constructor Summary
Constructors Constructor Description Constants()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longmsToUs(long timeMs)Converts a time in milliseconds to the corresponding time in microseconds, preservingTIME_UNSETvalues.static longusToMs(long timeUs)Converts a time in microseconds to the corresponding time in milliseconds, preservingTIME_UNSETvalues.
-
-
-
Field Detail
-
TIME_END_OF_SOURCE
public static final long TIME_END_OF_SOURCE
Special constant representing a time corresponding to the end of a source. Suitable for use in any time base.- See Also:
- Constant Field Values
-
TIME_UNSET
public static final long TIME_UNSET
Special constant representing an unset or unknown time or duration. Suitable for use in any time base.- See Also:
- Constant Field Values
-
UNKNOWN_TIME_US
public static final long UNKNOWN_TIME_US
Represents an unknown microsecond time or duration.- See Also:
- Constant Field Values
-
MATCH_LONGEST_US
public static final long MATCH_LONGEST_US
Represents a microsecond duration whose exact value is unknown, but which should match the longest of some other known durations.- See Also:
- Constant Field Values
-
INDEX_UNSET
public static final int INDEX_UNSET
Represents an unset or unknown index.- See Also:
- Constant Field Values
-
POSITION_UNSET
public static final int POSITION_UNSET
Represents an unset or unknown position.- See Also:
- Constant Field Values
-
LENGTH_UNSET
public static final int LENGTH_UNSET
Represents an unset or unknown length.- See Also:
- Constant Field Values
-
NO_VALUE
public static final int NO_VALUE
A value for various fields to indicate that the field's value is unknown or not applicable.- See Also:
- Constant Field Values
-
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_24BIT
PCM encoding with 24 bits per sample.- See Also:
- Constant Field Values
-
ENCODING_PCM_32BIT
public static final int ENCODING_PCM_32BIT
PCM encoding with 32 bits per sample.- See Also:
- Constant Field Values
-
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_UNKNOWN
A selection reason constant for selections whose reasons are unknown or unspecified.- See Also:
- Constant Field Values
-
SELECTION_REASON_INITIAL
public static final int SELECTION_REASON_INITIAL
A selection reason constant for an initial track selection.- See Also:
- Constant Field Values
-
SELECTION_REASON_MANUAL
public static final int SELECTION_REASON_MANUAL
A selection reason constant for an manual (i.e. user initiated) track selection.- See Also:
- Constant Field Values
-
SELECTION_REASON_ADAPTIVE
public static final int SELECTION_REASON_ADAPTIVE
A selection reason constant for an adaptive track selection.- See Also:
- Constant Field Values
-
SELECTION_REASON_TRICK_PLAY
public static final int SELECTION_REASON_TRICK_PLAY
A selection reason constant for a trick play track selection.- See Also:
- Constant Field Values
-
SELECTION_FLAG_DEFAULT
public static final int SELECTION_FLAG_DEFAULT
Indicates that the track should be selected if user preferences do not state otherwise.- See Also:
- Constant Field Values
-
SELECTION_FLAG_FORCED
public static final int SELECTION_FLAG_FORCED
Indicates that the track must be displayed. Only applies to text tracks.- See Also:
- Constant Field Values
-
SELECTION_FLAG_AUTOSELECT
public static final int SELECTION_FLAG_AUTOSELECT
Indicates that the player may choose to play the track in absence of an explicit user preference.- See Also:
- Constant Field Values
-
WIDEVINE_UUID
public static final java.util.UUID 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
public static final java.util.UUID 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_MONO
Indicates Monoscopic stereo layout, used with 360/3D/VR videos.- See Also:
- Constant Field Values
-
STEREO_MODE_TOP_BOTTOM
public static final int STEREO_MODE_TOP_BOTTOM
Indicates Top-Bottom stereo layout, used with 360/3D/VR videos.- See Also:
- Constant Field Values
-
STEREO_MODE_LEFT_RIGHT
public static final int STEREO_MODE_LEFT_RIGHT
Indicates Left-Right stereo layout, used with 360/3D/VR videos.- See Also:
- Constant Field Values
-
NULL_CATALOG_ERROR
public static final java.lang.String NULL_CATALOG_ERROR
The error message for a null Catalog object- See Also:
- Constant Field Values
-
EMPTY_HTTPREQUESTCONFIG
public static final java.lang.String EMPTY_HTTPREQUESTCONFIG
The error message for a null Catalog object- See Also:
- Constant Field Values
-
VIDEO_ID_OR_REFERENCE_ID_REQUIRED
public static final java.lang.String VIDEO_ID_OR_REFERENCE_ID_REQUIRED
The error message for missing Video ID or Reference ID- See Also:
- Constant Field Values
-
-
Method Detail
-
usToMs
public static long usToMs(long timeUs)
Converts a time in microseconds to the corresponding time in milliseconds, preservingTIME_UNSETvalues.- 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_UNSETvalues.- Parameters:
timeMs- The time in milliseconds.- Returns:
- The corresponding time in microseconds.
-
-