Skip to content

Commit

Permalink
Fixed inconsistency of mySdp in janus.js (fixes #2379)
Browse files Browse the repository at this point in the history
  • Loading branch information
lminiero committed Dec 11, 2020
1 parent 38543d9 commit 33a72d8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions html/janus.js
Original file line number Diff line number Diff line change
Expand Up @@ -2796,7 +2796,10 @@ function Janus(gatewayCallbacks) {
Janus.warn("simulcast=true, but this is not Chrome nor Firefox, ignoring");
}
}
config.mySdp = offer.sdp;
config.mySdp = {
type: "offer",
sdp: offer.sdp
};
config.pc.setLocalDescription(offer)
.catch(callbacks.error);
config.mediaConstraints = mediaConstraints;
Expand Down Expand Up @@ -3037,7 +3040,10 @@ function Janus(gatewayCallbacks) {
Janus.warn("simulcast=true, but this is not Chrome nor Firefox, ignoring");
}
}
config.mySdp = answer.sdp;
config.mySdp = {
type: "answer",
sdp: answer.sdp
};
config.pc.setLocalDescription(answer)
.catch(callbacks.error);
config.mediaConstraints = mediaConstraints;
Expand Down

0 comments on commit 33a72d8

Please sign in to comment.