Fields Summary |
---|
protected Hashtable | handlersA hash table of the protocol and content handlers. |
protected Hashtable | processorsA hash table of media processors. |
protected Hashtable | mimeTypesA table of mime types. |
private static Configuration | configThe current configuration object. |
protected static boolean | nativeLoopingTrue if players loop in native code,
otherwise false |
public static final String | TONE_DEVICE_LOCATOR |
public static final String | MIDI_DEVICE_LOCATOR |
public static final String | RADIO_CAPTURE_LOCATOR |
public static final String | AUDIO_CAPTURE_LOCATOR |
public static final String | VIDEO_CAPTURE_LOCATOR |
protected Hashtable | properties |
private static Object | singletonLock |
Methods Summary |
---|
public java.lang.String | ext2Mime(java.lang.String name)Convert from the name of a file to its corresponding Mime
type based on the extension.
int idx = name.lastIndexOf('.");
String ext;
if (idx != -1) {
ext = name.substring(idx + 1).toLowerCase();
} else {
ext = name.toLowerCase();
}
return (String) mimeTypes.get(ext);
|
public abstract PCMAudioOut | getAudioRenderer()Gets the audio renderer.
|
public static com.sun.mmedia.Configuration | getConfiguration()Gets the configuration attribute of the Configuration class
synchronized (singletonLock) {
if (config != null) return config;
String className = System.getProperty("mmapi-configuration");
if (className != null) {
try {
// ... try and instantiate the configuration class ...
Class handlerClass = Class.forName(className);
config = (Configuration) handlerClass.newInstance();
} catch (Exception e) {
// return DefaultConfiguration
config = new DefaultConfiguration();
}
} else {
config = new DefaultConfiguration();
}
return config;
}
|
public java.lang.String | getHandler(java.lang.String type)Gets the handler attribute of the Configuration object
return (String) handlers.get(type);
|
public abstract ImageAccess | getImageAccessor()Gets Accessor to platform specific Image classes
To be defined in derived classes.
|
public java.lang.String | getMediaProcessor(java.lang.String type)Gets the processor attribute of the Configuration object
return (String) processors.get(type);
|
public abstract java.lang.String | getProperty(java.lang.String key)
|
public abstract java.lang.String[] | getSupportedContentTypes(java.lang.String protocol)Gets the supportedContentTypes attribute of the Configuration object
|
public abstract java.lang.String[] | getSupportedMediaProcessorInputTypes()
|
public abstract java.lang.String[] | getSupportedProtocols(java.lang.String content_types)Gets the supportedProtocols attribute of the Configuration class
|
public abstract java.lang.String[] | getSupportedSoundSource3DPlayerTypes()
|
public abstract TonePlayer | getTonePlayer()Gets the tonePlayer attribute of the Configuration object
|
public abstract VideoRenderer | getVideoRenderer(javax.microedition.media.Player player, int sourceWidth, int sourceHeight)Gets the video renderer.
|
public static boolean | nativeLoopMode()Description of the Method
return nativeLooping;
|
public abstract void | setProperty(java.lang.String key, java.lang.String value)
|