From 61fbf41c941fa4e783d052f3226d95ede2d60a5e Mon Sep 17 00:00:00 2001 From: Alexandre Iooss <erdnaxe@crans.org> Date: Wed, 26 Aug 2020 17:13:18 +0200 Subject: [PATCH] Link to source on stream page --- roles/nginx-rtmp/templates/index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/nginx-rtmp/templates/index.html b/roles/nginx-rtmp/templates/index.html index 45e5839c..609aa9dd 100644 --- a/roles/nginx-rtmp/templates/index.html +++ b/roles/nginx-rtmp/templates/index.html @@ -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, -- GitLab