MPMusicPlayerController's currentPlaybackTime can return NaN

Number:rdar://28435485 Date Originated:22 Sept 2016
Status:Open Resolved:No
Product:iOS SDK Product Version:iOS 10
Classification:Other Bug Reproducible:Always
When playback is stopped, currentPlaybackTime returns NaN

Steps to Reproduce:
1. Don't play anything
2. Check [MPMusicPlayerController applicationMusicPlayer].currentPlaybackTime


1. Play something
2. Let the song end so playback stops again
3. Check [MPMusicPlayerController applicationMusicPlayer].currentPlaybackTime

Expected Results:
currentPlaybackTime = 0 or even -1

Actual Results:
currentPlaybackTime = NaN which causes calculation issues

iOS 10.0.1, Xcode 8.0, OS X El Capitan 10.11.6


iPhone 6, Project Fi



Apple Developer Relations May 10 2017, 5:26 PM

Engineering has the following feedback for you:

Thank you for you feedback. This issue has been resolved.

This should be published in the MediaPlayer framework documentation.

We are now closing this bug report.

If you have questions or comments about the resolution, please update your bug report with that information so we can respond.

By jay.whitsitt at Nov. 15, 2017, 12:56 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!