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

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 localVideoRemoved: Observable<Boolean>

Emits true when the local video is no longer shared. It will not emit any value when the video is 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>

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

Link copied to clipboard
val participantRemoved: Observable<String>

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

Link copied to clipboard
val participantUnheld: Observable<String>

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

Link copied to clipboard
val remoteVideoAdded: Observable<Contact>

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

Link copied to clipboard
val remoteVideoRemoved: Observable<Contact>

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.

Functions

Link copied to clipboard
fun acceptAttendedTransfer(): Completable

Accepts an attended transfer in progress.

Link copied to clipboard
fun cancelAttendedTransfer(): Completable

Cancels an attended transfer in progress.

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

Cancels the invitation made for the user to the specified participant.

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

Expels the specified participant from this conference.

Link copied to clipboard

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

Link copied to clipboard

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 sendDtmf(digit: Dtmf): Completable

Sends the provided digit tone to the current Conference.

Link copied to clipboard
fun transferConference(callee: String, 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.