Preparing search index...
The search index is not available
live-js
live-js
<internal>
LocalStream
Class LocalStream
Hierarchy
EventTarget
<
LocalStreamEventMap
>
LocalStream
Index
Constructors
constructor
Properties
_listeners
off
on
Accessors
has
Permission
is
Screen
Sharing
local
Stream
media
Constraints
merged
Stream
screen
Stream
Methods
_dispatch
Event
add
Event
Listener
get
Local
Media
Stream
once
release
remove
All
Event
Listeners
remove
Event
Listener
revoke
Media
Access
stop
Screen
Share
use
Screen
Stream
Constructors
constructor
new
Local
Stream
(
_deviceManager
:
DeviceManager
, _mediaConstraints
?:
MediaConstraints
)
:
LocalStream
Parameters
_deviceManager:
DeviceManager
_mediaConstraints:
MediaConstraints
= ...
Returns
LocalStream
Properties
Protected
_listeners
_listeners
:
{
audioOutputChanged
?:
EventListener
<
{
args
:
[
]
}
>
[]
;
screenShareStreamStopped
?:
EventListener
<
{
args
:
[
]
}
>
[]
;
streamChanged
?:
EventListener
<
{
args
:
[
MediaStream
]
}
>
[]
}
= {}
Type declaration
Optional
audio
Output
Changed
?:
EventListener
<
{
args
:
[
]
}
>
[]
Optional
screen
Share
Stream
Stopped
?:
EventListener
<
{
args
:
[
]
}
>
[]
Optional
stream
Changed
?:
EventListener
<
{
args
:
[
MediaStream
]
}
>
[]
off
off
:
(
<
K
>
(
type
:
K
, callback
:
EventListener
<
LocalStreamEventMap
[
K
]
>
)
=>
void
)
= ...
Type declaration
<
K
>
(
type
:
K
, callback
:
EventListener
<
LocalStreamEventMap
[
K
]
>
)
:
void
Type Parameters
K
extends
keyof
LocalStreamEventMap
Parameters
type:
K
callback:
EventListener
<
LocalStreamEventMap
[
K
]
>
Returns
void
on
on
:
(
<
K
>
(
type
:
K
, callback
:
EventListener
<
LocalStreamEventMap
[
K
]
>
)
=>
(
(
)
=>
void
)
)
= ...
Type declaration
<
K
>
(
type
:
K
, callback
:
EventListener
<
LocalStreamEventMap
[
K
]
>
)
:
(
(
)
=>
void
)
Type Parameters
K
extends
keyof
LocalStreamEventMap
Parameters
type:
K
callback:
EventListener
<
LocalStreamEventMap
[
K
]
>
Returns
(
(
)
=>
void
)
(
)
:
void
Returns
void
Accessors
has
Permission
get
hasPermission
(
)
:
boolean
Returns
boolean
is
Screen
Sharing
get
isScreenSharing
(
)
:
boolean
Returns
boolean
local
Stream
get
localStream
(
)
:
MediaStream
Returns
MediaStream
media
Constraints
set
mediaConstraints
(
constraints
:
MediaConstraints
)
:
void
Parameters
constraints:
MediaConstraints
Returns
void
merged
Stream
get
mergedStream
(
)
:
MediaStream
Returns
MediaStream
screen
Stream
get
screenStream
(
)
:
MediaStream
Returns
MediaStream
Methods
Protected
_dispatch
Event
_dispatch
Event
<
K
>
(
type
:
K
,
...
args
:
ArgsType
<
LocalStreamEventMap
[
K
]
>
)
:
void
Type Parameters
K
extends
keyof
LocalStreamEventMap
Parameters
type:
K
Rest
...
args:
ArgsType
<
LocalStreamEventMap
[
K
]
>
Returns
void
add
Event
Listener
add
Event
Listener
<
K
>
(
type
:
K
, callback
:
EventListener
<
LocalStreamEventMap
[
K
]
>
)
:
(
(
)
=>
void
)
Type Parameters
K
extends
keyof
LocalStreamEventMap
Parameters
type:
K
callback:
EventListener
<
LocalStreamEventMap
[
K
]
>
Returns
(
(
)
=>
void
)
(
)
:
void
Returns
void
get
Local
Media
Stream
get
Local
Media
Stream
(
)
:
MediaStream
Returns
MediaStream
once
once
<
K
>
(
type
:
K
, givenCb
:
EventListener
<
LocalStreamEventMap
[
K
]
>
)
:
(
(
)
=>
void
)
Type Parameters
K
extends
keyof
LocalStreamEventMap
Parameters
type:
K
givenCb:
EventListener
<
LocalStreamEventMap
[
K
]
>
Returns
(
(
)
=>
void
)
(
)
:
void
Returns
void
release
release
(
)
:
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
<
LocalStreamEventMap
[
K
]
>
)
:
void
Type Parameters
K
extends
keyof
LocalStreamEventMap
Parameters
type:
K
callback:
EventListener
<
LocalStreamEventMap
[
K
]
>
Returns
void
revoke
Media
Access
revoke
Media
Access
(
)
:
void
Returns
void
stop
Screen
Share
stop
Screen
Share
(
)
:
void
Returns
void
use
Screen
Stream
use
Screen
Stream
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Modules
live-
js
<internal>
Local
Stream
constructor
_listeners
off
on
has
Permission
is
Screen
Sharing
local
Stream
media
Constraints
merged
Stream
screen
Stream
_dispatch
Event
add
Event
Listener
get
Local
Media
Stream
once
release
remove
All
Event
Listeners
remove
Event
Listener
revoke
Media
Access
stop
Screen
Share
use
Screen
Stream
Generated using
TypeDoc