Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2022-02-16 15:24:33 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2022-05-02 06:05:50 +0300
commitef40d4bb918f49f045e4ee3102889b77c7fb10ee (patch)
tree19167b01db3f0cdeb4ac1c9ca7e2a5be7bbf203d
parentd9909cfb4d8200a0a1bfdbc3ad2419c23c83cb0e (diff)
Fix creating offers again in Firefox with disabled media and simulcastuse-renegotiations-to-update-publisher-connections
When a media track is disabled the track is nullified in the sender, so this needs to be taken into account when creating a new offer on an existing connection with disabled media (for example, to add a video track to a connection with an active but disabled audio track). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
-rw-r--r--src/utils/webrtc/simplewebrtc/peer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/webrtc/simplewebrtc/peer.js b/src/utils/webrtc/simplewebrtc/peer.js
index 6b0a987a8..3acaf563e 100644
--- a/src/utils/webrtc/simplewebrtc/peer.js
+++ b/src/utils/webrtc/simplewebrtc/peer.js
@@ -357,7 +357,7 @@ Peer.prototype.offer = function(options) {
if (sendVideo && this.enableSimulcast && adapter.browserDetails.browser === 'firefox') {
console.debug('Enabling Simulcasting for Firefox (RID)')
const sender = this.pc.getSenders().find(function(s) {
- return s.track.kind === 'video'
+ return s.track && s.track.kind === 'video'
})
if (sender) {
let parameters = sender.getParameters()