sippo-sdk / com.quobis.sippo.sipposdk.conference / ConferenceRx

ConferenceRx

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.

Properties

invitationUpdated

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).

localVideoAdded

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.

participantAdded

val participantAdded: Observable<Participant>

Emits when a Participant is added to the conference.

participantRemoved

val participantRemoved: Observable<String>

Emits the participant's name when this one is removed from the conference.

remoteVideoAdded

val remoteVideoAdded: Observable<String>

Emits the participant's name when this one starts sharing video.

remoteVideoRemoved

val remoteVideoRemoved: Observable<String>

Emits the participant's name when this one stops sharing video.

state

val state: Observable<State>

Emits the conference state whenever it changes. When a subscriber is added, it will also emit the current conference state.

Functions

expelParticipant

fun expelParticipant(participant: Participant): Completable

Expels the specified participant from this conference.

getInvitations

fun getInvitations(): Single<List<Invitation>>

Fetches all the invitations made for the user to this conference.

getParticipants

fun getParticipants(): Single<List<Participant>>

Fetches the current conference participants, including the local user.

updateMedia

fun updateMedia(context: Context, mediaTypes: List<MediaType>): Completable

Updates the media types shared by the user, overridden the current ones.