Add additional Firefox streaming workaround
This commit is contained in:
parent
eee6053293
commit
1749afc8e2
|
@ -536,8 +536,12 @@ async function attachVideo(id) {
|
||||||
if (jsep !== undefined && jsep !== null) {
|
if (jsep !== undefined && jsep !== null) {
|
||||||
Janus.debug("Handling SDP as well...");
|
Janus.debug("Handling SDP as well...");
|
||||||
Janus.debug(jsep);
|
Janus.debug(jsep);
|
||||||
if ((navigator.userAgent.toLowerCase().indexOf('firefox') > -1) && (jsep["sdp"].includes("420029"))) { //because firefox devs are stubborn
|
if (navigator.userAgent.toLowerCase().indexOf('firefox') > -1) {
|
||||||
jsep["sdp"] = jsep["sdp"].replace("420029", "42e01f");
|
if (jsep["sdp"].includes("420029")) {
|
||||||
|
jsep["sdp"] = jsep["sdp"].replace("420029", "42e01f");
|
||||||
|
} else if (jsep["sdp"].includes("4d002a")) {
|
||||||
|
jsep["sdp"] = jsep["sdp"].replace("4d002a", "4de02a");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Offer from the plugin, let's answer
|
// Offer from the plugin, let's answer
|
||||||
streaming[id].createAnswer({
|
streaming[id].createAnswer({
|
||||||
|
|
Loading…
Reference in New Issue