Baseflow / XamarinMediaManager

Cross platform Xamarin plugin to play and control Audio and Video
https://baseflow.com
MIT License
767 stars 305 forks source link

Android Media Manager Notifications Artist and Title Same Text #782

Open cklenk opened 3 years ago

cklenk commented 3 years ago

🐛 Bug Report

I am setting the IMediaItem Title and Artist and adding it to the Media manager notification. The text is different when setting but in the Android media section it shows the same text. image image

Expected behavior

Show correct artist and song title info in media manager controls

Reproduction steps

Set Title and Artist text on IMediaItem Add IMediaItem to queue UpdateNotification Title and Artist show the same text

Configuration

Version: 1.0.8

Platform:

andresgutice commented 3 years ago

Hi, I had the same problem, I suggest you do the following:

MediaFile.DisplaySubtitle = "Test Title";
MediaFile.Title = "Test Artist";

I hope this helps to you

cklenk commented 3 years ago

Hi, I had the same problem, I suggest you do the following:

MediaFile.DisplaySubtitle = "Test Title";
MediaFile.Title = "Test Artist";

I hope this helps to you

Awesome we will give that a try! Thank you.

cklenk commented 3 years ago

@andresgutice that did not work for us. Still same problem. Works correctly on iOS though. Thank you for your suggestion.

chicobel commented 2 years ago

Any update on this please ?

valentin-debris commented 1 year ago

Hi @martijn00 , any news about this one, I'm facing the same issue. More generally, when do you think you will be able to release a new version for this Plugin Nuget. It's still not fully compatible with Android 12 (the player notification doesn't show anymore), the last one was 7 months ago and the release for Android 13 has started, so should we abandon this good plugin or wait for a new release soon ? Regards, Valentin

martijn00 commented 1 year ago

I've done work on the repo, but depend on contributions to fix things before I can release. Please get the sample to work and I can release it

valentin-debris commented 1 year ago

Hello @martijn00 , are you planning to dig this issue at a moment, or from now, you only do merge request ? Regards, Valentin

florian-magina commented 1 year ago

Hello @martijn00, any news about this problem ? How could we find a solution ? Thanks a lot.

martijn00 commented 1 year ago

This is set here: https://github.com/Baseflow/XamarinMediaManager/blob/develop/MediaManager/Library/MediaItem.cs#L149

Maybe try and find out from there what's happening. I accept PR's for this!

adumitru2019 commented 5 months ago

Hi Martin,

I encountered similar issues with the MediaManager. The documentation is misguiding and insufficient.

DisplayTitle,Title and DisplaySubtitle are confusing. Which one is shown when and where on the Notification plugin (first/top, second/bottom)? What triggers the change of values of those labels? If the URL played by the player is changed by the user at runtime (to change a radio channel played in the program) then the first label/row in the Notification plugin can be set only once by the DisplayTitle and remains constant until a new Play is executed (with the same or other URL). The value shown on the second raw can be updated repeatedly in code by setting the value of the Title or DisplayTitle, but the value shown in first line/label remains unchanged. Disposing the CrossMediaManager doesn't seem to clear the Queue or Notification completely: when CrossMediaManager is used for the first time to play a URL, then the first row in the Notification plugin can be set with any value in code; if the CrossMediaManager is disposed, reinitialized and a new URL is played, the first row in Notification plugin cannot be set from the code; it picks once what is set in DisplayTitle then remains again unchangeable.

Can the documentation of MediaManager be updated to explain better the purpose and meaning of its components and settings ?

There is no explanation about DisplayTitle and DisplaySubtitle. Also, it doesn't say anything about how the notifications are shown in locked screen or on Android's notification area. Are titles and subtitles and DisplayTitle shown automatically from metadata (of a stream or of a file) or developer has to push them? What is the meaning and purpose of IsMetadaExtracted flag?

Extraction of metadata as described in the documentation doesn't work when playing streams from Internet (from channels/stations which otherwise show metadata in other media players). That section should be either corrected or removed.

How does the Queue work when playing a stream from a URL?

Thanks.