Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 6684 [details]
When trying to receive playlist titles from iOS using MPMediaPlaylist.ValueForProperty("MPMediaPlaylistPropertyName") it returns an empty string.
Steps to Reproduce:
1. Run the attached Repro Project on a device that has playlists stored.
The playlist title is outputted to the console, and it is empty.
It should output the title of the playlist.
Build Date & Platform:
Version: 18.104.22.168 (Business Edition)
From a quick (pre-run) look your sample is using the constant name, not value.
OTOH it seem sour bindings are not optimal : the constant is not available and some API are bound in camelCase :-(
Confirmed. Replace with "name" and it works. IOW Apple's has something like:
static NSString MPMediaPlaylistPropertyName = "name";
and the sample is using the constant _name_ not it's value.
I'll keep the bug open because it seems those bindings requires a bit more love (like exposing those constants).
The constant already exists (even if it's not perfectly exposed in the`MPMediaPlaylistProperty` static class that expose the values.
Other fixes are in master / 9be5c487b663e7c799ca44c2ae41cb2dc5369440