hydra_hls 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/concerns/hydra_hls/file_set_behavior.rb +2 -2
- data/lib/hydra_hls/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: 5685ed42b13748b8b4f24ae299ef507c1c2301e4
|
4
|
+
data.tar.gz: 2712d618e496a8257d591b9d526d3f869e4fb384
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86375913f9e4bfb1359ebee52d177bc46915626ed87041694ad146dce010b69ab2fc4b48f50c857f2f41b5ae8d034a909fb181655cf307c5bcb5acfca66b311d
|
7
|
+
data.tar.gz: 8554200a884034ecbf7e28abbd68f6ddae3ee78dc3f0f1c5ea707e7739ca580460293bd3e4804eac24c8422f6e813b94fcbe0ead346fde1c63d04df2b483911c
|
@@ -5,8 +5,10 @@ module HydraHls
|
|
5
5
|
def create_derivatives(filename)
|
6
6
|
case mime_type
|
7
7
|
when *self.class.audio_mime_types
|
8
|
+
hls_dir = File.join(derivative_dir,"hls")
|
8
9
|
create_audio_derivates filename, hls_dir
|
9
10
|
when *self.class.video_mime_types
|
11
|
+
hls_dir = File.join(derivative_dir,"hls")
|
10
12
|
create_video_derivates filename, hls_dir
|
11
13
|
else
|
12
14
|
super
|
@@ -71,7 +73,6 @@ module HydraHls
|
|
71
73
|
end
|
72
74
|
|
73
75
|
def create_audio_derivates filename, hls_dir
|
74
|
-
hls_dir = File.join(derivative_dir,"hls")
|
75
76
|
outputs = [
|
76
77
|
{ label: 'mp3', format: 'mp3', url: derivative_url('mp3') },
|
77
78
|
{ label: 'ogg', format: 'ogg', url: derivative_url('ogg') },
|
@@ -81,7 +82,6 @@ module HydraHls
|
|
81
82
|
end
|
82
83
|
|
83
84
|
def create_video_derivates filename, hls_dir
|
84
|
-
hls_dir = File.join(derivative_dir,"hls")
|
85
85
|
outputs = [{ label: :thumbnail, format: 'jpg', url: derivative_url('thumbnail') },
|
86
86
|
{ label: 'webm', format: 'webm', url: derivative_url('webm') },
|
87
87
|
{ label: 'mp4', format: 'mp4', url: derivative_url('mp4') },
|
data/lib/hydra_hls/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hydra_hls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ned Henry, UCSC Library Digital Initiatives
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|