preview

fun preview(config: HMSConfig, listener: HMSPreviewListener)

Begin a preview so that the local peer's audio and video can be displayed to them before they join a call.

Parameters

config

the details of the call they want to join. This may affect whether they are allowed to publish audio or video at all.

listener

information on the room and the peer's own audio and video tracks will be sent here.


fun preview(forRole: HMSRole, rolePreviewListener: RolePreviewListener)