1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-12-25 08:58:53 -05:00

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