Skip to content

Commit

Permalink
feat(webrtc): Ignore label of data channel when processing messages.
Browse files Browse the repository at this point in the history
This is necessary for support of Janus 1.x which will use the

(random) id of the publisher that sent the message as label.

Signed-off-by: Joachim Bauch <bauch@struktur.de>

[skip ci]
  • Loading branch information
fancycode authored and backportbot[bot] committed Feb 28, 2024
1 parent ffdc7e9 commit c0dfb5e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/utils/webrtc/models/CallParticipantModel.js
Expand Up @@ -226,10 +226,6 @@ CallParticipantModel.prototype = {
return
}

if (label !== 'status' && label !== 'JanusDataChannel') {
return
}

if (data.type === 'speaking') {
this.set('speaking', true)
} else if (data.type === 'stoppedSpeaking') {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/webrtc/webrtc.js
Expand Up @@ -1608,7 +1608,7 @@ export default function initWebRtc(signaling, _callParticipantCollection, _local
console.debug('Unknown message type %s from %s datachannel', data.type, label, data, peer.id, peer)
}
} else {
console.debug('Unknown message from %s datachannel', label, data, peer.id, peer)
console.debug('Unknown message type %s from %s datachannel', data.type, label, data, peer.id, peer)
}
})

Expand Down

0 comments on commit c0dfb5e

Please sign in to comment.