I've written <a Kotlin/JS app> that plays some aud...
# random
a
I've written a Kotlin/JS app that plays some audio. localhost works correctly, but now I've hosted it on GitHub Pages I can't get the audio to play. I see errors in the console about the audio data, even though the URL is found, but even when I visit the mp3 url directly it doesn't seem to work • https://asemy.github.io/avalon-narrator/script/Okay--let-s-begin-.mp3https://media.githubusercontent.com/media/aSemy/avalon-narrator/refs/heads/main/src/jsMain/resources/script/All-players-should-have-their-eyes-closed-.mp3?raw=true Any tips? :)
c
it’s not actually the file, its the link to the git-lfs
Copy code
$ curl -v <https://asemy.github.io/avalon-narrator/script/Okay--let-s-begin-.mp3>
responds with
Copy code
version <https://git-lfs.github.com/spec/v1>
oid sha256:7a02a9d12a80661c910976edc30537fadb3f295a75f60d68b47b5ad35ba16d2f
size 11904
a
oohhhhh of course, thank you!
simple fix: tell the checkout action to download lfs files
Copy code
- name: Checkout the repo
        uses: actions/checkout@v4
        with:
          lfs: true
🙂 2