fully-forged / tune

A streamlined Spotify client and browser with a focus on performance and integrations.
https://tune.fullyforged.com
MIT License
216 stars 16 forks source link

Automatically choose local browser #140

Open mateuszkwiatkowski opened 3 years ago

mateuszkwiatkowski commented 3 years ago

Hello,

When I open tune I can't play songs immediately - it shows error message "No device available" and I have to click Select button in the device switcher section. After that player works as expected. Is it possible to automatically select local device?

PS. Thank you for this great project! It's awesome and I'm using it instead of official Spotify client for some time already.

cloud8421 commented 3 years ago

Hi @mateuszkwiatkowski thanks for your kind words!

In my experience all official clients on all platforms essentially enter a sleep mode where they're not immediately reachable unless you specifically "wake them up" by transferring playback (which is what happens under the hood when you press the Select button).

One option is potentially doing this automatically when the browser window becomes visible - I might try to do that and see how it goes.

mateuszkwiatkowski commented 3 years ago

So it should automatically enable local device if tune is the only active Spotify client?

cloud8421 commented 3 years ago

I think it should respect the currently active client. Here's an example:

At this point, my expectation would be:

  1. Maintain the selection of the Spotify app, as it was the last device I used
  2. If possible, initialise a local browser player, but don't switch to it
  3. Wake up the the Spotify app, so that I can resume or queue new music

Preserving the playing device makes it that you don't get surprises with volume, etc.

Does this clarify the intent?

mateuszkwiatkowski commented 3 years ago

@cloud8421 My workflow is that I have only one active Spotify Client at time. When I launch official client I can just click play right away and it works. When I launch tune I there's always extra step necessary - clicking "select" before play. Also, I haven't launched client other than tune for a while and I still have to click "select" each time I launch tune. I'd like to have this extra step removed for a better UX. What do you think?

cloud8421 commented 3 years ago

What we could do is: if there's only one active player (after Tune creates its own), it gets auto selected on page load.

mateuszkwiatkowski commented 3 years ago

This is exactly what I was thinking about. Thank you!

cloud8421 commented 3 years ago

Small update that I'll look at this during the end of the year holidays.

cloud8421 commented 3 years ago

@mateuszkwiatkowski another update - due to personal circumstances I'm pausing work on this project for at least 2/3 months - so if you can't wait for this feature I would encourage you to fork and (optionally) send a PR.

mateuszkwiatkowski commented 3 years ago

@cloud8421 Hey! No worries, that's fine. Take your time to handle more important stuff. :-)