class ConferenceRx
Reactive API of Conference.
This class replicates some of the methods included in Conference but using Rx types as return values instead of callbacks. It also exposes the events associated with one particular conference using Rx observables.
val invitationUpdated: Observable<Invitation>
Emits when an Invitation is updated. It will emit whenever an invite or cancel request is processed (in these cases,the state will be Pending or Canceled respectively) and when the invitation result is received (the state will be Accepted or Rejected depending on the response). |
|
val localVideoAdded: Observable<Boolean>
Emits true when the local video is shared. It will not emit any value when the video is no longer shared. |
|
val participantAdded: Observable<Participant>
Emits when a Participant is added to the conference. |
|
val participantRemoved: Observable<String>
Emits the participant's name when this one is removed from the conference. |
|
val remoteVideoAdded: Observable<String>
Emits the participant's name when this one starts sharing video. |
|
val remoteVideoRemoved: Observable<String>
Emits the participant's name when this one stops sharing video. |
|
val state: Observable<State>
Emits the conference state whenever it changes. When a subscriber is added, it will also emit the current conference state. |
fun expelParticipant(participant: Participant): Completable
Expels the specified participant from this conference. |
|
fun getInvitations(): Single<List<Invitation>>
Fetches all the invitations made for the user to this conference. |
|
fun getParticipants(): Single<List<Participant>>
Fetches the current conference participants, including the local user. |
|
fun updateMedia(context: Context, mediaTypes: List<MediaType>): Completable
Updates the media types shared by the user, overridden the current ones. |