Detaching AVPlayer from AVPlayerLayer results in gap

Originator:ullrich.schaefer
Number:rdar://16563954 Date Originated:09-Apr-2014 01:04 PM
Status: Resolved:
Product:iOS SDK Product Version:7.1
Classification:UI/Experience Reproducible:Always
 
Summary:
I'm using AVPlayer to play back video. I want to dismiss the view that plays back the video, but keep the audio playing.
Whenever the the AVPlayerLayer is deallocated or it's player property is set to nil I get a gap in playback.

I attached a demo project to show the problem.

The same problem occurs on attaching new player layers (or reattaching existing) to the player.

Steps to Reproduce:
1. Run the attached demo project in iOS simulator (tested on 64bit iOS 7.1)
2. wait for the video to play
3. Press the "Detach view 1" button

Expected Results:
I expect the 2nd video view to continuously play back the video. Also I expect the audio to play flawlessly.

Actual Results:
The 2nd video view stops for a second. Also the audio is interrupted.

Version:
iOS 7.1

Notes:


Configuration:


Attachments:
'PlayerDetatchDemo.zip' was successfully uploaded. (http://cl.ly/3J2j1f2Q1T0A)

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!