Skip to main content
Version: 0.0.x

Pause/Resume Video Stream

Whenver you wish to stop/resume downlaod stream(webcam, screenShare and mic) of participant, you can simply do it by using pause, resume methods.

Pause video stream

  • pause() method is used for pause stream(webcam, screenShare and mic) of a particular participant.
  btnPause!!.setOnClickListener { _: View? ->
for ((_, stream) in participant.streams) {
stream.pause()
}
}

Resume video stream

  • resume() method is used to resume stream(webcam, screenShare and mic) of a particular participant.
  btnResume!!.setOnClickListener { _: View? ->
for ((_, stream) in participant.streams) {
stream.resume()
}
}