Loading packages/rocketchat-webrtc/WebRTCClass.coffee +6 −3 Original line number Diff line number Diff line Loading @@ -228,10 +228,10 @@ class WebRTCClass if @active isnt true or @monitor is true or @remoteMonitoring is true then return remoteConnections = [] for id, peerConnections of @peerConnections for id, peerConnection of @peerConnections remoteConnections.push id: id media: peerConnections.remoteMedia media: peerConnection.remoteMedia @transport.sendStatus media: @media Loading Loading @@ -340,6 +340,8 @@ class WebRTCClass stream.addTrack(peer.stream.getAudioTracks()[0]) stream.volume = volume this.audioContext = audioContext onSuccess(stream) navigator.getUserMedia media, onSuccessLocal, onError Loading Loading @@ -462,6 +464,7 @@ class WebRTCClass stopAllPeerConnections: -> for id, peerConnection of @peerConnections @stopPeerConnection id window.audioContext.close() setAudioEnabled: (enabled=true) -> if @localStream? Loading Loading
packages/rocketchat-webrtc/WebRTCClass.coffee +6 −3 Original line number Diff line number Diff line Loading @@ -228,10 +228,10 @@ class WebRTCClass if @active isnt true or @monitor is true or @remoteMonitoring is true then return remoteConnections = [] for id, peerConnections of @peerConnections for id, peerConnection of @peerConnections remoteConnections.push id: id media: peerConnections.remoteMedia media: peerConnection.remoteMedia @transport.sendStatus media: @media Loading Loading @@ -340,6 +340,8 @@ class WebRTCClass stream.addTrack(peer.stream.getAudioTracks()[0]) stream.volume = volume this.audioContext = audioContext onSuccess(stream) navigator.getUserMedia media, onSuccessLocal, onError Loading Loading @@ -462,6 +464,7 @@ class WebRTCClass stopAllPeerConnections: -> for id, peerConnection of @peerConnections @stopPeerConnection id window.audioContext.close() setAudioEnabled: (enabled=true) -> if @localStream? Loading