Preparing search index...
The search index is not available
@clockworkdog/cogs-client
@clockworkdog/cogs-client
SurfaceManager
Class SurfaceManager
The SurfaceManager will receive state updates and:
Ensure that each clip has a parent element
Instantiate a ClipManager attached to each respective element
Index
Constructors
constructor
Accessors
element
volume
Methods
set
State
update
Constructors
constructor
new
SurfaceManager
(
constructAssetUrl
:
(
file
:
string
)
=>
string
,
getAudioOutput
:
(
outputLabel
:
string
)
=>
string
,
testState
?:
MediaSurfaceState
,
mediaPreloader
?:
MediaPreloader
,
)
:
SurfaceManager
Parameters
constructAssetUrl
:
(
file
:
string
)
=>
string
getAudioOutput
:
(
outputLabel
:
string
)
=>
string
Optional
testState
:
MediaSurfaceState
mediaPreloader
:
MediaPreloader
= ...
Returns
SurfaceManager
Accessors
element
get
element
()
:
HTMLDivElement
Returns
HTMLDivElement
volume
get
volume
()
:
number
Returns
number
set
volume
(
newVolume
:
number
)
:
void
Parameters
newVolume
:
number
Returns
void
Methods
set
State
setState
(
newState
:
MediaSurfaceState
)
:
void
Parameters
newState
:
MediaSurfaceState
Returns
void
update
update
()
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Accessors
element
volume
Methods
set
State
update
@clockworkdog/cogs-client
Loading...
The SurfaceManager will receive state updates and: