invite Participant
fun inviteParticipant(callee: String, context: Context, requestedMediaTypes: List<MediaType> = listOf(MediaType.AUDIO, MediaType.VIDEO), joinOnAnswer: Boolean = true, onCompletion: (Either<QssInvitation.State, ConferenceError>) -> Unit)
Invites a new participant to this conference.
Parameters
callee
Participant who is being invited.
context
Context used to capture local media (needed in case joinOnAnswer is enabled).
requested Media Types
List of media types that the caller wants the participant to share. The participant can accept them or provide another ones when joining or updating the conference. By default, the requested media types are audio and video.
join On Answer
True if the user wants to join the conference when the invitation is accepted. The media types shared by the user will be the same as the requested ones. By default, the value is true.
on Completion
Callback that will be invoked when the request is completed. It will receive the state of the invite QssInvitation.State in case of success or a ConferenceError otherwise.