Skip to content

Commit

Permalink
Force plan-b semantics if Chrome is < 72
Browse files Browse the repository at this point in the history
  • Loading branch information
lminiero committed Feb 21, 2019
1 parent 53466e2 commit a728100
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion html/janus.js
Original file line number Diff line number Diff line change
Expand Up @@ -1604,7 +1604,10 @@ function Janus(gatewayCallbacks) {
// If we still need to create a PeerConnection, let's do that
if(!config.pc) {
var pc_config = {"iceServers": iceServers, "iceTransportPolicy": iceTransportPolicy, "bundlePolicy": bundlePolicy};
//~ var pc_constraints = {'mandatory': {'MozDontOfferDataChannel':true}};
if(Janus.webRTCAdapter.browserDetails.browser === "chrome" && Janus.webRTCAdapter.browserDetails.version < 72) {
// For Chrome versions before 72, we force a plan-b semantic
pc_config["sdpSemantics"] = "plan-b";
}
var pc_constraints = {
"optional": [{"DtlsSrtpKeyAgreement": true}]
};
Expand Down

0 comments on commit a728100

Please sign in to comment.