Jump to content
  • 0

toggleVideo not working as I expected?


WebinarKit
 Share

Question

Hi there, I'm working with the javascript sdk and trying to use the toggleVideo function. I'm just trying to toggle on/off the video from the publisher side (whenever the user wants to mute their camera).

I call toggleVideo with the publisher stream id, track id (also set to the publisher stream id as per documentation), and enabled set to false. But nothing changes? The video still comes through on the subscriber side?

What am I missing?

Thanks

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
  • 0

Hi, I'm aware of these methods but their behavior is not exactly what I'm looking for. For example, if the user is sharing their screen, turnOnLocalCamera/turnOffLocalCamera will not result in the behavior I want (toggling the screen share).

Is there not a way to do this? I'm confused as to what the toggleVideo method is supposed to do?

Link to comment
Share on other sites

 Share

×
×
  • Create New...