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: 429e32d69cb67c823121724c99ee962755f963b8e3f58e92849e3a0285a14589
4
- data.tar.gz: 2121d4ff2088f91979426fda063c53eb4db4c703b19c958f27e995c57fa25933
3
+ metadata.gz: fabf475ee9c330289d588739a782d74302ea15aeb48d5e1be604dd096afab002
4
+ data.tar.gz: 32c5e0a93ad559431881f6b3855e66c21848acf5fce558a05f12fbd50436b1a5
5
5
  SHA512:
6
- metadata.gz: ad3ccca688d0c2e79fbd79f4d83ea3cc696d6f3c136520b8d118e1483d3fb09c570f82d631e355d0bbd7d9b692535c6b2b0f897433660380c467eca786ae4020
7
- data.tar.gz: 970e6d228a655de302eeec1d1a764e5593bc24384b142928def662d3b096ecfbbfa13e37399556da393d36fbe2b3386c2b1ea2ee008a8da41038c413314f5e27
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
- ['audio/mp3', 'audio/mpeg', 'audio/wav', 'audio/x-wave', 'audio/x-wav', 'audio/ogg', 'audio/flac','audio/x-flac', 'audio/x-aiff', 'audio/aiff', ]
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
- playlist << File.join(root_url,
56
- segment_url_base(file_set_id),
57
- timestamp.to_s,
58
- variant_token,
59
- line).strip+"\n"
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
@@ -1,3 +1,3 @@
1
1
  module SamveraHls
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
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.3
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: 2019-12-04 00:00:00.000000000 Z
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.0.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: