PlayControl Class

Used to render a slider that can be used a part of a audio or video controller. Provides basic functions like play, pause, and stop. Users can interact with the slider while its running and get back elapsed time. This class requires the javaxt.dhtml.Slider class which, in turn requires a css file but has no other dependencies.

Constructors

PlayControl( parent, config )
Used to instantiate this class
parentDOM element in which to render this component
configConfiguration settings (optional). See config options for more information.

Config Options

startTime
totalTime

Events

onChange( elapsedTime )
onEnd( )

Public Methods

setRunTime( runTime )
runTimein seconds
play( _loop )
pause( )
stop( )
isPlaying( )
getElapsedTime( )
setElapsedTime( elapsedTime )