Преглед изворни кода

allow config.resolution for specifying resolution

j8
Philipp Hancke пре 12 година
родитељ
комит
778e6e0137
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1
    1
      app.js

+ 1
- 1
app.js Прегледај датотеку

@@ -46,7 +46,7 @@ function init() {
46 46
             if (RTC.browser == 'firefox') {
47 47
                 getUserMediaWithConstraints(['audio']);
48 48
             } else {
49
-                getUserMediaWithConstraints(['audio', 'video'], '360');
49
+                getUserMediaWithConstraints(['audio', 'video'], config.resolution || '360');
50 50
             }
51 51
             document.getElementById('connect').disabled = true;
52 52
         } else {

Loading…
Откажи
Сачувај