| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| public static final int | MAX_FILE_SIGNATURE_LENGTH
Maximum number of bytes needed to scan the file signature. |
| pack-priv static final String | NATIVE_MEDIA_ERROR_FORMAT
Format of an error which occurred in the native porting layer. |
| pack-priv static final String | NATIVE_MEDIA_WARNING_FORMAT
Format of an error which occurred in the native porting layer. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static String | |
| public static String | Returns: The content type orLocator#DEFAULT_CONTENT_TYPE if not
able to be determined or unsupported.File signature of size buf, int size)MAX_FILE_SIGNATURE_LENGTHAttempt to determine the content type from the file signature. |
| public static String | Returns: file name or null if file name cannot be extractedReturns the file name given the uri. |
| public static void | |
| public static void | nativeWarning(Object source, int
The native warning code. warningCode, String warningMessage)Send a message with the indicated native error code. |
| public static void | warning(Object
the source of the warning, likely the object calling this
method. source, String a message)String containing the warning.Forward warnings to the global listeners registered with the
|
| CONTENT_TYPE_AIFF | back to summary |
|---|---|
| public static final String CONTENT_TYPE_AIFF | |
| CONTENT_TYPE_FLV | back to summary |
|---|---|
| public static final String CONTENT_TYPE_FLV | |
| CONTENT_TYPE_JFX | back to summary |
|---|---|
| public static final String CONTENT_TYPE_JFX | |
| CONTENT_TYPE_M3U | back to summary |
|---|---|
| public static final String CONTENT_TYPE_M3U | |
| CONTENT_TYPE_M3U8 | back to summary |
|---|---|
| public static final String CONTENT_TYPE_M3U8 | |
| CONTENT_TYPE_M4A | back to summary |
|---|---|
| public static final String CONTENT_TYPE_M4A | |
| CONTENT_TYPE_M4V | back to summary |
|---|---|
| public static final String CONTENT_TYPE_M4V | |
| CONTENT_TYPE_MP3 | back to summary |
|---|---|
| public static final String CONTENT_TYPE_MP3 | |
| CONTENT_TYPE_MP4 | back to summary |
|---|---|
| public static final String CONTENT_TYPE_MP4 | |
| CONTENT_TYPE_MPA | back to summary |
|---|---|
| public static final String CONTENT_TYPE_MPA | |
| CONTENT_TYPE_WAV | back to summary |
|---|---|
| public static final String CONTENT_TYPE_WAV | |
| FILE_TYPE_AIF | back to summary |
|---|---|
| private static final String FILE_TYPE_AIF | |
| FILE_TYPE_AIFF | back to summary |
|---|---|
| private static final String FILE_TYPE_AIFF | |
| FILE_TYPE_FLV | back to summary |
|---|---|
| private static final String FILE_TYPE_FLV | |
| FILE_TYPE_FXM | back to summary |
|---|---|
| private static final String FILE_TYPE_FXM | |
| FILE_TYPE_M3U | back to summary |
|---|---|
| private static final String FILE_TYPE_M3U | |
| FILE_TYPE_M3U8 | back to summary |
|---|---|
| private static final String FILE_TYPE_M3U8 | |
| FILE_TYPE_M4A | back to summary |
|---|---|
| private static final String FILE_TYPE_M4A | |
| FILE_TYPE_M4V | back to summary |
|---|---|
| private static final String FILE_TYPE_M4V | |
| FILE_TYPE_MP4 | back to summary |
|---|---|
| private static final String FILE_TYPE_MP4 | |
| FILE_TYPE_MPA | back to summary |
|---|---|
| private static final String FILE_TYPE_MPA | |
| FILE_TYPE_WAV | back to summary |
|---|---|
| private static final String FILE_TYPE_WAV | |
| MAX_FILE_SIGNATURE_LENGTH | back to summary |
|---|---|
| public static final int MAX_FILE_SIGNATURE_LENGTH Maximum number of bytes needed to scan the file signature. | |
| NATIVE_MEDIA_ERROR_FORMAT | back to summary |
|---|---|
| pack-priv static final String NATIVE_MEDIA_ERROR_FORMAT Format of an error which occurred in the native porting layer. A single int argument representing an error code is expected. | |
| NATIVE_MEDIA_WARNING_FORMAT | back to summary |
|---|---|
| pack-priv static final String NATIVE_MEDIA_WARNING_FORMAT Format of an error which occurred in the native porting layer. A single int argument representing a warning code is expected. Note FLV related code in this file is needed so we can provide error message that FLV support is removed. | |
| MediaUtils | back to summary |
|---|---|
| public MediaUtils() | |
| error | back to summary |
|---|---|
| public static void error(Object source, int errCode, String message, Throwable cause) Throw a | |
| filenameToContentType | back to summary |
|---|---|
| public static String filenameToContentType(URI uri) Returns the content type given the uri.
| |
| fileSignatureToContentType | back to summary |
|---|---|
| public static String fileSignatureToContentType(byte[] buf, int size) throws MediaException Attempt to determine the content type from the file signature.
| |
| getFilenameFromURI | back to summary |
|---|---|
| public static String getFilenameFromURI(URI uri) Returns the file name given the uri. Supports special case for JAR URIs.
| |
| nativeError | back to summary |
|---|---|
| public static void nativeError(Object source, MediaError error) Throw a | |
| nativeWarning | back to summary |
|---|---|
| public static void nativeWarning(Object source, int warningCode, String warningMessage) Send a message with the indicated native error code.
| |
| warning | back to summary |
|---|---|
| public static void warning(Object source, String message) Forward warnings to the global listeners registered with the
| |