Adds config property for enabling firefox support

This commit is contained in:
hristoterezov 2014-12-01 19:59:51 +02:00
parent e2058edfdd
commit edb89a65d5
3 changed files with 8 additions and 2 deletions

4
app.js
View File

@ -68,6 +68,10 @@ function init() {
if (RTC === null) {
window.location.href = 'webrtcrequired.html';
return;
} else if (RTC.browser !== 'chrome' &&
config.enableFirefoxSupport !== true) {
window.location.href = 'chromeonly.html';
return;
}
obtainAudioAndVideoPermissions(function (stream) {

View File

@ -26,5 +26,7 @@ var config = {
useBundle: true,
enableRecording: false,
enableWelcomePage: true,
enableSimulcast: false
enableSimulcast: false,
enableFirefoxSupport: false //firefox support is still experimental, only one-to-one conferences with chrome focus
// will work when simulcast, bundle, mux, lastN and SCTP are disabled.
};

View File

@ -454,7 +454,7 @@ ColibriFocus.prototype.createdConference = function (result) {
'a=rtcp-fb:100 ccm fir\r\n' +
'a=rtcp-fb:100 nack\r\n' +
'a=rtcp-fb:100 nack pli\r\n' +
// 'a=rtcp-fb:100 goog-remb\r\n' +
(config.enableFirefoxSupport? "" : 'a=rtcp-fb:100 goog-remb\r\n') +
'a=rtpmap:116 red/90000\r\n' +
'a=rtpmap:117 ulpfec/90000\r\n' +
(config.useRtcpMux ? 'a=rtcp-mux\r\n' : '') +