Переглянути джерело

Adds config property for enabling firefox support

master
hristoterezov 10 роки тому
джерело
коміт
edb89a65d5
3 змінених файлів з 8 додано та 2 видалено
  1. 4
    0
      app.js
  2. 3
    1
      config.js
  3. 1
    1
      libs/colibri/colibri.focus.js

+ 4
- 0
app.js Переглянути файл

68
     if (RTC === null) {
68
     if (RTC === null) {
69
         window.location.href = 'webrtcrequired.html';
69
         window.location.href = 'webrtcrequired.html';
70
         return;
70
         return;
71
+    } else if (RTC.browser !== 'chrome' &&
72
+        config.enableFirefoxSupport !== true) {
73
+        window.location.href = 'chromeonly.html';
74
+        return;
71
     }
75
     }
72
 
76
 
73
     obtainAudioAndVideoPermissions(function (stream) {
77
     obtainAudioAndVideoPermissions(function (stream) {

+ 3
- 1
config.js Переглянути файл

26
     useBundle: true,
26
     useBundle: true,
27
     enableRecording: false,
27
     enableRecording: false,
28
     enableWelcomePage: true,
28
     enableWelcomePage: true,
29
-    enableSimulcast: false
29
+    enableSimulcast: false,
30
+    enableFirefoxSupport: false //firefox support is still experimental, only one-to-one conferences with chrome focus
31
+    // will work when simulcast, bundle, mux, lastN and SCTP are disabled.
30
 };
32
 };

+ 1
- 1
libs/colibri/colibri.focus.js Переглянути файл

454
         'a=rtcp-fb:100 ccm fir\r\n' +
454
         'a=rtcp-fb:100 ccm fir\r\n' +
455
         'a=rtcp-fb:100 nack\r\n' +
455
         'a=rtcp-fb:100 nack\r\n' +
456
         'a=rtcp-fb:100 nack pli\r\n' +
456
         'a=rtcp-fb:100 nack pli\r\n' +
457
-//        'a=rtcp-fb:100 goog-remb\r\n' +
457
+            (config.enableFirefoxSupport? "" : 'a=rtcp-fb:100 goog-remb\r\n') +
458
         'a=rtpmap:116 red/90000\r\n' +
458
         'a=rtpmap:116 red/90000\r\n' +
459
         'a=rtpmap:117 ulpfec/90000\r\n' +
459
         'a=rtpmap:117 ulpfec/90000\r\n' +
460
         (config.useRtcpMux ? 'a=rtcp-mux\r\n' : '') +
460
         (config.useRtcpMux ? 'a=rtcp-mux\r\n' : '') +

Завантаження…
Відмінити
Зберегти