-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add the option to update trackMetadata #331
Add the option to update trackMetadata #331
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Any chance this can get merged soon? Looks like a useful addition. |
Is there a possibility for an update on this? |
I'm waiting for a review on the iOS part from @dcvz, once he gives a green light, we can merge it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only one comment, otherwise looks good 👍
func updateMetadata(_ item: Track) { | ||
MPNowPlayingInfoCenter.default().ap_update( | ||
with: item, | ||
duration: 100, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should have track duration from the item, right? perhaps even progression can be inferred here.
You're dynamically sending metadata updates, don't you think it would be better if you updated the current track object instead? I was thinking about something like For instance, if you have used |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this @HybridFox and sorry for the delay! <3
Works for android & iOS. Handy for icecast / shoutcast / etc... audio streams.
#194 #93 #192