MPMusicPlayerController can't fade out on pause

Originator:rob
Number:rdar://29313522 Date Originated:17-Nov-2016 10:20 AM
Status:Open Resolved:
Product:iOS SDK Product Version:10.1.1
Classification:Enhancement Reproducible:Always
 
Summary:
Using MPMusicPlayerController, it's not possible to fade out playing music when pausing. This functionality is desirable when the application doesn't want to abruptly end playback (e.g. in the context of a wedding or party).

Steps to Reproduce:
1. Attempt to fade out a playing MPMusicPlayerController on pause programatically

Expected Results:
An API should be available for fading out on pause with a duration. e.g. `pause(fadeoutDuration:)`

Actual Results:
`pause()` is the only API available and it pauses playback immediately

Regression:
This API doesn't exist as of iOS 10.1.1

Notes:
This functionality is desired in our applications WeddingDJ and PartyMonster.

Using AVPlayer/AVAudioPlayer APIs is not a valid workaround because not all MPMediaItems can be played back with those APIs (e.g. Apple Music items)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com 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!