|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evolution.player.ui.musicplayer.MusicPlayerProvider
public abstract class MusicPlayerProvider
A music player provider can provide a music player for a given media info. A
music player provider can be contributed through the
com.evolution.player.ui.musicPlayerProvider
extension point
provided by the com.evolution.player.ui plugin.
It is expected that a MusicPlayerProvider
does work together with a
MediaInfoProvider
.
Clients must implement.
MusicPlayer
,
MediaInfoProvider
Constructor Summary | |
---|---|
MusicPlayerProvider()
|
Method Summary | |
---|---|
abstract boolean |
canHandle(LocalMediaInfo info)
True if this provider can create a music player which is able to play the given media. |
abstract MusicPlayer |
createPlayer(LocalMediaInfo info)
Return a new instance of a music player which is able to play the given media. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MusicPlayerProvider()
Method Detail |
---|
public abstract boolean canHandle(LocalMediaInfo info)
info
- the media to handle
public abstract MusicPlayer createPlayer(LocalMediaInfo info)
canHandle(LocalMediaInfo)
returns
true for the same media.
info
- the media to play
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |