-
Notifications
You must be signed in to change notification settings - Fork 459
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
Playback Resumption with external applications #1064
Comments
I created the PR mentioned above. I tried to use the SimpleWear's media controller with Voice: I connected to Voice from the SimpleWear and hit the play button expecting Voice to continue playing the last played media like most other apps do, but it didn't. So, I looked at Voice's code and saw the |
An external controller can connect to the session and then use the If the controller calls That's the intended API Media3 offers. For a controller this would just be to build the controller and then call play:
I have verified this with the demo app:
at the end of With the above changes in the demo app, the The mentioned PR does changes in the app logic that aren't specific to Media3 APIs, so the best person to review that change is the app developer I think. |
On my audiobook player I received this PR which would cause all onConnect commands which do not come from my package to prepare the last played book.
PaulWoitaschek/Voice#2280
Previously it was already a little hacky because
onGetSession
was invoking the isReleased using reflection, see #422I wonder if the proposed PR is really the intended solution with media3 to support playback resumption coming from external applications.
Could you give some guideance (and even better: Write some documentation) how this is designed to work?
The text was updated successfully, but these errors were encountered: