Extends
Methods
-
addTrack(track)
-
Adds a LocalTrack to the LocalParticipant.
Parameters:
Name Type Description trackLocalTrack The LocalTrack to be added
Fires:
Throws:
TypeErrorReturns:
- Type
- this
-
removeTrack(track [, stop])
-
Removes a LocalTrack from the LocalParticipant, if it was added.
Parameters:
Name Type Argument Default Description trackLocalTrack The LocalTrack to be removed
stopboolean <optional>
<nullable>
true Whether or not to call LocalTrack#stop
Fires:
Throws:
TypeErrorReturns:
- Type
- this
Events
-
disconnected
-
The Participant has disconnected.
Parameters:
Name Type Description participantParticipant The Participant that disconnected.
- Inherited From:
-
trackAdded
-
A Track was added by the Participant.
Parameters:
Name Type Description trackTrack The Track that was added
- Inherited From:
-
trackDimensionsChanged
-
One of the Participant's VideoTrack's dimensions changed.
Parameters:
Name Type Description trackVideoTrack The VideoTrack whose dimensions changed
- Inherited From:
-
trackDisabled
-
A Track was disabled by the Participant.
Parameters:
Name Type Description trackTrack The Track that was disabled
- Inherited From:
-
trackEnabled
-
A Track was enabled by the Participant.
Parameters:
Name Type Description trackTrack The Track that was enabled
- Inherited From:
-
trackRemoved
-
A Track was removed by the Participant.
Parameters:
Name Type Description trackTrack The Track that was removed
- Inherited From:
-
trackStarted
-
One of the Participant's Tracks started.
Parameters:
Name Type Description trackTrack The Track that started
- Inherited From:
-
trackStopped
-
One of the LocalParticipant's LocalTracks stopped, either because LocalTrack#stop was called or because the underlying MediaStreamTrack ended).
Parameters:
Name Type Description trackLocalTrack The LocalTrack that stopped