public class JavaSoundClipImpl extends AbstractSCAudioClip
audioNotifier, sync, uri
Constructor and Description |
---|
JavaSoundClipImpl(java.lang.String uri,
AudioNotifierService audioNotifier)
Initializes a new JavaSoundClipImpl instance which is to play
audio stored at a specific URL using
java.applet.AudioClip.
|
Modifier and Type | Method and Description |
---|---|
protected void |
internalStop()
Stops this audio without setting the isLooping property in the case of
a looping audio.
|
protected boolean |
runOnceInPlayThread()
Plays this audio once.
|
enterRunInPlayThread, enterRunOnceInPlayThread, exitRunInPlayThread, exitRunOnceInPlayThread, getLoopInterval, isInvalid, isLooping, isStarted, play, play, setInvalid, setLooping, setLoopInterval, stop
public JavaSoundClipImpl(java.lang.String uri, AudioNotifierService audioNotifier) throws java.io.IOException
uri
- the URL at which the audio is stored and which the
new instance is to loadaudioNotifier
- the AudioNotifierService which is
initializing the new instance and whose mute property/state is
to be monitored by the new instancejava.io.IOException
- if a java.applet.AudioClip could not be
initialized or the audio at the specified url could not be readprotected void internalStop()
internalStop
in class AbstractSCAudioClip
protected boolean runOnceInPlayThread()
runOnceInPlayThread
in class AbstractSCAudioClip
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.