XamarinMediaManager icon indicating copy to clipboard operation
XamarinMediaManager copied to clipboard

Android Media Manager Notifications Artist and Title Same Text

Open cklenk opened this issue 4 years ago • 10 comments

🐛 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:

  • [ ] :iphone: iOS
  • [X] :robot: Android 11
  • [ ] :checkered_flag: WPF
  • [ ] :earth_americas: UWP
  • [ ] :apple: MacOS
  • [ ] :tv: tvOS
  • [X] :monkey: Xamarin.Forms 4.8.0.1821

cklenk avatar Jan 19 '21 21:01 cklenk

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

andresgutice avatar May 05 '21 12:05 andresgutice

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 avatar May 05 '21 17:05 cklenk

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

cklenk avatar May 07 '21 15:05 cklenk

Any update on this please ?

chicobel avatar Sep 17 '22 14:09 chicobel

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

valentin-debris avatar Nov 25 '22 14:11 valentin-debris

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

martijn00 avatar Nov 25 '22 14:11 martijn00

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

valentin-debris avatar Jan 23 '23 10:01 valentin-debris

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

florian-magina avatar Feb 27 '23 09:02 florian-magina

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!

martijn00 avatar Feb 27 '23 11:02 martijn00

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.

adumitru2019 avatar Apr 07 '24 21:04 adumitru2019