detach

fun detach()

This method is made available to detach the MediaStreamVideoView from the media stream when entering the background (see attach). Called automatically when the session ends.

Example:


    fun pauseVideoRendering() {
       room()?.run {
          localParticipant().detach()
          remoteParticipants().forEach { p -> p.detach() }
       }
    }