janus_gateway 0.0.3 → 0.0.4

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: 8626b8191bd2b75073a0eeabcafd77f72df70ab7
4
- data.tar.gz: 1a1ac528214249e62e80de01ad78b14bf6b64167
3
+ metadata.gz: fce95cd96c95938e04f2bfedfbbcd48468e094b9
4
+ data.tar.gz: f0c7dae8907a4dfddf7a98eecc9528056fd19971
5
5
  SHA512:
6
- metadata.gz: 40023bb13dfac26cc9950568e59468cd047a4dfbcc14779c5a5ef2cd1707b00f1df2419b3127e0936d466ff088b2ca587457bc24b69f02233053ffe5ee514703
7
- data.tar.gz: 6ab72de84f263205d4bfb6546bd745fe324c32c601011606fa5d7e29679f9616543f1ee0ed04281f144fec0714c5f8ebf4c17e9c317041b7666c72766b080747
6
+ metadata.gz: e29e73777a93e37f5d6deacc75c94757a433b37cfa9046d379fa3fbf441f574893e761c58f9a9d5753ba517df084edef1ecbd9a40e59b3e5f2f18dd8c53d8a1e
7
+ data.tar.gz: fd2a44196ef4f92892360a88cfcd1625dba18209330ea5d3d78c401fc392ff4ab4a66f5c00f02e1470af88bb36f6b59f6770c21e7d9d6d5cd5cbe2a09530dca2
@@ -8,7 +8,6 @@ module JanusGateway::Plugin
8
8
  # @param [Array] streams
9
9
  def initialize(client, plugin, id, streams = nil)
10
10
  @plugin = plugin
11
- @id = id
12
11
  @data = nil
13
12
 
14
13
  @streams = streams || [
@@ -22,7 +21,7 @@ module JanusGateway::Plugin
22
21
  }
23
22
  ]
24
23
 
25
- super(client)
24
+ super(client, id)
26
25
  end
27
26
 
28
27
  # @return [Concurrent::Promise]
@@ -106,11 +105,11 @@ module JanusGateway::Plugin
106
105
  destroy
107
106
  end
108
107
 
109
- self.emit :create, @id
108
+ self.emit :create
110
109
  end
111
110
 
112
111
  def _on_destroyed
113
- self.emit :destroy, @id
112
+ self.emit :destroy
114
113
  end
115
114
  end
116
115
  end
@@ -61,11 +61,11 @@ module JanusGateway
61
61
  destroy
62
62
  end
63
63
 
64
- self.emit :create, @id
64
+ self.emit :create
65
65
  end
66
66
 
67
67
  def _on_destroyed
68
- self.emit :destroy, @id
68
+ self.emit :destroy
69
69
  end
70
70
 
71
71
  end
@@ -36,7 +36,7 @@ module JanusGateway
36
36
  client.send_transaction(
37
37
  {
38
38
  :janus => 'destroy',
39
- :session_id => @id
39
+ :session_id => id
40
40
  }
41
41
  ).then do |*args|
42
42
  _on_destroyed
@@ -60,7 +60,7 @@ module JanusGateway
60
60
  client.send_transaction(
61
61
  {
62
62
  :janus => 'keepalive',
63
- :session_id => @id
63
+ :session_id => id
64
64
  }
65
65
  ).then do |*args|
66
66
  sleep_time = 30
@@ -78,7 +78,7 @@ module JanusGateway
78
78
  @id = data['data']['id']
79
79
 
80
80
  client.on :message do |data|
81
- if data['janus'] == 'timeout' and data['session_id'] == @id
81
+ if data['janus'] == 'timeout' and data['session_id'] == id
82
82
  send(:_on_destroyed)
83
83
  end
84
84
  end
@@ -1,3 +1,3 @@
1
1
  module JanusGateway
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: janus_gateway
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cargo Media