From 0193de91d23af6dd5588ed0006eef41c186a2c73 Mon Sep 17 00:00:00 2001
From: Fabian Marquardt <marquard@cs.uni-bonn.de>
Date: Tue, 19 May 2020 13:43:09 +0200
Subject: [PATCH] Fix audio embed URL

---
 public/index.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/public/index.html b/public/index.html
index 5a0b679..c68a1e1 100644
--- a/public/index.html
+++ b/public/index.html
@@ -37,8 +37,7 @@
           <p>Um diesen Stream in VLC zu öffnen, nutze die folgende Netzwerkadresse:</p>
           <p><code id="urlStream">unset</code></p>
           <h4>Nur-Audio-Stream</h4>
-          <audio controls>
-            <source src="https://hls1.stream.kif.rocks:8443/newname" type="audio/mpeg">
+          <audio id="audioPlayer" controls>
           </audio>
           <p>Um den Audiostream in VLC zu öffnen, nutze die folgende Netzwerkadresse:</p>
           <p><code id="urlAudio">unset</code></p>
@@ -71,6 +70,7 @@
     $('#streamtitle').html('#' + streamName + ' (Mirror: ' + mirror + ')');
     $('#urlStream').html(streamURL);
     $('#urlAudio').html(audioURL);
+    $('#audioPlayer').html('<source src="' + audioURL + '" type="audio/mpeg">');
 
     function getClapprPlayer() {
       return new Clappr.Player({
-- 
GitLab