fix for safari

This commit is contained in:
2024-01-21 22:57:32 +01:00
parent 8d22b26843
commit 762411b22c
3 changed files with 8 additions and 3 deletions

View File

@@ -129,6 +129,7 @@
overflow-wrap: anywhere;
border-bottom: 1px solid black;
position: relative;
color: black;
}
.stream-item-button {

View File

@@ -17,7 +17,9 @@
<StreamPage />
</div>
<div id="player">
<Player display={true} src="/media/tracks/{$currentStream.filename}" />
{#key $currentStream}
<Player display={true} src="/media/tracks/{$currentStream.filename}" />
{/key}
</div>
</div>

View File

@@ -255,9 +255,11 @@
{volume}
on:play={setMediaMetadataOnPlay}
on:ended
{src}
{preload}
/>
>
<source {src} type="audio/ogg;codecs=opus" />
<source src="{src}.mp3" type="audio/mpeg" />
</audio>
<style>
.controls {