Skip to content
Snippets Groups Projects
Commit 61fbf41c authored by me5na7qbjqbrp's avatar me5na7qbjqbrp
Browse files

Link to source on stream page

parent a21d78ff
No related branches found
No related tags found
1 merge request!80Stream
......@@ -9,11 +9,13 @@
<body class="bg-dark m-2">
<div class="container">
<video id="my-video" class="video-js embed-responsive embed-responsive-16by9 shadow-lg rounded-sm"></video>
<a class="text-white text-decoration-none" href="#" id="linkStream">Ouvrir le flux dans une application externe</a>
</div>
<script src="//unpkg.com/video.js@7/dist/video.min.js"></script>
<script>
const videoId = window.location.pathname.split("/").pop()
document.getElementById("linkStream").href = `/hls/${videoId}.m3u8`
videojs('my-video', {
controls: true,
autoplay: true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment