allow config.resolution for specifying resolution

This commit is contained in:
Philipp Hancke 2014-01-27 22:20:19 +01:00
parent 3e9bd580cd
commit 778e6e0137
1 changed files with 1 additions and 1 deletions

2
app.js
View File

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