raydash 2.0.6 → 2.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/Readme +12 -1
  2. data/lib/raydash/version.rb +1 -1
  3. data/lib/raydash.rb +15 -0
  4. metadata +5 -7
data/Readme CHANGED
@@ -135,7 +135,18 @@ a video stream initialized with this token, if will immediately start
135
135
  displaying content from the input_token.
136
136
 
137
137
  input_token refers to a videorecord that has been initialized with its stream
138
-
138
+
139
+ == Raydash.changeStreamRand(token, params)
140
+ This changes to a random other stream satisfying the given criteria
141
+ The token is the token of the stream you want to point. Params can be:
142
+ :active => true will connect to streams that are active
143
+ :twoWay => true will make a two-way connection
144
+ :customGroup The custom group we to connect with
145
+ == Raydash.changeStreamNext(token,params)
146
+ :active => true will connect to streams that are active
147
+ :twoWay => true will make a two-way connection
148
+ :customGroup The custom group we to connect with
149
+
139
150
  === Raydash.getStreamInfo(token)
140
151
  Returns a hash-array with information about the token.
141
152
 
@@ -1,3 +1,3 @@
1
1
  module Raydash
2
- VERSION = "2.0.6"
2
+ VERSION = "2.0.9"
3
3
  end
data/lib/raydash.rb CHANGED
@@ -24,6 +24,21 @@ module Raydash
24
24
  end
25
25
  return result.body
26
26
  end
27
+ def self.getTokensInfo(params)
28
+ active=params[:active]
29
+ customGroup=params[:customGroup]
30
+
31
+ path="/api/2/authtoken?userid=#{userid}&secret=#{secret}"
32
+
33
+ if active!=nil then
34
+ path += "&active=#{active}"
35
+ end
36
+ if customGroup!=nil then
37
+ path += "&customGroup=#{customGroup}"
38
+ end
39
+ result = getRequest(path)
40
+ return(JSON.parse(result.body))
41
+ end
27
42
  # Changes which input-stream connects to which output-stream token
28
43
  def self.changeStream(output_token,input_token)
29
44
  result = postRequest("/api/2/authtoken/#{output_token}",{'streamName'=>input_token, 'userid' => self.userid, 'secret' => self.secret, })
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raydash
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 6
10
- version: 2.0.6
9
+ - 9
10
+ version: 2.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Gershon Bialer
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-09 00:00:00 -05:00
19
- default_executable:
18
+ date: 2011-06-21 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: json
@@ -60,7 +59,6 @@ files:
60
59
  - lib/raydash.rb
61
60
  - lib/raydash/version.rb
62
61
  - raydash.gemspec
63
- has_rdoc: true
64
62
  homepage: http://www.raydash.com
65
63
  licenses: []
66
64
 
@@ -90,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
88
  requirements: []
91
89
 
92
90
  rubyforge_project: raydash
93
- rubygems_version: 1.6.2
91
+ rubygems_version: 1.8.5
94
92
  signing_key:
95
93
  specification_version: 3
96
94
  summary: Embed video chat or video streaming via Raydash