Redirects to unsupported browser page for FF < 39.
This commit is contained in:
parent
09f53c6b21
commit
66a53c7dc0
File diff suppressed because it is too large
Load Diff
|
@ -130,7 +130,7 @@ function RTCUtils(RTCService)
|
||||||
if (navigator.mozGetUserMedia) {
|
if (navigator.mozGetUserMedia) {
|
||||||
console.log('This appears to be Firefox');
|
console.log('This appears to be Firefox');
|
||||||
var version = parseInt(navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1], 10);
|
var version = parseInt(navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1], 10);
|
||||||
if (version >= 22) {
|
if (version >= 39) {
|
||||||
this.peerconnection = mozRTCPeerConnection;
|
this.peerconnection = mozRTCPeerConnection;
|
||||||
this.browser = RTCBrowserType.RTC_BROWSER_FIREFOX;
|
this.browser = RTCBrowserType.RTC_BROWSER_FIREFOX;
|
||||||
this.getUserMedia = navigator.mozGetUserMedia.bind(navigator);
|
this.getUserMedia = navigator.mozGetUserMedia.bind(navigator);
|
||||||
|
@ -162,7 +162,11 @@ function RTCUtils(RTCService)
|
||||||
};
|
};
|
||||||
RTCSessionDescription = mozRTCSessionDescription;
|
RTCSessionDescription = mozRTCSessionDescription;
|
||||||
RTCIceCandidate = mozRTCIceCandidate;
|
RTCIceCandidate = mozRTCIceCandidate;
|
||||||
|
} else {
|
||||||
|
window.location.href = 'unsupported_browser.html';
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (navigator.webkitGetUserMedia) {
|
} else if (navigator.webkitGetUserMedia) {
|
||||||
console.log('This appears to be Chrome');
|
console.log('This appears to be Chrome');
|
||||||
this.peerconnection = webkitRTCPeerConnection;
|
this.peerconnection = webkitRTCPeerConnection;
|
||||||
|
@ -205,13 +209,6 @@ function RTCUtils(RTCService)
|
||||||
window.location.href = 'unsupported_browser.html';
|
window.location.href = 'unsupported_browser.html';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.browser !== RTCBrowserType.RTC_BROWSER_CHROME &&
|
|
||||||
config.enableFirefoxSupport !== true) {
|
|
||||||
window.location.href = 'unsupported_browser.html';
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue