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.

Functions

Link copied to clipboard
fun expelParticipant(participant: Participant): Completable

Expels the specified participant from this conference.

Link copied to clipboard
fun getInvitations(): Single<List<Invitation>>

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

Link copied to clipboard
fun getParticipants(): Single<List<Participant>>

Fetches the current conference participants, including the local user.

Link copied to clipboard
fun hold(): Completable

Hold the current conference.

Link copied to clipboard
fun transferConference(callee: Callee, mediaTypes: List<MediaType>? = null): Completable

Transfer the current conference to the specified callee.

Link copied to clipboard
fun unhold(): Completable

Unhold the current conference.

Link copied to clipboard
fun updateMedia(context: Context, mediaTypes: List<MediaType>): Completable

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

Properties

Link copied to clipboard
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).

Link copied to clipboard
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.

Link copied to clipboard
val participantAdded: Observable<Participant>

Emits when a Participant is added to the conference.

Link copied to clipboard
val participantHeld: Observable<String>
Link copied to clipboard
val participantRemoved: Observable<String>

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

Link copied to clipboard
val participantUnheld: Observable<String>
Link copied to clipboard
val remoteVideoAdded: Observable<String>

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

Link copied to clipboard
val remoteVideoRemoved: Observable<String>

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

Link copied to clipboard
val state: Observable<JanusConference.State>

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

Link copied to clipboard
val transferReceived: Observable<Transfer>

Emits when a new Transfer is received.