projects/openvidu-angular/src/lib/services/participant/participant.service.ts
Properties |
Methods |
amIModerator |
amIModerator()
|
Returns :
boolean
|
getLocalParticipant |
getLocalParticipant()
|
Returns :
ParticipantAbstractModel
|
getMyRole |
getMyRole()
|
Returns :
string
|
getRemoteParticipants |
getRemoteParticipants()
|
Returns :
ParticipantAbstractModel[]
|
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 :
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 :
Returns :
Promise<void>
|
Async replaceVideoTrack | ||||||
replaceVideoTrack(device: CustomDevice)
|
||||||
Parameters :
Returns :
any
|
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
|
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. |