public interface MediaPlayerFactory
MediaPlayer objects.
Providers should implement this interface with a concrete newPlayer method,
returning a suitable MediaPlayer instance.
Providers should also document their factory classname for end users.
The actual factory to be used can be specified two ways:
newInstance(String)org.media.standard.MediaPlayerFactoryMediaPlayer| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FACTORY_CLASS_NAME
System property specifying classname of factory.
|
| Modifier and Type | Method and Description |
|---|---|
static MediaPlayerFactory |
newInstance()
Instantiates factory from system property
org.media.standard.MediaPlayerFactory. |
static MediaPlayerFactory |
newInstance(java.lang.String factoryClassName)
Instantiates factory from specified classname.
|
MediaPlayer |
newPlayer()
Creates new
MediaPlayer instance from this factory. |
static final java.lang.String FACTORY_CLASS_NAME
MediaPlayer newPlayer()
MediaPlayer instance from this factory.static MediaPlayerFactory newInstance() throws FactoryConfigurationException
org.media.standard.MediaPlayerFactory.FactoryConfigurationException - if the factory could not be instantiated.
Note that this exception will wrap the underlying exception, e.g., ClassNotFoundException.FACTORY_CLASS_NAMEstatic MediaPlayerFactory newInstance(java.lang.String factoryClassName) throws FactoryConfigurationException
factoryClassName - the fully qualified classname of the factory.FactoryConfigurationException - if the factory could not be instantiated.
Note that this exception will wrap the underlying exception, e.g., ClassNotFoundException.