Skip to content

Commit 34f06f6

Browse files
committed
Use hls package
1 parent 8ad09eb commit 34f06f6

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

app/javascript/entrypoints/viewer.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
import UVManager from '@viewer/uv_manager'
22
import 'leaflet/dist/leaflet.css'
33
const UVManagerInstance = new UVManager()
4-
let timer = window.setInterval(() => {
5-
if (window.Hls !== undefined) {
6-
UVManagerInstance.initialize()
7-
window.clearInterval(timer)
8-
}
9-
}, 5)
4+
UVManagerInstance.initialize()

app/views/layouts/viewer_layout.html.erb

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<head>
33
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
44
<%= csrf_meta_tag %>
5-
<script src="https://cdn.jsdelivr.net/npm/hls.js@1"></script>
65
<%= vite_javascript_tag 'viewer' %>
76
<%= stylesheet_link_tag 'viewer' %>
87
<%= yield :head %>

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"flush-promises": "^1.0.2",
2020
"graphql": "^16.5.0",
2121
"graphql-tag": "^2.9.2",
22+
"hls.js": "^1.4.10",
2223
"leaflet": "^1.7.1",
2324
"lodash": "^4.17.21",
2425
"lux-design-system": "4.2.0",

yarn.lock

+5
Original file line numberDiff line numberDiff line change
@@ -5694,6 +5694,11 @@ he@^1.2.0:
56945694
resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f"
56955695
integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==
56965696

5697+
hls.js@^1.4.10:
5698+
version "1.4.10"
5699+
resolved "https://registry.yarnpkg.com/hls.js/-/hls.js-1.4.10.tgz#3feac40f21a558453b243b5b926b7317e70624e1"
5700+
integrity sha512-wAVSj4Fm2MqOHy5+BlYnlKxXvJlv5IuZHjlzHu18QmjRzSDFQiUDWdHs5+NsFMQrgKEBwuWDcyvaMC9dUzJ5Uw==
5701+
56975702
hmac-drbg@^1.0.1:
56985703
version "1.0.1"
56995704
resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1"

0 commit comments

Comments
 (0)