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 empty CastTimeline on reconnect #9078

Closed
wants to merge 1 commit into from

Conversation

inv3rse
Copy link
Contributor

@inv3rse inv3rse commented Jun 18, 2021

After connecting to a cast device that is already playing, the CastTimeline would initially stay empty.
And in turn all methods that rely on the timeline would also report incorrect data.

The reason for this is that the MediaQueue would always return an empty array as active ids until there are further state changes on the cast. This does appear to be an issue in the cast framework, but it can easily be worked around by checking the MediaStatus instead.

Fixes #9026

They are not restored correctly on a reconnect.
@inv3rse
Copy link
Contributor Author

inv3rse commented Oct 25, 2022

I resolved the merge conflicts and checked the behavior again.
Without this change I could still reproduce the issue as described in #9026 (comment).
With this change the timeline was populated as expected.

@inv3rse
Copy link
Contributor Author

inv3rse commented Dec 5, 2022

@marcbaechinger can you have a look?

@icbaker
Copy link
Collaborator

icbaker commented Apr 15, 2024

Closing all PRs on this deprecated project. We are now unable to merge PRs from here. If you would like us to consider this change again please file a new PR on the media3 project: https://github.com/androidx/media/pulls

@icbaker icbaker closed this Apr 15, 2024
@google google locked and limited conversation to collaborators Jun 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants