Skip to content

Conversation

@danxuliu
Copy link
Member

⚠️ ⚠️ ⚠️ WIP ⚠️ ⚠️ ⚠️

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]>
@danxuliu danxuliu added this to the 🍏 Next Major (33) milestone Nov 27, 2025
@danxuliu danxuliu added 2. developing bug feature: signaling 📶 Internal and external signaling backends feature: call 📹 Voice and video calls labels Nov 27, 2025
* 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
Copy link
Member

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]>
@danxuliu danxuliu force-pushed the fix-unneeded-messages-when-sending-initial-state branch from fec164d to 018e796 Compare November 27, 2025 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing bug feature: call 📹 Voice and video calls feature: signaling 📶 Internal and external signaling backends

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants