subscribeToVideo

abstract fun subscribeToVideo(room: IRainbowRoom?, publisher: ConferenceParticipant?, multiVideoQuality: MultiVideoQuality?, activeSpeaker: Boolean, webinarSharing: Boolean, listener: RainbowListener<Unit, ConferenceRepository.SubscribeParticipantVideoError>? = null)

when a conference is started, it is possible to subscribe to video using this method

Parameters

room

IRainbowRoom (bubble) associated to the conference

publisher

ConferenceParticipant the user that you want to subscribe the video

multiVideoQuality

MultiVideoQuality level quality requested for the video (LOW, MEDIUM, HIGH). Can be null if publisher isn't in multi-video quality mode

activeSpeaker

boolean subscribe with active speaker mode (the server change the video publisher when a user talk, publisher param is only used for the first video flux)

listener

RainbowListenerSubscribeParticipantVideoError> callback (onSuccess, onError)