Constants

open class Constants

Created by rsubramaniam on 10/2/17.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
annotation class Encoding
Represents an audio encoding, or an invalid or unset value.
Link copied to clipboard
annotation class PcmEncoding
Represents a PCM audio encoding, or an invalid or unset value.
Link copied to clipboard
Track selection flags.
Link copied to clipboard
Define of selection reason constants.
Link copied to clipboard
annotation class StereoMode
The stereo mode for 360/3D/VR videos.

Properties

Link copied to clipboard
val EMPTY_HTTPREQUESTCONFIG: String = "HttpRequestConfig object is empty."
The error message for a null Catalog object
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val ENCODING_PCM_24BIT: Int = -2147483648
PCM encoding with 24 bits per sample.
Link copied to clipboard
val ENCODING_PCM_32BIT: Int = 1073741824
PCM encoding with 32 bits per sample.
Link copied to clipboard
Link copied to clipboard
val INDEX_UNSET: Int = -1
Represents an unset or unknown index.
Link copied to clipboard
val LENGTH_UNSET: Int = -1
Represents an unset or unknown length.
Link copied to clipboard
Represents a microsecond duration whose exact value is unknown, but which should match the longest of some other known durations.
Link copied to clipboard
val NO_VALUE: Int = -1
A value for various fields to indicate that the field's value is unknown or not applicable.
Link copied to clipboard
val NULL_CATALOG_ERROR: String = "Catalog object is null. A non-null Catalog object is required."
The error message for a null Catalog object
Link copied to clipboard
UUID for the PlayReady DRM scheme.
Link copied to clipboard
Represents an unset or unknown position.
Link copied to clipboard
Indicates that the player may choose to play the track in absence of an explicit user preference.
Link copied to clipboard
Indicates that the track should be selected if user preferences do not state otherwise.
Link copied to clipboard
Indicates that the track must be displayed.
Link copied to clipboard
A selection reason constant for an adaptive track selection.
Link copied to clipboard
A selection reason constant for an initial track selection.
Link copied to clipboard
A selection reason constant for an manual (i.e.
Link copied to clipboard
A selection reason constant for a trick play track selection.
Link copied to clipboard
A selection reason constant for selections whose reasons are unknown or unspecified.
Link copied to clipboard
Indicates Left-Right stereo layout, used with 360/3D/VR videos.
Link copied to clipboard
Indicates Monoscopic stereo layout, used with 360/3D/VR videos.
Link copied to clipboard
Indicates Top-Bottom stereo layout, used with 360/3D/VR videos.
Link copied to clipboard
val TIME_END_OF_SOURCE: Long = -9223372036854775808
Special constant representing a time corresponding to the end of a source.
Link copied to clipboard
val TIME_UNSET: Long = -9223372036854775807
Special constant representing an unset or unknown time or duration.
Link copied to clipboard
Represents an unknown microsecond time or duration.
Link copied to clipboard
val VIDEO_ID_OR_REFERENCE_ID_REQUIRED: String = "Either a Video ID or Reference ID property is required."
The error message for missing Video ID or Reference ID
Link copied to clipboard
UUID for the Widevine DRM scheme.

Functions

Link copied to clipboard
open fun msToUs(timeMs: Long): Long
Converts a time in milliseconds to the corresponding time in microseconds, preserving TIME_UNSET values.
Link copied to clipboard
open fun usToMs(timeUs: Long): Long
Converts a time in microseconds to the corresponding time in milliseconds, preserving TIME_UNSET values.