samvera_hls 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fabf475ee9c330289d588739a782d74302ea15aeb48d5e1be604dd096afab002
|
4
|
+
data.tar.gz: 32c5e0a93ad559431881f6b3855e66c21848acf5fce558a05f12fbd50436b1a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90961c9d137aa7e2f62bd434e55070e04fed71f733a4439905c151e97a4b402d8817d1a7ea239e87c997021a0e812a740afe9e90ff9f4585f4d5945ba63f5832
|
7
|
+
data.tar.gz: 2dcc42a69be39cb831d1f2832a46021f29f7c046d0d793f8d48d9895fedbdc70d3af4a60fd80a1152b149d2290e5cde3c6c021b7f6f951e767fd63446359d1fb
|
@@ -11,7 +11,7 @@ module SamveraHls
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def self.video_mime_types
|
14
|
-
['
|
14
|
+
['video/mp4']
|
15
15
|
end
|
16
16
|
|
17
17
|
def create_hls_derivatives(filename)
|
@@ -52,11 +52,17 @@ module SamveraHls
|
|
52
52
|
# It doesn't depend on which segment we're playing, so we
|
53
53
|
# speed things up by only calculating one.
|
54
54
|
variant_token ||= token(file_set_id,line, timestamp)
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
55
|
+
if Rails.env == "development" || Rails.env == "test"
|
56
|
+
playlist << File.join(root_url,
|
57
|
+
segment_url_base(file_set_id),
|
58
|
+
line).strip+"\n"
|
59
|
+
else
|
60
|
+
playlist << File.join(root_url,
|
61
|
+
segment_url_base(file_set_id),
|
62
|
+
timestamp.to_s,
|
63
|
+
variant_token,
|
64
|
+
line).strip+"\n"
|
65
|
+
end
|
60
66
|
else
|
61
67
|
playlist << line.strip+"\n"
|
62
68
|
end
|
data/lib/samvera_hls/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: samvera_hls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ned Henry, UCSC Library Digital Initiatives
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -152,7 +152,7 @@ homepage: http://github.com/UCSCLibrary/samvera_hls
|
|
152
152
|
licenses:
|
153
153
|
- Apache License, v2.0
|
154
154
|
metadata: {}
|
155
|
-
post_install_message:
|
155
|
+
post_install_message:
|
156
156
|
rdoc_options: []
|
157
157
|
require_paths:
|
158
158
|
- lib
|
@@ -167,8 +167,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
167
|
- !ruby/object:Gem::Version
|
168
168
|
version: '0'
|
169
169
|
requirements: []
|
170
|
-
rubygems_version: 3.
|
171
|
-
signing_key:
|
170
|
+
rubygems_version: 3.1.2
|
171
|
+
signing_key:
|
172
172
|
specification_version: 4
|
173
173
|
summary: An engine to add hls adaptive streaming to a samvera based application.
|
174
174
|
test_files:
|