pili 1.5.3 → 1.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +12 -0
- data/README.md +5 -2
- data/Rakefile +1 -0
- data/lib/pili/api.rb +2 -1
- data/lib/pili/stream.rb +1 -1
- data/lib/pili/version.rb +1 -1
- metadata +13 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d658803b0edf7fd1757f76dec7898914330dfa7
|
4
|
+
data.tar.gz: 282b89e864098c26a7dd36de0376f3b73683af0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: daafc5d478f22c5ffbf103d6b28c9d1b272dfdc35c13ff8164a77308ec711fb9c7095dde3c89f9a3eac48713e287a22bc0d3d4091151c57ea7acee0b7cb23d2c
|
7
|
+
data.tar.gz: deb796922790b9048396a6e69ebc2d5b7dd96e03896dad6506bf18254a01b26a83b3c1ea85bd3c31294e803c3d9878f56603a142160a6bab54c06e6690895e1a
|
data/.travis.yml
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
language: ruby
|
2
|
+
rvm:
|
3
|
+
- 2.2.5
|
4
|
+
gemfile:
|
5
|
+
- Gemfile
|
6
|
+
deploy:
|
7
|
+
provider: rubygems
|
8
|
+
api_key:
|
9
|
+
secure: frhK5TRyrplKjwEktkjx4nGyXBhELae7B/rfDTWUqLrwX4Gmx2XTf0j3VSwKphf2PclW2Phs1o029JFjivgjCB0gYpb4/lgPLxXAjYoUv7cbyZ1SdvIkhJsxilPgkPOr/t6XZ4OB1WU0yLJxDKNyJCh6fHJ47OlMfy7neGPtFKI=
|
10
|
+
gemspec: pili.gemspec
|
11
|
+
on:
|
12
|
+
tags: true
|
data/README.md
CHANGED
@@ -465,11 +465,12 @@ puts "Stream hls_playback_urls() =>\n#{urls.inspect}\n\n"
|
|
465
465
|
```ruby
|
466
466
|
begin
|
467
467
|
name = "videoName.mp4" # required, string
|
468
|
-
format = "mp4" # required, string
|
469
468
|
start_time = 1440067100 # required, int64, in second, unix timestamp
|
470
469
|
end_time = 1440068104 # required, int64, in second, unix timestamp
|
470
|
+
format = "mp4" # optional, string
|
471
471
|
notify_url = nil # optional
|
472
|
-
|
472
|
+
pipeline = nil # optional
|
473
|
+
result = stream.save_as(name, format, start_time, end_time, notify_url, pipeline)
|
473
474
|
puts "Stream save_as() =>\n#{result.inspect}\n\n"
|
474
475
|
rescue Exception => e
|
475
476
|
puts "Stream save_as() failed. Caught exception:\n#{e.http_body}\n\n"
|
@@ -526,6 +527,8 @@ end
|
|
526
527
|
|
527
528
|
## History
|
528
529
|
|
530
|
+
- 1.5.4
|
531
|
+
- Add pipeline in saveAs
|
529
532
|
- 1.5.3
|
530
533
|
- Use saveas in hls_playback_urls
|
531
534
|
- 1.5.0
|
data/Rakefile
CHANGED
data/lib/pili/api.rb
CHANGED
@@ -85,7 +85,7 @@ module Pili
|
|
85
85
|
end
|
86
86
|
|
87
87
|
|
88
|
-
def save_stream_as(credentials, stream_id, name, format, start_time, end_time, notify_url = nil)
|
88
|
+
def save_stream_as(credentials, stream_id, name, format, start_time, end_time, notify_url = nil, pipeline = nil)
|
89
89
|
url = "/streams/" + stream_id + "/saveas"
|
90
90
|
|
91
91
|
body = {}
|
@@ -94,6 +94,7 @@ module Pili
|
|
94
94
|
body[:start] = start_time
|
95
95
|
body[:end] = end_time
|
96
96
|
body[:notifyUrl] = notify_url
|
97
|
+
body[:pipeline] = pipeline
|
97
98
|
|
98
99
|
body.delete_if { |k, v| v.nil? }
|
99
100
|
|
data/lib/pili/stream.rb
CHANGED
@@ -134,7 +134,7 @@ module Pili
|
|
134
134
|
end
|
135
135
|
|
136
136
|
|
137
|
-
def save_as(name, format, start_time, end_time, notify_url = nil)
|
137
|
+
def save_as(name, format, start_time, end_time, notify_url = nil, pipeline = nil)
|
138
138
|
API.save_stream_as(@credentials, @id, name, format, start_time, end_time, notify_url)
|
139
139
|
end
|
140
140
|
|
data/lib/pili/version.rb
CHANGED
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pili
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miclle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.7'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.7'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: httparty
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 0.13.3
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 0.13.3
|
55
55
|
description: Pili Streaming Cloud server-side library for Ruby.
|
@@ -59,7 +59,8 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
-
-
|
62
|
+
- .gitignore
|
63
|
+
- .travis.yml
|
63
64
|
- Gemfile
|
64
65
|
- Gemfile.lock
|
65
66
|
- LICENSE
|
@@ -87,17 +88,17 @@ require_paths:
|
|
87
88
|
- lib
|
88
89
|
required_ruby_version: !ruby/object:Gem::Requirement
|
89
90
|
requirements:
|
90
|
-
- -
|
91
|
+
- - '>='
|
91
92
|
- !ruby/object:Gem::Version
|
92
93
|
version: '0'
|
93
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
95
|
requirements:
|
95
|
-
- -
|
96
|
+
- - '>='
|
96
97
|
- !ruby/object:Gem::Version
|
97
98
|
version: '0'
|
98
99
|
requirements: []
|
99
100
|
rubyforge_project:
|
100
|
-
rubygems_version: 2.
|
101
|
+
rubygems_version: 2.0.14.1
|
101
102
|
signing_key:
|
102
103
|
specification_version: 4
|
103
104
|
summary: Pili Streaming Cloud server-side library for Ruby.
|