public class WZMP4Util extends Object
Constructor and Description |
---|
WZMP4Util() |
Modifier and Type | Method and Description |
---|---|
static int |
findTrackIndexByMimeType(MediaExtractor extractor,
String mimeType)
Returns the track index of the first track found having the specified mime type
|
static WZMediaConfig |
getFileConfig(Context context,
Uri fileUri)
Returns the audio/video track configuration for an MP4 file using the specified file descriptor
|
static WZMediaConfig |
getFileConfig(FileDescriptor fileDescriptor)
Returns the audio/video track configuration for an MP4 file using the specified file descriptor
|
static WZMediaConfig |
getFileConfig(String filePath)
Returns the audio/video track configuration for an MP4 file using the specified file descriptor
|
static long |
maxTrackDuration(Context context,
Uri fileUri,
boolean includeVideo,
boolean includeAudio) |
static long |
maxTrackDuration(FileDescriptor fileDescriptor,
boolean includeVideo,
boolean includeAudio)
Returns the maximum duration for all video and audio tracks
|
static long |
maxTrackDuration(String filePath,
boolean includeVideo,
boolean includeAudio) |
public static WZMediaConfig getFileConfig(Context context, Uri fileUri)
context
- The application contextfileUri
- The URI for an MP4 filenull
if the track configuration could not be determinedpublic static WZMediaConfig getFileConfig(String filePath)
filePath
- The path to an MP4 filenull
if the track configuration could not be determinedpublic static WZMediaConfig getFileConfig(FileDescriptor fileDescriptor)
fileDescriptor
- The application contextnull
if the track configuration could not be determinedpublic static int findTrackIndexByMimeType(MediaExtractor extractor, String mimeType)
-1
if a matching track was not foundpublic static long maxTrackDuration(Context context, Uri fileUri, boolean includeVideo, boolean includeAudio)
public static long maxTrackDuration(String filePath, boolean includeVideo, boolean includeAudio)
public static long maxTrackDuration(FileDescriptor fileDescriptor, boolean includeVideo, boolean includeAudio)
© 2016 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal