AirPlay Media Option Selection May Set Audio and Subtitle

Originator:johnknapp
Number:rdar://23639660 Date Originated:11/20/2015
Status:Open Resolved:
Product:iOS, AppleTV Product Version:iOS 9.0.2, tvOS 9.0.1 (13T402)
Classification: Reproducible:Yes
 
Summary:
Selecting a new audio option or subtitle option on iOS device may change both values on Apple TV instead of just one.

Steps to Reproduce:
1. AirPlay a Multi-Audio/Multi-Subtitle movie from an iOS device using AVPlayer.
2. iOS Device: select some audio language.
3. AppleTV: select a different audio language.
4. iOS Device: select a different subtitle.

Expected Results:
1. AirPlay starts streaming the movie.
2. AVPlayer on iOS device and AppleTV are updated with the new audio.
3. AppleTV is updated. AVPlayer is updated (polling) with the new audio.
4. AVPlayer on iOS device and AppleTV are updated with the new subtitle.

Actual Results:
In step 4, the AppleTV is updated to the audio select in step 2. The subtitle is updated correctly. The audio shouldn't change. It works the other way around as well.

Version:
iOS 9.0.2, tvOS 9.0.1 (13T402)

Notes:
The work around is to set the audio to the selected audio before selecting a new subtitle and vice versa. For example:

// -- Start Workaround -- //
AVMediaSelectionOption *selectedAudio = [player selectedMediaOptionInMediaSelectionGroup:audioSelectionGroup];

[playerItem selectMediaOption:selectedAudio inMediaSelectionGroup:selectedAudio];
// -- End Workaround --//

// Select new subtitles.
[playerItem selectMediaOption:newSubtitle inMediaSelectionGroup:subtitles];

Configuration:
iPhone 6, WiFi, AppleTV (A1625)

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!