mirror of
https://github.com/Rigellute/spotify-tui.git
synced 2026-04-26 08:05:57 +03:00
[PR #408] [MERGED] Transfer playback when changing device #808
Labels
No labels
bug
enhancement
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-tui#808
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Rigellute/spotify-tui/pull/408
Author: @TimotheeGerber
Created: 4/17/2020
Status: ✅ Merged
Merged: 10/21/2020
Merged by: @Rigellute
Base:
master← Head:transfer_playback📝 Commits (1)
d73547eTransfer playback when changing device📊 Changes
3 files changed (+16 additions, -6 deletions)
View changed files
📝
README.md(+1 -1)📝
src/handlers/select_device.rs(+1 -1)📝
src/network.rs(+14 -4)📄 Description
Currently, selecting another device changes the device in the internal representation but does not transfer playback to the selected device. This is counter intuitive and lead to strange situations.
Imagine I have 2 devices,
receiver_1andreceiver_2, and I am currently playing a song onreceiver_1. If I selectreceiver_2,receiver_1continues to play the song. Nevertheless, commands (pause, next, previous, etc) are sent toreceiver_2. So, a pause command will not pause the song becausereceiver_1does not get the command.receiver_2gets the command and cannot do anything with it.This PR changes that behavior and transfer playback when selecting a device.
I hope that the modifications I have made are OK. Don't hesitate to comment them if needed!
Closes #366
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.