audio player on main page

This commit is contained in:
Aethor 2021-06-15 23:55:38 +02:00
parent 88aa22ad32
commit 9f40b27cfd
4 changed files with 10 additions and 8 deletions

View File

@ -12,6 +12,7 @@ RUN adduser zambla
COPY icecast.xml.jinja .
COPY ices.xml.jinja .
COPY index.html /usr/share/icecast2/web
COPY next_song.py /opt
COPY yt_sync.py /opt

View File

@ -30,7 +30,7 @@
<mount type="normal">
<mount-name>/radio-bullshit.ogg</mount-name>
<mount-name>/radio-bullshit</mount-name>
<username>{{ source_username }}</username>
<password>{{ source_password }}</password>
@ -48,19 +48,17 @@
<header name="Access-Control-Allow-Origin" value="http://webplayer.example.org" />
<header name="baz" value="quux" />
</http-headers>
<on-connect>/home/icecast/bin/stream-start</on-connect>
<on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
</mount>
<fileserve>1</fileserve>
<paths>
<basedir>/usr/share/icecast</basedir>
<basedir>/usr/share/icecast2</basedir>
<logdir>/var/log/icecast</logdir>
<webroot>/usr/share/icecast/web</webroot>
<adminroot>/usr/share/icecast/admin</adminroot>
<alias source="/" destination="/status.xsl"/>
<webroot>/usr/share/icecast2/web</webroot>
<adminroot>/usr/share/icecast2/admin</adminroot>
<alias source="/" destination="/index.html"/>
</paths>
<logging>

View File

@ -14,7 +14,7 @@
<instance>
<username>{{ source_username }}</username>
<password>{{ source_password }}</password>
<mount>/radio-bullshit.ogg</mount>
<mount>/radio-bullshit</mount>
</instance>
</stream>
</ices>

3
index.html Normal file
View File

@ -0,0 +1,3 @@
<audio controls>
<source src="/radio-bullshit" type="audio/ogg">
</audio>