Only start local media if we can

This commit is contained in:
Lance Stout 2013-12-16 22:22:53 -08:00
parent 1af9db8c4b
commit ff4dc6cf10
2 changed files with 4 additions and 2 deletions

View File

@ -63,7 +63,9 @@ module.exports = {
self.api = window.client = StanzaIO.createClient(config);
xmppEventHandlers(self.api, self);
self.api.jingle.startLocalMedia();
if (self.api.jingle.capabilities.length > 1) {
self.api.jingle.startLocalMedia();
}
self.api.once('session:started', function () {
app.state.hasConnected = true;

View File

@ -1,5 +1,5 @@
CACHE MANIFEST
# 0.0.1 1387260413951
# 0.0.1 1387261368693
CACHE:
/app.js