This commit is contained in:
HolgerHatGarKeineNode
2023-04-25 23:09:21 +02:00
parent 5a4322b035
commit ed54b25567
32 changed files with 683 additions and 12 deletions

View File

@@ -1,3 +1,15 @@
<div>
{{-- The whole world belongs to you. --}}
<div
x-data="{
audioSrc: @entangle('audioSrc'),
play() {
console.log(this.audioSrc);
$refs.sourceRef.src = this.audioSrc + '?t=' + new Date().getTime();
$refs.playMe.load();
$refs.playMe.play();
},
}"
>
<audio x-ref="playMe">
<source x-ref="sourceRef" src="" type="audio/wav" x-init="$watch('audioSrc', value => play())"/>
</audio>
</div>