|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.tuneology.avm.player.Player | +--com.tuneology.avm.qtplugin.QTPlugin
An interface to the QuickTime player on Windows and MacOS.
Fields inherited from class com.tuneology.avm.player.Player |
dev, listeners, looping |
Constructor Summary | |
QTPlugin(java.lang.String dev,
java.lang.String name)
|
Method Summary | |
void |
close()
Close the player and release its resources. |
void |
cueFile(MediaData md)
Loads a file, sets the current position to the beginning, and pauses. |
java.awt.Component |
getCanvas()
|
static java.lang.String |
getDescription()
|
int |
getSize()
Returns the maximum size of the current file. |
static java.lang.String |
getVersionString()
|
Volume |
getVolume()
Gets the audio output volume of the CD player. |
VolumeRange |
getVolumeRange()
|
void |
jumpTo(int pos)
Moves the current position. |
void |
pause()
Temporarily stops playing at the current position. |
void |
play()
Starts playing after calling stop or cuefile. |
boolean |
playFile(java.lang.String url)
Play the file, blocking until it's done. |
void |
playNextTrack()
|
void |
playPrevTrack()
|
void |
playStream(java.io.InputStream str)
|
void |
setArtist(java.lang.String artist)
|
void |
setTitle(java.lang.String ttl)
|
void |
setTotal(int secs)
|
void |
setTrack(int track)
|
void |
setVolume(Volume vol)
Sets the audio output volume of the CD player. |
void |
shutdown()
|
void |
stop()
Stops playing and resets the current position to the beginning. |
void |
unpause()
Starts playing after calling pause. |
Methods inherited from class com.tuneology.avm.player.Player |
addStatusListener, findPlayerClass, findVideoPlayerClass, formatSeconds, getAudioDevices, getAudioPlayers, getDescription, getDevice, getDeviceDescription, getLoop, getName, getVersions, getVideoPlayers, initInstance, newMediaPlayer, removeStatusListener, setDevice, setLoop, shutdownPlayers |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.tuneology.avm.player.MediaPlayer |
addStatusListener, getDevice, getLoop, getName, removeStatusListener, setDevice, setLoop |
Constructor Detail |
public QTPlugin(java.lang.String dev, java.lang.String name) throws java.lang.Exception
Method Detail |
public void setTotal(int secs)
setTotal
in interface MediaPlayer
public java.awt.Component getCanvas()
getCanvas
in interface MediaPlayer
getCanvas
in class Player
public void playStream(java.io.InputStream str) throws java.lang.Exception
playStream
in interface MediaPlayer
str
- java.lang.Exception
- public void cueFile(MediaData md) throws java.lang.Exception
MediaPlayer
cueFile
in interface MediaPlayer
md
- java.lang.Exception
- public int getSize() throws java.lang.Exception
MediaPlayer
getSize
in interface MediaPlayer
java.lang.Exception
- public void playNextTrack() throws java.lang.Exception
playNextTrack
in interface MediaPlayer
java.lang.Exception
- public void playPrevTrack() throws java.lang.Exception
playPrevTrack
in interface MediaPlayer
java.lang.Exception
- public void jumpTo(int pos) throws java.lang.Exception
MediaPlayer
jumpTo
in interface MediaPlayer
pos
- java.lang.Exception
- public void play() throws java.lang.Exception
MediaPlayer
play
in interface MediaPlayer
java.lang.Exception
- public void pause() throws java.lang.Exception
MediaPlayer
pause
in interface MediaPlayer
java.lang.Exception
- public void unpause() throws java.lang.Exception
MediaPlayer
unpause
in interface MediaPlayer
java.lang.Exception
- public void stop() throws java.lang.Exception
MediaPlayer
stop
in interface MediaPlayer
java.lang.Exception
- public VolumeRange getVolumeRange()
getVolumeRange
in interface MediaPlayer
public Volume getVolume() throws java.io.IOException
getVolume
in interface MediaPlayer
java.io.IOException
- public void setVolume(Volume vol) throws java.io.IOException
setVolume
in interface MediaPlayer
vol
- java.io.IOException
- public void close() throws java.lang.Exception
MediaPlayer
close
in interface MediaPlayer
java.lang.Exception
- public void shutdown()
shutdown
in class Player
public static java.lang.String getVersionString()
public static java.lang.String getDescription()
public void setArtist(java.lang.String artist)
setArtist
in interface MediaPlayer
public void setTitle(java.lang.String ttl)
setTitle
in interface MediaPlayer
public void setTrack(int track)
setTrack
in interface MediaPlayer
public boolean playFile(java.lang.String url) throws java.lang.Exception
MediaPlayer
playFile
in interface MediaPlayer
f
- java.lang.Exception
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |