attach
fun attach()
Content copied to clipboard
This method is made available to re-attach the rendering surface to the media stream after re-entering the foreground (see: detach). Attaches the media stream video to the MediaStreamVideoView set in setVideoView. The media stream will be automatically updated as necessary.
Example:
fun resumeVideoRendering() {
room()?.run {
localParticipant().attach()
remoteParticipants().forEach { p -> p.attach() }
}
}