Skip to content
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

Get rid of "hark" data channel #4068

Merged
merged 1 commit into from
Aug 28, 2020
Merged

Conversation

danxuliu
Copy link
Member

The Web UI sends speaking and stoppedSpeaking messages through the status and hark data channels, but the messages are simply ignored when received in the hark data channel. The Android and iOS apps do not even use the hark data channel, neither for sending nor for listening, so it can be fully removed.

Moreover, with latest Janus versions the peers receive all data channel messages in the JanusDataChannel data channel, no matter on which data channel they were originally sent. As the speaking and stoppedSpeaking messages are sent through the status data channel sending them too through the hark data channel caused the messages to be handled twice.

The Web UI sends "speaking" and "stoppedSpeaking" messages through the
"status" and "hark" data channels, but the messages are simply ignored
when received in the "hark" data channel. The Android and iOS apps do
not even use the "hark" data channel, neither for sending nor for
listening, so it can be fully removed.

Moreover, with latest Janus versions the peers receive all data channel
messages in the "JanusDataChannel" data channel, no matter on which data
channel they were originally sent. As the "speaking" and
"stoppedSpeaking" messages are sent through the "status" data channel
sending them too through the "hark" data channel caused the messages to
be handled twice.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@danxuliu danxuliu added 3. to review feature: WebRTC 🚡 WebRTC connection between browsers and/or mobile clients feature: call 📹 Voice and video calls labels Aug 27, 2020
@danxuliu danxuliu added this to the 💚 Next Major (20) milestone Aug 27, 2020
Copy link
Member

@Ivansss Ivansss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@nickvergessen nickvergessen merged commit 053c444 into master Aug 28, 2020
@nickvergessen nickvergessen deleted the get-rid-of-hark-data-channel branch August 28, 2020 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review feature: call 📹 Voice and video calls feature: WebRTC 🚡 WebRTC connection between browsers and/or mobile clients
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants