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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea3899b1737ae40cfd676683e307ea0f758630a7
|
4
|
+
data.tar.gz: 56c8208113bf3457dd645a641ee21e363d1eecf4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
53
|
+
_webSocketInitialize: (url, userToken) ->
|
54
|
+
@_webSocket = new WebSocket(url)
|
55
55
|
@_webSocket.onopen = =>
|
56
56
|
@_startHeartbeat()
|
57
57
|
@_sendValue('setMyToken',
|
data/lib/webrtc_rails/version.rb
CHANGED