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.


Constructor Index

 o ECSound()

Method Index

 o addMovieListener(MovieListener)
call this method to add a listener for movie events
 o assetChanged(AssetEvent)
sent to the movie to indicate that the movie asset has been changed
 o assetLoading(AssetEvent)
sent to the movie to indicate that asset loading has started/finished/failed
 o assetRegistered(AssetEvent)
sent to the movie when it has registered with an asset
 o assetUnloading(AssetEvent)
sent to the movie to indicate that the asset has been unloaded, or an unload has been requested
 o assetUnregistered(AssetEvent)
sent to the movie to indicate that the asset has been unregistered
 o atEnd(int)
 o atStart(int)
generate a MovieAtStart event
 o atTime(int)
 o getAsset()
returns location of current asset
 o getDuration()
return the overall duration of the movie
 o getRate()
returns the playback rate of the movie
 o getTime()
return the current time (the position) of the movie - defaults to zero when there is no movie
 o getTimeBase()
 o getVolume()
returns the volume of the movie
 o isLoop()
should movie loop at end?
 o isMuted()
 o isPalindrome()
should movie loop at end?
 o isPlaying()
is movie playing?
 o isStopped()
is movie stopped?
 o play()
start the movie playing
 o preroll()
preroll the movie to the current position
 o removeMovieListener(MovieListener)
call this method to remove a listener registered with addMovieListener()
 o rewind()
stop the movie playing and set it's position back to zero
 o 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
 o setLoop(boolean)
set whether movie should loop at end
 o setMuted(boolean)
 o setPalindrome(boolean)
set whether movie should loop at end
 o setPlaying(boolean)
play or stop the movie
 o setRate(float)
set the playback rate of the movie
 o setStopped(boolean)
stop or play the movie
 o setTime(int)
set the time (position) of the movie
 o setVolume(float)
sets the volume of the movie
 o stop()
stop the movie playing

Constructors

 o ECSound
 public ECSound()

Methods

 o getTimeBase
 public quicktime.std.clocks.TimeBase getTimeBase() throws quicktime.QTException
 o play
 public void play() throws quicktime.QTException
start the movie playing

 o rewind
 public void rewind() throws quicktime.QTException
stop the movie playing and set it's position back to zero

 o stop
 public void stop() throws quicktime.QTException
stop the movie playing

 o preroll
 public void preroll() throws quicktime.QTException
preroll the movie to the current position

 o getAsset
 public java.lang.String getAsset()
returns location of current asset

 o 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
 o getDuration
 public int getDuration()
return the overall duration of the movie

 o isLoop
 public boolean isLoop()
should movie loop at end?

 o setLoop
 public void setLoop(boolean b)
set whether movie should loop at end

 o isMuted
 public boolean isMuted()
 o setMuted
 public void setMuted(boolean b)
 o isPalindrome
 public boolean isPalindrome()
should movie loop at end?

 o setPalindrome
 public void setPalindrome(boolean b)
set whether movie should loop at end

 o isPlaying
 public boolean isPlaying()
is movie playing?

 o setPlaying
 public void setPlaying(boolean b)
play or stop the movie

 o getRate
 public float getRate()
returns the playback rate of the movie

 o setRate
 public void setRate(float f)
set the playback rate of the movie

 o isStopped
 public boolean isStopped()
is movie stopped?

 o setStopped
 public void setStopped(boolean b)
stop or play the movie

 o getTime
 public int getTime()
return the current time (the position) of the movie - defaults to zero when there is no movie

 o setTime
 public void setTime(int t)
set the time (position) of the movie

 o getVolume
 public float getVolume()
returns the volume of the movie

 o setVolume
 public void setVolume(float f)
sets the volume of the movie

 o assetRegistered
 public void assetRegistered(com.elegantchaos.beans.asset.AssetEvent ae)
sent to the movie when it has registered with an asset

 o assetLoading
 public void assetLoading(com.elegantchaos.beans.asset.AssetEvent ae)
sent to the movie to indicate that asset loading has started/finished/failed

 o assetUnregistered
 public void assetUnregistered(com.elegantchaos.beans.asset.AssetEvent ae)
sent to the movie to indicate that the asset has been unregistered

 o 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

 o assetChanged
 public void assetChanged(com.elegantchaos.beans.asset.AssetEvent ae)
sent to the movie to indicate that the movie asset has been changed

 o addMovieListener
 public synchronized void addMovieListener(com.elegantchaos.beans.quicktime.MovieListener al)
call this method to add a listener for movie events

 o removeMovieListener
 public synchronized void removeMovieListener(com.elegantchaos.beans.quicktime.MovieListener al)
call this method to remove a listener registered with addMovieListener()

 o atStart
 public void atStart(int time)
generate a MovieAtStart event

 o atEnd
 public void atEnd(int time)
 o atTime
 public void atTime(int time)

All Packages  Class Hierarchy  This Package  Previous  Next  Index