openopus-org / concertmaster_player

Classical music front-end for Spotify (Player)
GNU General Public License v3.0
53 stars 6 forks source link

Firefox for Windows/Linux doesn't play tracks #34

Open theaprilhare opened 3 years ago

theaprilhare commented 3 years ago

When I attempt to play any track with Firefox for Windows or Linux, Concertmaster displays "Tuning..." indefinitely and doesn't play the track. The issue doesn't seem to affect Firefox for Android or Chrome. Not sure if it's relevant, but the logs show the following:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://api.spotify.com/v1/track-playback/v1/devices. (Reason: CORS request did not succeed).
Uncaught ReferenceError: device is not defined
    cmas_spotifyplay https://concertmaster.app/js/lib.js:216
    cmas_toggleplay https://concertmaster.app/js/lib.js:286
    <anonymous> javascript:cmas_toggleplay();:1
adrianosbr commented 3 years ago

Hi,

Thanks for reporting that. I’ll reopen it because I could replicate the failure. It’s probably a JavaScript inconsistency between browsers.