Preparing search index...
The search index is not available
live-js
live-js
<internal>
MediaAccess
Class MediaAccess
Partial Public
Hierarchy
EventTarget
<
MediaAccessEventMap
>
MediaAccess
Index
Constructors
constructor
Properties
_listeners
constraints
has
Permission
off
on
on
Disposed
Accessors
stream
Methods
_dispatch
Event
add
Event
Listener
audio
Output
Changed
dispose
once
remove
All
Event
Listeners
remove
Event
Listener
stream
Changed
Constructors
constructor
new
Media
Access
(
_streamManger
:
StreamManager
, constraints
:
MediaConstraints
)
:
MediaAccess
Parameters
_streamManger:
StreamManager
constraints:
MediaConstraints
Returns
MediaAccess
Properties
Protected
_listeners
_listeners
:
{
audioOutputChanged
?:
EventListener
<
{
args
:
[
]
}
>
[]
;
streamChanged
?:
EventListener
<
{
args
:
[
MediaStream
]
}
>
[]
}
= {}
Type declaration
Optional
audio
Output
Changed
?:
EventListener
<
{
args
:
[
]
}
>
[]
Optional
stream
Changed
?:
EventListener
<
{
args
:
[
MediaStream
]
}
>
[]
Readonly
constraints
constraints
:
MediaConstraints
has
Permission
has
Permission
:
boolean
= false
off
off
:
(
<
K
>
(
type
:
K
, callback
:
EventListener
<
MediaAccessEventMap
[
K
]
>
)
=>
void
)
= ...
Type declaration
<
K
>
(
type
:
K
, callback
:
EventListener
<
MediaAccessEventMap
[
K
]
>
)
:
void
Type Parameters
K
extends
keyof
MediaAccessEventMap
Parameters
type:
K
callback:
EventListener
<
MediaAccessEventMap
[
K
]
>
Returns
void
on
on
:
(
<
K
>
(
type
:
K
, callback
:
EventListener
<
MediaAccessEventMap
[
K
]
>
)
=>
(
(
)
=>
void
)
)
= ...
Type declaration
<
K
>
(
type
:
K
, callback
:
EventListener
<
MediaAccessEventMap
[
K
]
>
)
:
(
(
)
=>
void
)
Type Parameters
K
extends
keyof
MediaAccessEventMap
Parameters
type:
K
callback:
EventListener
<
MediaAccessEventMap
[
K
]
>
Returns
(
(
)
=>
void
)
(
)
:
void
Returns
void
on
Disposed
on
Disposed
:
(
(
)
=>
void
)
Type declaration
(
)
:
void
Returns
void
Accessors
stream
get
stream
(
)
:
MediaStream
Returns
MediaStream
Methods
Protected
_dispatch
Event
_dispatch
Event
<
K
>
(
type
:
K
,
...
args
:
ArgsType
<
MediaAccessEventMap
[
K
]
>
)
:
void
Type Parameters
K
extends
keyof
MediaAccessEventMap
Parameters
type:
K
Rest
...
args:
ArgsType
<
MediaAccessEventMap
[
K
]
>
Returns
void
add
Event
Listener
add
Event
Listener
<
K
>
(
type
:
K
, callback
:
EventListener
<
MediaAccessEventMap
[
K
]
>
)
:
(
(
)
=>
void
)
Type Parameters
K
extends
keyof
MediaAccessEventMap
Parameters
type:
K
callback:
EventListener
<
MediaAccessEventMap
[
K
]
>
Returns
(
(
)
=>
void
)
(
)
:
void
Returns
void
audio
Output
Changed
audio
Output
Changed
(
)
:
void
Returns
void
dispose
dispose
(
)
:
void
Returns
void
once
once
<
K
>
(
type
:
K
, givenCb
:
EventListener
<
MediaAccessEventMap
[
K
]
>
)
:
(
(
)
=>
void
)
Type Parameters
K
extends
keyof
MediaAccessEventMap
Parameters
type:
K
givenCb:
EventListener
<
MediaAccessEventMap
[
K
]
>
Returns
(
(
)
=>
void
)
(
)
:
void
Returns
void
remove
All
Event
Listeners
remove
All
Event
Listeners
(
)
:
void
Returns
void
remove
Event
Listener
remove
Event
Listener
<
K
>
(
type
:
K
, callback
:
EventListener
<
MediaAccessEventMap
[
K
]
>
)
:
void
Type Parameters
K
extends
keyof
MediaAccessEventMap
Parameters
type:
K
callback:
EventListener
<
MediaAccessEventMap
[
K
]
>
Returns
void
stream
Changed
stream
Changed
(
stream
:
MediaStream
)
:
void
Parameters
stream:
MediaStream
Returns
void
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Modules
live-
js
<internal>
Media
Access
constructor
_listeners
constraints
has
Permission
off
on
on
Disposed
stream
_dispatch
Event
add
Event
Listener
audio
Output
Changed
dispose
once
remove
All
Event
Listeners
remove
Event
Listener
stream
Changed
Generated using
TypeDoc
Partial Public