Package com.google.android.exoplayer2
Class ExoPlayerLibraryInfo
- java.lang.Object
-
- com.google.android.exoplayer2.ExoPlayerLibraryInfo
-
public final class ExoPlayerLibraryInfo extends Object
Information about the ExoPlayer library.
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
ASSERTIONS_ENABLED
Whether the library was compiled withAssertions
checks enabled.static String
DEFAULT_USER_AGENT
Deprecated.ExoPlayer now uses the user agent of the underlying network stack by default.static boolean
GL_ASSERTIONS_ENABLED
Whether an exception should be thrown in case of an OpenGl error.static String
TAG
A tag to use when logging library information.static boolean
TRACE_ENABLED
Whether the library was compiled withTraceUtil
trace enabled.static String
VERSION
The version of the library expressed as a string, for example "1.2.3".static int
VERSION_INT
The version of the library expressed as an integer, for example 1002003.static String
VERSION_SLASHY
The version of the library expressed as"ExoPlayerLib/" + VERSION
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
registeredModules()
Returns a string consisting of registered module names separated by ", ".static void
registerModule(String name)
Registers a module to be returned in theregisteredModules()
string.
-
-
-
Field Detail
-
TAG
public static final String TAG
A tag to use when logging library information.- See Also:
- Constant Field Values
-
VERSION
public static final String VERSION
The version of the library expressed as a string, for example "1.2.3".- See Also:
- Constant Field Values
-
VERSION_SLASHY
public static final String VERSION_SLASHY
The version of the library expressed as"ExoPlayerLib/" + VERSION
.- See Also:
- Constant Field Values
-
VERSION_INT
public static final int VERSION_INT
The version of the library expressed as an integer, for example 1002003.Three digits are used for each component of
VERSION
. For example "1.2.3" has the corresponding integer version 1002003 (001-002-003), and "123.45.6" has the corresponding integer version 123045006 (123-045-006).- See Also:
- Constant Field Values
-
DEFAULT_USER_AGENT
@Deprecated public static final String DEFAULT_USER_AGENT
Deprecated.ExoPlayer now uses the user agent of the underlying network stack by default.The default user agent for requests made by the library.
-
ASSERTIONS_ENABLED
public static final boolean ASSERTIONS_ENABLED
Whether the library was compiled withAssertions
checks enabled.- See Also:
- Constant Field Values
-
GL_ASSERTIONS_ENABLED
public static final boolean GL_ASSERTIONS_ENABLED
Whether an exception should be thrown in case of an OpenGl error.- See Also:
- Constant Field Values
-
TRACE_ENABLED
public static final boolean TRACE_ENABLED
Whether the library was compiled withTraceUtil
trace enabled.- See Also:
- Constant Field Values
-
-
Method Detail
-
registeredModules
public static String registeredModules()
Returns a string consisting of registered module names separated by ", ".
-
registerModule
public static void registerModule(String name)
Registers a module to be returned in theregisteredModules()
string.- Parameters:
name
- The name of the module being registered.
-
-