Adds config property for enabling firefox support
This commit is contained in:
parent
e2058edfdd
commit
edb89a65d5
4
app.js
4
app.js
@ -68,6 +68,10 @@ function init() {
|
|||||||
if (RTC === null) {
|
if (RTC === null) {
|
||||||
window.location.href = 'webrtcrequired.html';
|
window.location.href = 'webrtcrequired.html';
|
||||||
return;
|
return;
|
||||||
|
} else if (RTC.browser !== 'chrome' &&
|
||||||
|
config.enableFirefoxSupport !== true) {
|
||||||
|
window.location.href = 'chromeonly.html';
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
obtainAudioAndVideoPermissions(function (stream) {
|
obtainAudioAndVideoPermissions(function (stream) {
|
||||||
|
|||||||
@ -26,5 +26,7 @@ var config = {
|
|||||||
useBundle: true,
|
useBundle: true,
|
||||||
enableRecording: false,
|
enableRecording: false,
|
||||||
enableWelcomePage: true,
|
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.
|
||||||
};
|
};
|
||||||
|
|||||||
@ -454,7 +454,7 @@ ColibriFocus.prototype.createdConference = function (result) {
|
|||||||
'a=rtcp-fb:100 ccm fir\r\n' +
|
'a=rtcp-fb:100 ccm fir\r\n' +
|
||||||
'a=rtcp-fb:100 nack\r\n' +
|
'a=rtcp-fb:100 nack\r\n' +
|
||||||
'a=rtcp-fb:100 nack pli\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:116 red/90000\r\n' +
|
||||||
'a=rtpmap:117 ulpfec/90000\r\n' +
|
'a=rtpmap:117 ulpfec/90000\r\n' +
|
||||||
(config.useRtcpMux ? 'a=rtcp-mux\r\n' : '') +
|
(config.useRtcpMux ? 'a=rtcp-mux\r\n' : '') +
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user