Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix change track, while playing to AirPlay receivers issue 594 #609

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dmr1987
Copy link

@dmr1987 dmr1987 commented Jan 8, 2025

Fix issue Issue #594

When playing on AirPlay receivers (for example, HomePod), after changing a track, the new track is not played on the AirPlay receiver.
The problem is with the pyatv component https://github.com/postlund/pyatv
The component returns the error "already streaming to device"
This error is generated https://github.com/postlund/pyatv/blob/master/pyatv/protocols/raop/__init__.py#L132
To fix this, we need to stop streaming to the device completely before sending the new media_content_id to the AirPlay receiver, and only after that we can send the new media_content_id and try to play it using play_media.

@dmr1987 dmr1987 changed the title Fix change track, while playing to AirPlay receivers Fix change track, while playing to AirPlay receivers issue 594 Jan 8, 2025
@AlexxIT AlexxIT self-assigned this Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants