Apple Media Service initial ElapsedTime is erroneous if connected after media playback has started

Originator:martijn
Number:rdar://21297900 Date Originated:09-Jun-2015
Status:Open Resolved:No
Product:iOS Product Version:8.3
Classification:Bug Reproducible:Yes
 
Summary:
When Apple Media Service (AMS) is connected while media was already playing for a while, the initial this is reported by AMS ElapsedTime is erroneous, sometimes even negative (see attached hex dump of negative time).

Steps to Reproduce:
1. Pair an AMS enabled accessory with and iOS device
2. Toggle Bluetooth OFF on the iOS device
3. Start media playback, for example using the Apple Music app
4. Let the media play for 30 secs or so (just let it continue playing after this step)
5. Toggle Bluetooth back ON on the iOS device.
6. Let the accessory connect to the iOS device again
8. Let the accessory set up AMS (subscribe, register for entity updates, etc.)
9. When AMS sends the first update for the Playback info attribute of the Player entity, observe that the ElapsedTime is completely off from the actual elapsed time as seen in the iOS Music app.

Expected Results:
The ElapsedTime should always contain approx. the same time as the elapsed time that is reported by the iOS app that is playing back the media.

Actual Results:
The ElapsedTime is erroneous when AMS is connected after the media playback has started.

Version:
iOS 8.3

Notes:


Configuration:
iPhone 5

Attachments:
'ams-negative-elapsed-time.txt' was successfully uploaded.

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!