rairtame 1.0.2 → 1.1.0

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: f61c00ea76f51529e919849b3a2dff5903f321cd
4
- data.tar.gz: af5d1021678ce786a0ec01d06bf73517d93c800f
3
+ metadata.gz: 8768428f265bcc182cb875e7fd42f63aff7f9aee
4
+ data.tar.gz: 821e13b306d8d6f6964924cff9178cb21cf21282
5
5
  SHA512:
6
- metadata.gz: 9a8f2abfb3bf5de4bab3c68b4699552843a81f639903f3205844685da80bf3d2e09a84045c07f72633b07a8bd386b284d2fa063c8cb99f9b6b4053baf6c4b3ee
7
- data.tar.gz: 0363cf4b2cf9fb1c9620d489e65eac9cbd71679f9d13fc5fda25e91f86b467fc4f77f5549ba4e3b93521e905e8ab6913f5d0d56909530a62b4cd3bfa412a0ccc
6
+ metadata.gz: 85a546599e044ad7d8ce44593c43f2cf8110f966396efca6b7c0a18f878caabcfe054bb2545947c2cfbfd1e0d6deb413f8b8f3527eb2f63e6d267915bc9e9ad4
7
+ data.tar.gz: 4dcf84eb0d13cb50ea6d165f35861dbc05e76f8551b3c2bf117470f040e7bd32462928a48e75b3ac74ae273ee65deb9115ef0911d701e859af953f63b8cf2f6d
data/README.md CHANGED
@@ -36,6 +36,7 @@ COMMANDS
36
36
  mode - Set streaming mode
37
37
  quality - Set streaming quality [1-5]
38
38
  reliable - Enable or disable reliability
39
+ resolution - Set streaming resolution
39
40
  status - Show streamer's status
40
41
  video - Enable or disable video
41
42
  ```
@@ -52,7 +53,7 @@ You can also easily integrate your own code against this library. For example:
52
53
  require 'rairtame'
53
54
  client = Rairtame::Client.new()
54
55
  client.init_streamer()
55
- client.connect("myairtame")
56
+ client.connect("myairtame") # hostname or ip
56
57
  client.quality = 5
57
58
  client.buffer = 5000
58
59
  client.disconnect()
data/bin/rairtame CHANGED
@@ -65,6 +65,12 @@ module Rairtame
65
65
  :allowed => (0..5).map(&:to_s),
66
66
  :method => :quality=
67
67
  },
68
+ :resolution => {
69
+ :short => 'Set streaming resolution',
70
+ :long => 'Sets the resolution of the screen capture for streaming',
71
+ :arg => 'resolution',
72
+ :method => :resolution=
73
+ },
68
74
  :fps => {
69
75
  :short => 'Set streaming fps [1-60]',
70
76
  :long => 'Sets the fps [1-60] for streaming, when using manual mode',
@@ -104,10 +104,12 @@ module Rairtame
104
104
  end
105
105
  fluent = state['remote_settings']['video_jb_flags'] == '1' ? "yes" : "no"
106
106
  reliable = state['reliable_transport'] == '1' ? "yes" : "no"
107
+ buffer = state['remote_settings']['buffer_period']
107
108
  puts "Mode: #{mode_str}"
108
109
  puts "FPS: #{state['video_fps']}"
109
110
  puts "Reliability: #{reliable}"
110
111
  puts "Fluent playback: #{fluent}"
112
+ puts "Buffer: #{buffer}ms"
111
113
  puts "Clients:"
112
114
  puts " -- No clients connected" if state['clients'].empty?
113
115
  state['clients'].each do |client|
@@ -181,6 +183,11 @@ module Rairtame
181
183
  on_off_to_true_false(v))
182
184
  end
183
185
 
186
+ def resolution=(v)
187
+ rpc_call(:setStreamerSettings, 'encode_resolution',
188
+ v)
189
+ end
190
+
184
191
  private
185
192
 
186
193
  def on_off_to_1_0(value)
@@ -15,5 +15,5 @@
15
15
  # along with Rairtame. If not, see <http://www.gnu.org/licenses/>
16
16
 
17
17
  module Rairtame
18
- VERSION = "1.0.2"
18
+ VERSION = "1.1.0"
19
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rairtame
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hector Sanjuan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-07 00:00:00.000000000 Z
11
+ date: 2015-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler