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: 419827da35a81ffe543136d565e7088ba90a3880
4
- data.tar.gz: de113a1dcd30ce90c3b4b3fefcfc9ed87943a92f
3
+ metadata.gz: 215f1c02e67355be3fa1efa76c4efb154b28dc26
4
+ data.tar.gz: 6210c0a0211b4045938764344b53c2a55b444223
5
5
  SHA512:
6
- metadata.gz: a71896b612d7dc16e3dd664f7ecc2a3e8446d9a63e6aaa91415d6e5e43fb73552e649c25e267a6d65bb0270c1407fa3f529ecf813e78ae6dde38cb72e6daaaae
7
- data.tar.gz: abbba85d848e9cd5bfdf9bed4de669acc63c9e3cd246f468f054d8c973916e42adf42d0e54d0dae82c4a66870792c88ecf90c68a3bb64a868b060ba4f3f2ecf5
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
  )
@@ -1,3 +1,3 @@
1
1
  module WebrtcRails
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webrtc-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Koji Murata