Hello,
For our video platform, we are using Janus 0.10.9 as SFU with the videoroom plugin and the official Janus.js package. In a videoroom, a user wants to mute and unmute its own video stream, falling back to a placeholder in case of being muted. We are using data channels as a way of signaling these events to all participants.
Question 1
Muting/unmuting video is currently implemented via "createOffer", as seen in this
example gist. Is this the intended way of handling video mute/unmute, so that a potential webcam indicator turns off/on correctly?
Question 2
In our current videochat application, the "onremotestream" callback is called multiple times when someone joins an existing videoroom session. In fact, the number of times the callback is called depends on whether:
- I am a publisher and another user comes in and subscribes to my feed
- I join an existing videoroom with one publisher and subscribe to his feed
In the first case, "onremotestream" is called four times. In the latter case, its called five times.
Can you give me any pointers as to why "onremotestream" is called several times (I read about once per audio/video track, but that should be two times)?
Also, are there any obvious explanations for different numbers of callback invocations?
Thank you very much for your help
Kind regards,
Maximilian