onPreview

abstract fun onPreview(room: HMSRoom, localTracks: Array<HMSTrack>)

If the generation of a preview was successful, information about the room joined and the tracks will be sent.

Parameters

room

details of the room the peer requested to join.

localTracks

all local video and audio tracks that the peer might want to review before joining.