All Packages Class Hierarchy This Package Previous Next Index
Class com.elegantchaos.beans.quicktime.ECSound
java.lang.Object
|
+----com.elegantchaos.beans.quicktime.ECSound
- public class ECSound
- extends java.lang.Object
- implements java.io.Serializable, com.elegantchaos.beans.asset.AssetListener, quicktime.app.audio.AudioSpec, com.elegantchaos.quicktime.StartFinishListener
The ECSound bean allows you to play any sound format supported by quicktime
This bean has no visual interface - if you want a movie controller etc you can use the
ECMovie bean instead.
-
ECSound()
-
-
addMovieListener(MovieListener)
- call this method to add a listener for movie events
-
assetChanged(AssetEvent)
- sent to the movie to indicate that the movie asset has been changed
-
assetLoading(AssetEvent)
- sent to the movie to indicate that asset loading has started/finished/failed
-
assetRegistered(AssetEvent)
- sent to the movie when it has registered with an asset
-
assetUnloading(AssetEvent)
- sent to the movie to indicate that the asset has been unloaded, or an unload has been requested
-
assetUnregistered(AssetEvent)
- sent to the movie to indicate that the asset has been unregistered
-
atEnd(int)
-
-
atStart(int)
- generate a MovieAtStart event
-
atTime(int)
-
-
getAsset()
- returns location of current asset
-
getDuration()
- return the overall duration of the movie
-
getRate()
- returns the playback rate of the movie
-
getTime()
- return the current time (the position) of the movie - defaults to zero when there is no movie
-
getTimeBase()
-
-
getVolume()
- returns the volume of the movie
-
isLoop()
- should movie loop at end?
-
isMuted()
-
-
isPalindrome()
- should movie loop at end?
-
isPlaying()
- is movie playing?
-
isStopped()
- is movie stopped?
-
play()
- start the movie playing
-
preroll()
- preroll the movie to the current position
-
removeMovieListener(MovieListener)
- call this method to remove a listener registered with addMovieListener()
-
rewind()
- stop the movie playing and set it's position back to zero
-
setAsset(String)
- creates a new temporary (internal) asset, and uses it to specify the movie to use,
allowing you to use this bean without a MovieAsset bean
-
setLoop(boolean)
- set whether movie should loop at end
-
setMuted(boolean)
-
-
setPalindrome(boolean)
- set whether movie should loop at end
-
setPlaying(boolean)
- play or stop the movie
-
setRate(float)
- set the playback rate of the movie
-
setStopped(boolean)
- stop or play the movie
-
setTime(int)
- set the time (position) of the movie
-
setVolume(float)
- sets the volume of the movie
-
stop()
- stop the movie playing
ECSound
public ECSound()
getTimeBase
public quicktime.std.clocks.TimeBase getTimeBase() throws quicktime.QTException
play
public void play() throws quicktime.QTException
- start the movie playing
rewind
public void rewind() throws quicktime.QTException
- stop the movie playing and set it's position back to zero
stop
public void stop() throws quicktime.QTException
- stop the movie playing
preroll
public void preroll() throws quicktime.QTException
- preroll the movie to the current position
getAsset
public java.lang.String getAsset()
- returns location of current asset
setAsset
public void setAsset(java.lang.String url)
- creates a new temporary (internal) asset, and uses it to specify the movie to use,
allowing you to use this bean without a MovieAsset bean
- See Also:
- MovieAsset
getDuration
public int getDuration()
- return the overall duration of the movie
isLoop
public boolean isLoop()
- should movie loop at end?
setLoop
public void setLoop(boolean b)
- set whether movie should loop at end
isMuted
public boolean isMuted()
setMuted
public void setMuted(boolean b)
isPalindrome
public boolean isPalindrome()
- should movie loop at end?
setPalindrome
public void setPalindrome(boolean b)
- set whether movie should loop at end
isPlaying
public boolean isPlaying()
- is movie playing?
setPlaying
public void setPlaying(boolean b)
- play or stop the movie
getRate
public float getRate()
- returns the playback rate of the movie
setRate
public void setRate(float f)
- set the playback rate of the movie
isStopped
public boolean isStopped()
- is movie stopped?
setStopped
public void setStopped(boolean b)
- stop or play the movie
getTime
public int getTime()
- return the current time (the position) of the movie - defaults to zero when there is no movie
setTime
public void setTime(int t)
- set the time (position) of the movie
getVolume
public float getVolume()
- returns the volume of the movie
setVolume
public void setVolume(float f)
- sets the volume of the movie
assetRegistered
public void assetRegistered(com.elegantchaos.beans.asset.AssetEvent ae)
- sent to the movie when it has registered with an asset
assetLoading
public void assetLoading(com.elegantchaos.beans.asset.AssetEvent ae)
- sent to the movie to indicate that asset loading has started/finished/failed
assetUnregistered
public void assetUnregistered(com.elegantchaos.beans.asset.AssetEvent ae)
- sent to the movie to indicate that the asset has been unregistered
assetUnloading
public void assetUnloading(com.elegantchaos.beans.asset.AssetEvent ae)
- sent to the movie to indicate that the asset has been unloaded, or an unload has been requested
assetChanged
public void assetChanged(com.elegantchaos.beans.asset.AssetEvent ae)
- sent to the movie to indicate that the movie asset has been changed
addMovieListener
public synchronized void addMovieListener(com.elegantchaos.beans.quicktime.MovieListener al)
- call this method to add a listener for movie events
removeMovieListener
public synchronized void removeMovieListener(com.elegantchaos.beans.quicktime.MovieListener al)
- call this method to remove a listener registered with addMovieListener()
atStart
public void atStart(int time)
- generate a MovieAtStart event
atEnd
public void atEnd(int time)
atTime
public void atTime(int time)
All Packages Class Hierarchy This Package Previous Next Index