import hls.js
This commit is contained in:
parent
15bac63561
commit
ff7447440c
2 changed files with 8 additions and 2 deletions
|
@ -15,9 +15,13 @@ RUN mkdir -p /tmp/hls.js && \
|
||||||
cd /tmp/hls.js && \
|
cd /tmp/hls.js && \
|
||||||
wget -O hls.js.zip https://github.com/video-dev/hls.js/releases/download/v1.0.11/release.zip && \
|
wget -O hls.js.zip https://github.com/video-dev/hls.js/releases/download/v1.0.11/release.zip && \
|
||||||
unzip hls.js.zip && \
|
unzip hls.js.zip && \
|
||||||
|
cp dist/hls.js /code/static/hls.js && \
|
||||||
|
cp dist/hls.js.map /code/static/hls.js.map && \
|
||||||
cp dist/hls.min.js /code/static/hls.min.js && \
|
cp dist/hls.min.js /code/static/hls.min.js && \
|
||||||
cp dist/hls.min.js.map /code/static/hls.min.js.map
|
cp dist/hls.min.js.map /code/static/hls.min.js.map
|
||||||
|
|
||||||
|
RUN chmod 644 /code/static/hls.js
|
||||||
|
RUN chmod 644 /code/static/hls.js.map
|
||||||
RUN chmod 644 /code/static/hls.min.js
|
RUN chmod 644 /code/static/hls.min.js
|
||||||
RUN chmod 644 /code/static/hls.min.js.map
|
RUN chmod 644 /code/static/hls.min.js.map
|
||||||
|
|
||||||
|
|
|
@ -6,16 +6,18 @@
|
||||||
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.default.css') }}">
|
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.default.css') }}">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<script src="{{ url_for('static', filename='hls.min.js') }}"></script>
|
||||||
|
|
||||||
<header>
|
<header>
|
||||||
<a href="{{ url_for('frontend.start') }}"><h1>{{ configuration["pagetitle"] }}</h1></a>
|
<a href="{{ url_for('frontend.start') }}"><h1>{{ configuration["pagetitle"] }}</h1></a>
|
||||||
<h2>{{ configuration["subtitle"] }}</h2>
|
<h2>{{ configuration["subtitle"] }}</h2>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div id="videocontainer">
|
<div id="videocontainer">
|
||||||
<h1>{{ streamname }}</h1>
|
<h1>{{ stream }}</h1>
|
||||||
<video id="player" controls>
|
<video id="player" controls>
|
||||||
</video>
|
</video>
|
||||||
</div>
|
</div>
|
||||||
<script src="{{ url_for('static', filename='hls.min.js') }}"></script>
|
|
||||||
<script>
|
<script>
|
||||||
var video = document.getElementById('video');
|
var video = document.getElementById('video');
|
||||||
if (Hls.isSupported()) {
|
if (Hls.isSupported()) {
|
||||||
|
|
Loading…
Reference in a new issue