mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Allow audio/video to be disabled via config
This commit is contained in:
@@ -15,8 +15,9 @@ class MediaConnection
|
||||
constructor: (@local, @remote, {@isLeader}={}) ->
|
||||
|
||||
start: ->
|
||||
constraints = {video: true, audio: true}
|
||||
navigator.webkitGetUserMedia constraints, @onUserMediaAvailable, @onUserMediaUnavailable
|
||||
video = config.get('collaboration.enableVideo') ? true
|
||||
audio = config.get('collaboration.enableAudio') ? true
|
||||
navigator.webkitGetUserMedia({video, audio}, @onUserMediaAvailable, @onUserMediaUnavailable)
|
||||
|
||||
waitForStream: (callback) ->
|
||||
if @stream
|
||||
|
||||
Reference in New Issue
Block a user