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

[feat]: add method to change now playing metadata #16

Open
eduardoRoth opened this issue Jan 11, 2025 · 4 comments
Open

[feat]: add method to change now playing metadata #16

eduardoRoth opened this issue Jan 11, 2025 · 4 comments

Comments

@eduardoRoth
Copy link
Owner

No description provided.

@flexgrip
Copy link

flexgrip commented Feb 3, 2025

What's this mean? "Now playing" metadata as in the media session api to show controls and stuff in the notification tray?

@eduardoRoth
Copy link
Owner Author

@flexgrip , it means that you would be able to update the current item meta data (title, subtitle, artwork) so Android and iOS reflect the change in the notification (and Car Play/Android Auto)

@flexgrip
Copy link

flexgrip commented Feb 4, 2025

@eduardoRoth thats cool! This is exactly what I need. There’s a plugin called capacitor-media-session that uses the Media Session Web API to do this.

I’m sure you already know, but this is essential if you don’t want android to kill your app in the background and keep playing your media. I believe it also starts a foreground service, but I’m not sure how crucial that is.

This was a pain to implement with react native and barely works. So I’m super excited to try building out a prototype using your plugin.

Thanks!

@eduardoRoth
Copy link
Owner Author

@flexgrip right now my plugin creates a Media Session service on Android, so it doesn't get killed by Android; also it allows Android Auto to detect the media playing and show media controls for the video.

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

No branches or pull requests

2 participants