-
Notifications
You must be signed in to change notification settings - Fork 409
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
How to show a stop button in the notification with Media3 #200
Comments
I think you can to do a custom command for the stop action. The custom command is reflected on all API levels either by adding an action to the notification or by replicating the custom Media3 commands to a media1 custom action in the legacy session. This comment of issue #38 explains with code samples how you can do custom commands. |
Can you help me with a sample code just for a simple player media 3 , am
really struggling for the past 3 months its not working at all
…On Wed, 2 Nov 2022, 17:50 Marc Baechinger, ***@***.***> wrote:
I think you can to do a custom command for the stop action. The custom
command is reflected on all API levels either by adding an action to the
notification or by replicating the custom Media3 commands to a media1
custom action in the legacy session.
This comment
<#38 (comment)> of
issue #38 <#38> explains with
code samples how you can do custom commands.
—
Reply to this email directly, view it on GitHub
<#200 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALOGU3RYIQRVZ537ANJJVDLWGKEVTANCNFSM6AAAAAARUUT34Y>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
@Symon265 The comment in issue #38 has sample code regarding custom commands. If you are asking for general sample code or documentation, I'd look into the session demo app that implements a |
On Android 13, the mini player that is created by System UI is based on the media session. This mini player does not support a stop button. If you want the mini player to show a stop button, then you need to do a custom command. |
I'm closing this issue because it is answered as to use a custom layout with a custom stop Please re-open as needed. |
How to show PlayerNotificationManager useStopAction in media3 ,
Earlier we used to impalement the PlayerNotification and use useStopAction to show the stop button, how can we do the same in media3
The text was updated successfully, but these errors were encountered: