sleeproom 0.9.0.pre1 → 0.9.0.pre3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/sleeproom/record/record.rb +3 -3
- data/lib/sleeproom/record/websocket.rb +6 -2
- data/lib/sleeproom/record/write_status.rb +5 -2
- data/lib/sleeproom/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 956fca834c6e55be44ea2a98e8f60bde9b8237854a73aeb5dad33712460496a4
|
4
|
+
data.tar.gz: fbb1e1d569efb7fc8529f9ddbcd1bdb49e5f636b95b178d33500d77cad086351
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df00d43f3f15ae510ad531b1b4a2d36e1fe8d3d0cfacbc0b103dfdbfa1dc31b6fdb8a809e938fce0a6c5525a7013981ef93d4ddb091ec2bf9c0d03a0c5778949
|
7
|
+
data.tar.gz: 9440f9cc2465eb1adbc9e02ffebf26475c253b1ccec6ac3175812a27edff622eefdf6b2189848f9085e0677ee056490810cb89e7ec5681e2062a4ec91b4fd6ea
|
data/Gemfile.lock
CHANGED
@@ -18,7 +18,7 @@ module SleepRoom
|
|
18
18
|
end
|
19
19
|
|
20
20
|
# Record Room
|
21
|
-
def
|
21
|
+
def record
|
22
22
|
set_room_info
|
23
23
|
if @is_live
|
24
24
|
log("Status: broadcast.")
|
@@ -128,7 +128,7 @@ module SleepRoom
|
|
128
128
|
# Call time
|
129
129
|
call_time = Time.now
|
130
130
|
pid = SleepRoom::Record.call_minyami(url: streaming_url, output: output)
|
131
|
-
@status.downloading(room: @room, url: streaming_url, pid: pid, start_time: call_time)
|
131
|
+
@status.downloading(room: @room, url: streaming_url, pid: pid, start_time: call_time, output: output)
|
132
132
|
log("Waiting for download process.")
|
133
133
|
# Status
|
134
134
|
task.async do |t|
|
@@ -189,7 +189,7 @@ module SleepRoom
|
|
189
189
|
end
|
190
190
|
|
191
191
|
def update_status
|
192
|
-
@status.waiting(room: @room, group: @group, room_name: @room_name)
|
192
|
+
@status.waiting(room: @room, group: @group, room_name: @room_name, key: @broadcast_key)
|
193
193
|
end
|
194
194
|
end
|
195
195
|
end
|
@@ -32,8 +32,12 @@ module SleepRoom
|
|
32
32
|
ping_task = task.async do |sub|
|
33
33
|
while @running
|
34
34
|
sub.sleep 60
|
35
|
-
|
36
|
-
|
35
|
+
begin
|
36
|
+
connection.write("PING\tshowroom")
|
37
|
+
connection.flush
|
38
|
+
rescue => e
|
39
|
+
log(e.message)
|
40
|
+
end
|
37
41
|
end
|
38
42
|
end
|
39
43
|
|
@@ -34,7 +34,7 @@ module SleepRoom
|
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
37
|
-
def downloading(room:, url:, pid:, start_time:)
|
37
|
+
def downloading(room:, url:, pid:, start_time:, output:)
|
38
38
|
add(
|
39
39
|
{
|
40
40
|
room: room,
|
@@ -47,7 +47,7 @@ module SleepRoom
|
|
47
47
|
)
|
48
48
|
end
|
49
49
|
|
50
|
-
def waiting(room:, group:, room_name:)
|
50
|
+
def waiting(room:, group:, room_name:, key:)
|
51
51
|
add(
|
52
52
|
{
|
53
53
|
room: room,
|
@@ -55,6 +55,9 @@ module SleepRoom
|
|
55
55
|
group: group,
|
56
56
|
name: room_name,
|
57
57
|
status: :waiting,
|
58
|
+
websocket: {
|
59
|
+
key: key
|
60
|
+
}
|
58
61
|
}
|
59
62
|
)
|
60
63
|
end
|
data/lib/sleeproom/version.rb
CHANGED