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

(dis)connection of BT keyboard stops playback and loses timeline position #842

Open
nrvale0 opened this issue Jan 5, 2024 · 2 comments
Open

Comments

@nrvale0
Copy link

nrvale0 commented Jan 5, 2024

Important information

Android version:

LineageOS 20-20231227-nightly-gts4lvwifi / Android 13

mpv-android version:

2024-11-30-release

Which version of mpv-android introduced the problem (if known):

This has been a long-running issue with all(?) releases over the past few years.

Description

If a video or audio file is playing and a BT keyboard is connected/disconnected the media file's playback halts and upon restarting the timeline progress has been lost. Meaning the media file restart play at 0:00.

Log output

log.txt

@sfan5
Copy link
Member

sfan5 commented Jan 15, 2024

As far as I can see the app handles all relevant configuration changes and I don't have a BT keyboard to test this myself right now.
Nothing useful in the log either unfortunately.

@nrvale0
Copy link
Author

nrvale0 commented Jan 15, 2024

So I did some digging on forums. Lots of folks complaining about playback stopped when a BT speaker is (dis)connected and some folks saying that is an internal thing with the Android audio routing. Assuming that is correct, I thought "Well maybe its all BT devices and not just speakers?"

mpv-android seems to be impacted on both connect and disconnect. vlc, for comparison, doesn't seem to be impacted on either.

Not sure what to make of that data point other than it disproves my hypotheses about it being something intractable down in the Android BT routing logic.

I suppose I need to figure out how to tap the logs of some of the Android OS subsystems and see if I can spot anything interesting in those logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants