basharovV / musicat

A sleek desktop music player and tagger for offline music 🪕. With gapless playback, smart playlists, and a map view! Built with Svelte and Tauri
GNU General Public License v3.0
425 stars 25 forks source link

Player does not start on Windows #2

Closed rondlite closed 10 months ago

rondlite commented 10 months ago

Player on windows will stay on 00:00 (does not play). Latest version 0.5

I checked console and it says the asset://localhost scheme is not supported ERR_UNKOWN_URL_SCHEME

Investigating if I can fix it myself, one reason that it would fail in the first place is the backslashes in windows filepath, while URL should have forward slashes. I did a replace, but that not yet fixed the unknown scheme error.

JCGithu commented 10 months ago

Can second this. Player does load (after installing additional packages listed in my other issue), but then I get this same issue trying to play any files.

basharovV commented 10 months ago

Thanks for reporting. I thought Tauri would handle this with convertFileSrc. I'll take a look at this, once I get access to a Windows machine that is.

rondlite commented 10 months ago

The audioplayer does not use convertFileSrc but a direct link to asset.localhost. I changed, but now I am running into CORS issue, almost there..

basharovV commented 10 months ago

Finally got my Windows environment set up for this. Indeed, convertFileSrc was not being used and the audio element didn't have crossOrigin='anonymous'. Tracks should be playing now, but overall the Windows/Linux versions of this app need some love. Will add this in the next release :) Merry Christmas 🎄

rondlite commented 10 months ago

@basharovV great fix, just in time for Mariah Carey