File

projects/openvidu-angular/src/lib/services/participant/participant.service.ts

Index

Properties
Methods

Methods

amIModerator
amIModerator()
Returns : boolean
getLocalParticipant
getLocalParticipant()
getMyRole
getMyRole()
Returns : string
getRemoteParticipants
getRemoteParticipants()
isMyAudioActive
isMyAudioActive()
Returns : boolean
isMyVideoActive
isMyVideoActive()
Returns : boolean
publishAudio
publishAudio(publish: boolean)

Publish or unpublish the local participant audio stream (if available). See openvidu-browser publishAudio.

Parameters :
Name Type Optional
publish boolean No
Returns : void
Async publishVideo
publishVideo(publish: boolean)

Publish or unpublish the local participant video stream (if available). It hides the camera stream (while muted) if screen is sharing. See openvidu-browser publishVideo

Parameters :
Name Type Optional
publish boolean No
Returns : Promise<void>
Async toggleScreenshare
toggleScreenshare()

Share or unshare the local participant screen. Hide the camera stream (while muted) when screen is sharing.

Returns : any
updateLocalParticipant
updateLocalParticipant()

Force to update the local participant object and fire a new localParticipantObs Observable event.

Returns : void
updateRemoteParticipants
updateRemoteParticipants()

Force to update the remote participants object and fire a new remoteParticipantsObs Observable event.

Returns : void

Properties

localParticipantObs
Type : Observable<ParticipantAbstractModel>

Local participant Observable which pushes the local participant object in every update.

remoteParticipantsObs
Type : Observable<ParticipantAbstractModel[]>

Remote participants Observable which pushes the remote participants array in every update.

results matching ""

    No results matching ""