webrtc-rails 0.1.2 → 0.1.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: 8c0b6f6041f627cd8c936ca0b81af0199dc41c03
4
- data.tar.gz: 7f794a8d1d5d3ce91b43d6c0fc0b4dc7ba77be0f
3
+ metadata.gz: ea3899b1737ae40cfd676683e307ea0f758630a7
4
+ data.tar.gz: 56c8208113bf3457dd645a641ee21e363d1eecf4
5
5
  SHA512:
6
- metadata.gz: 2665d656620c6f168325ce82f03dddc2073ff2976ca7d9d959d6f401a758397be83a5ea56b89aa8933ad61ddd15d9348c6828d83f1eef29fbd6d27f0b84f2ab2
7
- data.tar.gz: d91a50fd716b32a8304895be64f173d80d9cbbc1b7e5e619d57f76c1bb78fa65c6e7ce6a1d6b9ea240720f0abb32c3491efd54ae38e0d17918b7b912d5f3c182
6
+ metadata.gz: 2f7a2ce233587e753079b123dedef3dd4da975f4660bc14cdb4d5345dc1c59b8778e051adf20bbf2e77a10bad381b035f3ae10355ee554faab4856e3c6de9c28
7
+ data.tar.gz: 473f32d02bbe541709a7968aa4ea389edc3ebc9029e8e1ef876a47e63dd8a5afa8c0bc639f2f5750ae79aae01225857604e303acdefcae2e7434d3748155d5bc
@@ -7,11 +7,11 @@ class @WebRTC
7
7
  onWebRTCReconnected: ->
8
8
  onWebRTCHangedUp: ->
9
9
 
10
- constructor: (userToken, @localOutput, @remoteOutput) ->
10
+ constructor: (url, userToken, @localOutput, @remoteOutput) ->
11
11
  @localOutput = @localOutput[0] || @localOutput
12
12
  @remoteOutput = @remoteOutput[0] || @remoteOutput
13
13
  @_startOutput(@localOutput.tagName.toUpperCase() == 'VIDEO')
14
- @_webSocketInitialize(userToken)
14
+ @_webSocketInitialize(url, userToken)
15
15
  @_addNetworkEventListener()
16
16
 
17
17
  connect: (remoteUserID) ->
@@ -50,8 +50,8 @@ class @WebRTC
50
50
  'OfferToReceiveAudio': true
51
51
  'OfferToReceiveVideo': true
52
52
 
53
- _webSocketInitialize: (userToken) ->
54
- @_webSocket = new WebSocket('ws://' + location.host + '/websocket')
53
+ _webSocketInitialize: (url, userToken) ->
54
+ @_webSocket = new WebSocket(url)
55
55
  @_webSocket.onopen = =>
56
56
  @_startHeartbeat()
57
57
  @_sendValue('setMyToken',
@@ -1,3 +1,3 @@
1
1
  module WebrtcRails
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.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.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Koji Murata