webrtc-rails 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 215f1c02e67355be3fa1efa76c4efb154b28dc26
|
4
|
+
data.tar.gz: 6210c0a0211b4045938764344b53c2a55b444223
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0af754cecd6702c804dd6b51c7be187c9304ba22342b03f24e34c73ba731ef3056eb9ca79f51ad7a448ba09aefb4741b69362ee4e17434823b790ee8f7214307
|
7
|
+
data.tar.gz: d6bdbee76f64ec0e85ddb4895c1e507fc148810c9e72b6b94d2ac203940319e649cca069b4ecbaccd8f76b599147416da73f3e0c4e116e226ba34b52b00bd00f
|
@@ -69,6 +69,10 @@ class @WebRTC
|
|
69
69
|
@setVideoEnabled(false)
|
70
70
|
|
71
71
|
setVideoEnabled: (enabled) ->
|
72
|
+
unless @_localStream?
|
73
|
+
@_wantSetVideoEnabled = true
|
74
|
+
@_videoEnabled = enabled
|
75
|
+
return
|
72
76
|
for track in @_localStream.getVideoTracks()
|
73
77
|
track.enabled = enabled
|
74
78
|
|
@@ -206,6 +210,8 @@ class @WebRTC
|
|
206
210
|
@localOutput.src = window.URL.createObjectURL(@_localStream)
|
207
211
|
@localOutput.play()
|
208
212
|
@localOutput.volume = 0
|
213
|
+
if @_wantSetVideoEnabled
|
214
|
+
@setVideoEnabled(@_videoEnabled)
|
209
215
|
(error) =>
|
210
216
|
console.error('An error occurred: [CODE ' + error.code + ']')
|
211
217
|
)
|
data/lib/webrtc_rails/version.rb
CHANGED