[Pkg-voip-commits] [janus] 17/163: Fixed SDP munging when simulcasting
Jonas Smedegaard
dr at jones.dk
Sat Oct 28 01:22:04 UTC 2017
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag debian/0.2.5-1
in repository janus.
commit ad429823fcc3f3798ac4426096321621b3fc75b4
Author: Lorenzo Miniero <lminiero at gmail.com>
Date: Fri Jul 7 19:15:12 2017 +0200
Fixed SDP munging when simulcasting
---
html/janus.js | 4 +++-
html/janus.nojquery.js | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/html/janus.js b/html/janus.js
index 53c56d0..c7dda70 100644
--- a/html/janus.js
+++ b/html/janus.js
@@ -1876,7 +1876,9 @@ function Janus(gatewayCallbacks) {
}
}
lines.splice(insertAt, 0, 'a=ssrc-group:SIM ' + ssrc[0] + ' ' + ssrc[1] + ' ' + ssrc[2]);
- offer.sdp = lines.join("\r\n") + "\r\n";
+ offer.sdp = lines.join("\r\n");
+ if(!offer.sdp.endsWith("\r\n"))
+ offer.sdp += "\r\n";
} else if(adapter.browserDetails.browser !== "firefox") {
Janus.warn("simulcast=true, but this is not Chrome nor Firefox, ignoring");
}
diff --git a/html/janus.nojquery.js b/html/janus.nojquery.js
index 7b313d2..23ba62e 100644
--- a/html/janus.nojquery.js
+++ b/html/janus.nojquery.js
@@ -1927,7 +1927,9 @@ function Janus(gatewayCallbacks) {
}
}
lines.splice(insertAt, 0, 'a=ssrc-group:SIM ' + ssrc[0] + ' ' + ssrc[1] + ' ' + ssrc[2]);
- offer.sdp = lines.join("\r\n") + "\r\n";
+ offer.sdp = lines.join("\r\n");
+ if(!offer.sdp.endsWith("\r\n"))
+ offer.sdp += "\r\n";
} else if(adapter.browserDetails.browser !== "firefox") {
Janus.warn("simulcast=true, but this is not Chrome nor Firefox, ignoring");
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/janus.git
More information about the Pkg-voip-commits
mailing list