Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/utils/webrtc/simplewebrtc/peer.js
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,19 @@ Peer.prototype.setRemoteVideoBlocked = function(remoteVideoBlocked) {
return
}

// If the HPB is used the remote video can be blocked through a standard
// WebRTC renegotiation or by toggling the video directly in Janus. The last
// one is preferred, as it requires less signaling messages to be exchanged
// and, besides that, the browser starts to decode the video faster once
// enabled again.
if (this.receiverOnly && this.parent.config.connection.hasFeature('update-sdp')) {
this.send('selectStream', {
video: !remoteVideoBlocked,
})

return
}

this._remoteVideoShouldBeBlocked = remoteVideoBlocked

// The "negotiationneeded" event is emitted if needed based on the direction
Expand Down