public class WOWZMP4Util
extends java.lang.Object
Constructor and Description |
---|
WOWZMP4Util() |
Modifier and Type | Method and Description |
---|---|
static int |
findTrackIndexByMimeType(MediaExtractor extractor,
java.lang.String mimeType)
Gets the track index of the first track found having the specified MIME type.
|
static WOWZMediaConfig |
getFileConfig(Context context,
Uri fileUri)
Gets the audio/video track configuration for an MP4 file using the specified file descriptor.
|
static WOWZMediaConfig |
getFileConfig(java.io.FileDescriptor fileDescriptor)
Gets the audio/video track configuration for an MP4 file using the specified file descriptor.
|
static WOWZMediaConfig |
getFileConfig(java.lang.String filePath)
Gets 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(java.io.FileDescriptor fileDescriptor,
boolean includeVideo,
boolean includeAudio)
Gets the maximum duration for all video and audio tracks.
|
static long |
maxTrackDuration(java.lang.String filePath,
boolean includeVideo,
boolean includeAudio) |
public static WOWZMediaConfig getFileConfig(Context context, Uri fileUri)
context
- The application context.fileUri
- The URI for an MP4 file.public static WOWZMediaConfig getFileConfig(java.lang.String filePath)
filePath
- The path to an MP4 file.public static WOWZMediaConfig getFileConfig(java.io.FileDescriptor fileDescriptor)
fileDescriptor
- The application context.public static int findTrackIndexByMimeType(MediaExtractor extractor, java.lang.String mimeType)
public static long maxTrackDuration(Context context, Uri fileUri, boolean includeVideo, boolean includeAudio)
public static long maxTrackDuration(java.lang.String filePath, boolean includeVideo, boolean includeAudio)
public static long maxTrackDuration(java.io.FileDescriptor fileDescriptor, boolean includeVideo, boolean includeAudio)
© 2016 - 2018 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal