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 +4 -4
- data/README.md +2 -1
- data/bin/rairtame +6 -0
- data/lib/rairtame/client.rb +7 -0
- data/lib/rairtame/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8768428f265bcc182cb875e7fd42f63aff7f9aee
|
4
|
+
data.tar.gz: 821e13b306d8d6f6964924cff9178cb21cf21282
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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',
|
data/lib/rairtame/client.rb
CHANGED
@@ -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)
|
data/lib/rairtame/version.rb
CHANGED
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
|
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-
|
11
|
+
date: 2015-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|