-
Notifications
You must be signed in to change notification settings - Fork 503
Fix unneeded messages when sending initial state #16420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
danxuliu
commented
Nov 27, 2025
This will make possible to explicitly call it from other objects rather than having to emitting events in the WebRTC object. Signed-off-by: Daniel Calviño Sánchez <[email protected]>
This will make possible to decouple the messages sent for the initial media state from the messages sent when the media state changes during the call. Signed-off-by: Daniel Calviño Sánchez <[email protected]>
| * restarted with each new participant that joins. | ||
| * | ||
| * Similarly, in the case of signaling messages it is not possible either to | ||
| * know when the remote participants have "seen" the local participant and thus |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't you just listen on the join event and when a new session joins, send it the data? With that you should not need to sent it multiple times. If you received the join event for a session, it is connected and in the room (and will be able to receive events).
Currently only changes in the audio, speaking and video state are notified, although in the future it should also notify about the nick, the raised hand or any other state. Similarly, although right now it only notifies of changes in the state it will also take care of notifying other participants about the current state when they join the call (or the local participant joins). Signed-off-by: Daniel Calviño Sánchez <[email protected]>
This will make possible to use module augmentation to provide a TypeScript definition of the class that includes the methods added by the EmitterMixin. Signed-off-by: Daniel Calviño Sánchez <[email protected]>
This will make possible to explicitly call them from other objects rather than having to emitting events in the WebRTC object. Signed-off-by: Daniel Calviño Sánchez <[email protected]>
Besides changing where they are sent in the code the new code also reduces the number of signaling messages, as now it sends it directly to each participant that joins rather than to every participant that was in the call when a participant established a connection (or joined, if that participant was not a publisher). Signed-off-by: Daniel Calviño Sánchez <[email protected]>
Signed-off-by: Daniel Calviño Sánchez <[email protected]>
Signed-off-by: Daniel Calviño Sánchez <[email protected]>
Signed-off-by: Daniel Calviño Sánchez <[email protected]>
fec164d to
018e796
Compare