Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Automatically choose local browser #140

Open
mateuszkwiatkowski opened this issue Dec 2, 2020 · 9 comments
Open

Automatically choose local browser #140

mateuszkwiatkowski opened this issue Dec 2, 2020 · 9 comments
Labels
bug Something isn't working

Comments

@mateuszkwiatkowski
Copy link

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
Copy link
Member

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
Copy link
Author

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

@cloud8421
Copy link
Member

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

  • Yesterday night I paused playing music from the Spotify app on my computer and sent the computer to sleep
  • This morning I woke the computer up and wanted to resume music
  • I refocused the Tune tab (which is always open for me)

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?

@cloud8421 cloud8421 added the bug Something isn't working label Dec 3, 2020
@mateuszkwiatkowski
Copy link
Author

@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
Copy link
Member

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
Copy link
Author

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

@cloud8421
Copy link
Member

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

@cloud8421
Copy link
Member

@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
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants