com.vwp.net
Class PlayThread
java.lang.Object
java.lang.Thread
com.vwp.net.PlayThread
- All Implemented Interfaces:
- Runnable
public abstract class PlayThread
- extends Thread
This class is some kin dof placeholder for an class that handles
custom data when setInputStream() is called handing over a valid
InputStream. This class is required from DownloadCacheManager when
a CUSTOMDATA is downloaded in background. Here the DownloadCacheManager
requires an object that has inherited from PlayThread and implements the
related replay/display/... functionality that belongs to these custom data.
When these data are downloaded fully, the DownloadChacheManager calls
setInputStream() to start using the data.
|
Method Summary |
abstract void |
close()
Stop replaying of sound data and close all open ressources, clean up completely. |
abstract void |
setInputStream(InputStream extin)
Set an input stream of a downloaded soundfile to let it replay by an
audio player that inherits from this class |
abstract void |
setVolume(float volume)
Sets the volume of a audio stream |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
PlayThread
public PlayThread()
setInputStream
public abstract void setInputStream(InputStream extin)
- Set an input stream of a downloaded soundfile to let it replay by an
audio player that inherits from this class
- Parameters:
extin - the InputStream of the downloaded soundfile
close
public abstract void close()
- Stop replaying of sound data and close all open ressources, clean up completely.
setVolume
public abstract void setVolume(float volume)
- Sets the volume of a audio stream
- Parameters:
volume - the volume in percent