| Modifier and Type | Class and Description |
|---|---|
| private static class | NativeMediaManager.
The NativeMediaManager singleton. |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Map | allMediaPlayers
List of all un-disposed players. |
| private final List | |
| private static boolean | isNativeLayerInitialized
Whether the native layer has been initialized. |
| private static final NativeMediaManager. | |
| private final List | |
| private final List |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | canPlayContentType(String contentType)
Whether a media source having the indicated content type may be played. |
| public boolean | |
| public List | |
| public static NativeMediaManager | Returns: the singletonNativeMediaManager instance.Get the default
|
| public Media | |
| pack-priv List | |
| public static MetadataParser | |
| public MediaPlayer | |
| public String[] | |
| pack-priv static synchronized void | |
| private synchronized void | |
| private synchronized void | |
| 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 void |
| allMediaPlayers | back to summary |
|---|---|
| private static final Map<MediaPlayer, Boolean> allMediaPlayers List of all un-disposed players. | |
| errorListeners | back to summary |
|---|---|
| private final List<WeakReference<MediaErrorListener>> errorListeners The | |
| isNativeLayerInitialized | back to summary |
|---|---|
| private static boolean isNativeLayerInitialized Whether the native layer has been initialized. | |
| playerDisposer | back to summary |
|---|---|
| private static final NativeMediaManager. | |
| supportedContentTypes | back to summary |
|---|---|
| private final List<String> supportedContentTypes | |
| supportedProtocols | back to summary |
|---|---|
| private final List<String> supportedProtocols | |
| NativeMediaManager | back to summary |
|---|---|
| protected NativeMediaManager() Create a | |
| addMediaErrorListener | back to summary |
|---|---|
| public void addMediaErrorListener(MediaErrorListener listener) | |
| canPlayContentType | back to summary |
|---|---|
| public boolean canPlayContentType(String contentType) Whether a media source having the indicated content type may be played.
| |
| canPlayProtocol | back to summary |
|---|---|
| public boolean canPlayProtocol(String protocol) Whether a media source having the indicated protocol may be played.
| |
| getAllMediaPlayers | back to summary |
|---|---|
| public List Retrieve all un-disposed
| |
| getDefaultInstance | back to summary |
|---|---|
| public static NativeMediaManager getDefaultInstance() Get the default
| |
| getMedia | back to summary |
|---|---|
| public Media getMedia(Locator locator) Get a player for the media locator. A preference may be set as to whether to allow a full scan of the media. FIXME: Nuke permitFullScan, it is unused and has no effect
| |
| getMediaErrorListeners | back to summary |
|---|---|
| pack-priv List | |
| getMetadataParser | back to summary |
|---|---|
| public static MetadataParser getMetadataParser(Locator locator) | |
| getPlayer | back to summary |
|---|---|
| public MediaPlayer getPlayer(Locator locator) | |
| getSupportedContentTypes | back to summary |
|---|---|
| public String[] getSupportedContentTypes() | |
| initNativeLayer | back to summary |
|---|---|
| pack-priv static synchronized void initNativeLayer() Initialize the native layer if it has not been so already. | |
| loadContentTypes | back to summary |
|---|---|
| private synchronized void loadContentTypes() | |
| loadProtocols | back to summary |
|---|---|
| private synchronized void loadProtocols() | |
| 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. FIXME: Nuke this and use MediaDisposer instead
| |
| removeMediaErrorListener | back to summary |
|---|---|
| public void removeMediaErrorListener(MediaErrorListener listener) | |
| Modifier and Type | Field and Description |
|---|---|
| private static final NativeMediaManager |
| Access | Constructor and Description |
|---|---|
| private |
| globalInstance | back to summary |
|---|---|
| private static final NativeMediaManager globalInstance | |
| NativeMediaManagerInitializer | back to summary |
|---|---|
| private NativeMediaManagerInitializer() | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | disposeResource(Object
the resource that needs to be disposed of. resource)Implements com. Dispose the provided resource. |
| NativeMediaPlayerDisposer | back to summary |
|---|---|
| private NativeMediaPlayerDisposer() | |
| disposeResource | back to summary |
|---|---|
| public void disposeResource(Object resource) Implements com. Doc from com. Dispose the provided resource. | |