-
public class Constants
Created by rsubramaniam on 10/2/17.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public @interface
Constants.Encoding
Represents an audio encoding, or an invalid or unset value.
public @interface
Constants.PcmEncoding
Represents a PCM audio encoding, or an invalid or unset value.
public @interface
Constants.SelectionReason
Define of selection reason constants.
public @interface
Constants.SelectionFlags
Track selection flags.
public @interface
Constants.StereoMode
The stereo mode for 360/3D/VR videos.
-
Field Summary
Fields Modifier and Type Field Description public final static long
TIME_END_OF_SOURCE
public final static long
TIME_UNSET
public final static long
UNKNOWN_TIME_US
public final static long
MATCH_LONGEST_US
public final static int
INDEX_UNSET
public final static int
POSITION_UNSET
public final static int
LENGTH_UNSET
public final static int
NO_VALUE
public final static int
ENCODING_INVALID
public final static int
ENCODING_PCM_8BIT
public final static int
ENCODING_PCM_16BIT
public final static int
ENCODING_PCM_24BIT
public final static int
ENCODING_PCM_32BIT
public final static int
ENCODING_AC3
public final static int
ENCODING_E_AC3
public final static int
ENCODING_DTS
public final static int
ENCODING_DTS_HD
public final static int
SELECTION_REASON_UNKNOWN
public final static int
SELECTION_REASON_INITIAL
public final static int
SELECTION_REASON_MANUAL
public final static int
SELECTION_REASON_ADAPTIVE
public final static int
SELECTION_REASON_TRICK_PLAY
public final static int
SELECTION_FLAG_DEFAULT
public final static int
SELECTION_FLAG_FORCED
public final static int
SELECTION_FLAG_AUTOSELECT
public final static UUID
WIDEVINE_UUID
public final static UUID
PLAYREADY_UUID
public final static int
STEREO_MODE_MONO
public final static int
STEREO_MODE_TOP_BOTTOM
public final static int
STEREO_MODE_LEFT_RIGHT
public final static String
NULL_CATALOG_ERROR
public final static String
EMPTY_HTTPREQUESTCONFIG
public final static String
VIDEO_ID_OR_REFERENCE_ID_REQUIRED
-
Method Summary
Modifier and Type Method Description static long
usToMs(long timeUs)
Converts a time in microseconds to the corresponding time in milliseconds, preserving TIME_UNSET values. static long
msToUs(long timeMs)
Converts a time in milliseconds to the corresponding time in microseconds, preserving TIME_UNSET values. -
-
Method Detail
-
usToMs
static long usToMs(long timeUs)
Converts a time in microseconds to the corresponding time in milliseconds, preserving TIME_UNSET values.
- Parameters:
timeUs
- The time in microseconds.
-
msToUs
static long msToUs(long timeMs)
Converts a time in milliseconds to the corresponding time in microseconds, preserving TIME_UNSET values.
- Parameters:
timeMs
- The time in milliseconds.
-
-
-
-