diff --git a/js/app.js b/js/app.js index 38f1f3093..8937f1c56 100644 --- a/js/app.js +++ b/js/app.js @@ -787,23 +787,14 @@ localMediaChannel.trigger('startLocalMedia'); }, - startWithoutLocalMedia: function(isAudioEnabled, isVideoEnabled) { + startWithoutLocalMedia: function(configuration) { if (this.callbackAfterMedia) { this.callbackAfterMedia(null); this.callbackAfterMedia = null; } $('.videoView').removeClass('hidden'); - - this.disableAudio(); - if (!isAudioEnabled) { - this.hasNoAudio(); - } - - this.disableVideo(); - if (!isVideoEnabled) { - this.hasNoVideo(); - } + this.initAudioVideoSettings(configuration); if (OCA.SpreedMe.webrtc.capabilities.support) { localMediaChannel.trigger('startWithoutLocalMedia'); diff --git a/js/webrtc.js b/js/webrtc.js index bef6bd8f3..4534fe42b 100644 --- a/js/webrtc.js +++ b/js/webrtc.js @@ -1024,7 +1024,7 @@ var spreedPeerConnectionTable = []; console.log('Error while accessing microphone & camera: ', error.message || error.name); } - app.startWithoutLocalMedia(webrtc.webrtc.isAudioEnabled(), webrtc.webrtc.isVideoEnabled()); + app.startWithoutLocalMedia({audio: false, video: false}); OC.Notification.show(message, { type: 'error', timeout: 15,