clint-upload 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/clint/upload.rb +1 -1
- data/lib/clint/upload/elastic_transcoder/job.rb +3 -0
- data/lib/clint/upload/elastic_transcoder/payload/base.rb +0 -4
- data/lib/clint/upload/elastic_transcoder/payload/gif.rb +6 -0
- data/lib/clint/upload/elastic_transcoder/payload/mp4.rb +6 -0
- data/lib/clint/upload/elastic_transcoder/payload/mp4_web.rb +27 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa92cae35de1ae36660ec36838a84f9602bd505c
|
4
|
+
data.tar.gz: a0ec91f78b7b7eadf65505028314820806a1a31c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7a196600e192e24b141c88d0787b4324886e74e0bdb7a437dadd500b02792401fdd249f3cbf1cd87d9665b8b27b8ebbdcceacf0a9528a9688dff3c4b93ea15c
|
7
|
+
data.tar.gz: 754d2e226f36a01f0e9e5d2d0ac1faa7b990b30a9be95074d315a3f30869f2be7d353cea93015ae4aa10fc5ca70f76350b48f07f1a444e42fb6204026a40681c
|
data/lib/clint/upload.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'aws-sdk'
|
2
2
|
require 'clint/upload/elastic_transcoder/payload/gif'
|
3
3
|
require 'clint/upload/elastic_transcoder/payload/mp4'
|
4
|
+
require 'clint/upload/elastic_transcoder/payload/mp4_web'
|
4
5
|
require 'clint/upload/elastic_transcoder/unsupported_output_type'
|
5
6
|
|
6
7
|
module Clint
|
@@ -13,6 +14,8 @@ module Clint
|
|
13
14
|
Payload::Gif.new
|
14
15
|
when 'mp4'
|
15
16
|
Payload::Mp4.new
|
17
|
+
when 'mp4-web'
|
18
|
+
Payload::Mp4Web.new
|
16
19
|
else
|
17
20
|
raise UnsupportedOutputType.new(output_type)
|
18
21
|
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'clint/upload/elastic_transcoder/payload/base'
|
2
|
+
|
3
|
+
module Clint
|
4
|
+
module Upload
|
5
|
+
module ElasticTranscoder
|
6
|
+
module Payload
|
7
|
+
class Mp4Web < Base
|
8
|
+
def filename
|
9
|
+
'web.mp4'
|
10
|
+
end
|
11
|
+
|
12
|
+
protected
|
13
|
+
|
14
|
+
def type
|
15
|
+
'mp4-web'
|
16
|
+
end
|
17
|
+
|
18
|
+
private
|
19
|
+
|
20
|
+
def preset_id
|
21
|
+
config.mp4_web_preset_id
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clint-upload
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -137,6 +137,7 @@ files:
|
|
137
137
|
- lib/clint/upload/elastic_transcoder/payload/base.rb
|
138
138
|
- lib/clint/upload/elastic_transcoder/payload/gif.rb
|
139
139
|
- lib/clint/upload/elastic_transcoder/payload/mp4.rb
|
140
|
+
- lib/clint/upload/elastic_transcoder/payload/mp4_web.rb
|
140
141
|
- lib/clint/upload/elastic_transcoder/unsupported_output_type.rb
|
141
142
|
- lib/clint/upload/signed_url.rb
|
142
143
|
homepage: ''
|