Skip to main content

LocalParticipant ⇐
Participant

LocalParticipant represents a single local Participant in the ProCONF room.

Kind: global class
Extends:

Participant

Properties

NameTypeDescription
identitystringThe identity of the participant.
audioTracksMap.<Track.ID, LocalTrack>The local audio tracks of the local participant.
videoTracksMap.<Track.ID, LocalTrack>The local video tracks of the local participant.
dataTracksMap.<Track.ID, LocalTrack>The local data tracks of the local participant.
tracksMap.<Track.ID, LocalTrack>The local tracks of the local participant.

localParticipant.publishTrack(track) ⇒ Promise.<(Track|null)>

Publishes local participant's track to the room.

Kind: instance method of LocalParticipant
Returns: Promise.<(Track|null)> - Promise that resolves when the track is published or null.
Throws:

  • error if administrator has disabled videoCall config from backend.

Fulfil: void
Reject: ProConfError On publish track error

ParamTypeDescription
trackLocalTrack | MediaStreamTrackThe LocalTrack or MediaStreamTrack to publish.

localParticipant.unpublishTrack(track) ⇒ Promise.<(Track|null)>

Unpublishes a local participant's track from the room.

Kind: instance method of LocalParticipant
Returns: Promise.<(Track|null)> - Promise that resolves when the track is unpublished or null.

ParamTypeDescription
trackTrack | LocalTrack | MediaStreamTrack | DataTrack | nullThe LocalTrack or MediaStreamTrack or DataTrack to unpublish.

localParticipant.unpublishAll() ⇒ Promise

Unpublish all tracks from the participant. Called in 'room failed' flow

Kind: instance method of LocalParticipant
Returns: Promise - Promise that resolves when all tracks are unpublished.
Fulfil: any
Reject: void

LocalParticipant.Events

Kind: static typedef of LocalParticipant
Properties

NameTypeDescription
trackPublishedTrackPublishedEventTrack published event
trackUnpublishedTrackUnpublishedEventTrack unpublished event