Bug 16600 - MusicTrack.TrackLength unbound
Summary: MusicTrack.TrackLength unbound
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: 7.0.4.x
Hardware: PC Mac OS
: --- enhancement
Target Milestone: 7.2.1
Assignee: Marek Safar
Depends on:
Reported: 2013-12-04 13:42 UTC by Todd Berman
Modified: 2014-03-21 13:55 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:

Description Todd Berman 2013-12-04 13:42:50 UTC
public static double GetTrackLength(this MusicTrack track) {
            unsafe {
                int sz = sizeof(double);
                double b;
                Utils.MusicTrackGetProperty(track.Handle, 5, (void*)(&b), ref sz); // 5 is a magic num for TrackLength
                return b;

        private unsafe static extern MusicPlayerStatus MusicTrackGetProperty(IntPtr handle, int propertyId, void* data, ref int len);

is what I am using now, would be nice to actually bind it though.
Comment 1 Marek Safar 2013-12-12 11:30:58 UTC
Implemented in master
Comment 2 Udham Singh 2014-03-21 13:55:36 UTC
I have checked this issue on following builds:

Mac 10.9.2
Xamarin Studio : 4.2.4 (build 32)
Xamarin.iOS : (Enterprise Edition)

Screencast: http://screencast.com/t/w1GdQkkb

This issue is working fine. Hence, I am closing this issue.