MediaPlayer, MediaRecorder
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | addMediaErrorListener(MediaErrorListener
The listener to add. listener)Add a global listener for warnings. |
| public static boolean | canPlayContentType(String contentType)
Whether a media source having the indicated content type may be played. |
| public static boolean | |
| public static List | |
| public static Media | |
| public static MetadataParser | |
| public static MediaPlayer | |
| public static String[] | |
| public static void | registerMediaPlayerForDispose(Object
- Object to watch for strong references obj, MediaPlayer - MediaPlayer to dispose player)This function will register MediaPlayer for disposing when obj parameter does not have any strong reference. |
| public static void | removeMediaErrorListener(MediaErrorListener
The listener to remove. listener)Remove a global listener for warnings. |
| MediaManager | back to summary |
|---|---|
| private MediaManager() | |
| addMediaErrorListener | back to summary |
|---|---|
| public static void addMediaErrorListener(MediaErrorListener listener) Add a global listener for warnings. This listener will receive warnings which occur fall outside the context of a particular player or recorder.
| |
| canPlayContentType | back to summary |
|---|---|
| public static boolean canPlayContentType(String contentType) Whether a media source having the indicated content type may be played.
| |
| canPlayProtocol | back to summary |
|---|---|
| public static boolean canPlayProtocol(String protocol) Whether a media source having the indicated protocol may be played.
| |
| getAllMediaPlayers | back to summary |
|---|---|
| public static List Retrieve all un-disposed
| |
| getMedia | back to summary |
|---|---|
| public static Media getMedia(Locator locator) Gets a Media object for the clip. It cannot be played without attaching to a MediaPlayer.
| |
| getMetadataParser | back to summary |
|---|---|
| public static MetadataParser getMetadataParser(Locator locator) | |
| getPlayer | back to summary |
|---|---|
| public static MediaPlayer getPlayer(Locator locator) Get a player for the media locator
| |
| getSupportedContentTypes | back to summary |
|---|---|
| public static String[] getSupportedContentTypes() | |
| registerMediaPlayerForDispose | back to summary |
|---|---|
| public static void registerMediaPlayerForDispose(Object obj, MediaPlayer player) This function will register MediaPlayer for disposing when obj parameter does not have any strong reference.
| |
| removeMediaErrorListener | back to summary |
|---|---|
| public static void removeMediaErrorListener(MediaErrorListener listener) Remove a global listener for warnings.
| |