MPPlayerView prevents AVAudioSessionRouteChange notifications
Originator: | arobinson | ||
Number: | rdar://35432156 | Date Originated: | 2017-11-09 |
Status: | Closed | Resolved: | |
Product: | iOS + SDK | Product Version: | iOS 11.2 (15C5097d) |
Classification: | Reproducible: | Always |
Area: Media Player Framework Summary: Initializing an MPVolumeView appears to prevent AVAudioSessionRouteChange notifications from being posted. Steps to Reproduce: See attached project for a working sample. 1. Initialize an MPVolumeView as a stored property. 2. Add an observer for AVAudioSessionRouteChange notifications. 3. Change the route on the device (for example by plugging in a set of headphones) Expected Results: An AVAudioSessionRouteChange notification should be received. Actual Results: The notification is not received. Route change events are not received for any route changes, whether bluetooth or physical audio connections. Version/Build: iOS 11.2 (15C5097d) Configuration: iPhone SE, iPhone 7 Plus, and iPhone X running iOS 11.2 (15C5097d).
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!
This is resolved in iOS 11.2 beta 3 (15C5107a).