Setting AVLayerVideoGravityResizeAspectFill on a AVPlayerLayer has no effect

Originator:dimitribouniol
Number:rdar://10625087 Date Originated:Dec 24, 2011
Status:Duplicate/10132358 Resolved:
Product:iPhone SDK Product Version:5.0.1
Classification:UI/Usability Reproducible:Always
 
Summary:
Under iOS 5, setting AVLayerVideoGravityResizeAspectFill on a playing AVPlayerLayer has no effect. If it is set before a AVPlayer is associated though, the change takes place.

Steps to Reproduce:
Set the videoGravity of an AVPlayerLayer with a playing AVPlayer to AVLayerVideoGravityResizeAspectFill.

Expected Results:
The video will grow in size.

Actual Results:
Nothing happens until a new AVPlayer is associated.

Regression:
Worked in iOS 4.x

Comments

playerLayer.bounds = playerLayer.bounds;

works around.

By t.engelmeier at Feb. 7, 2012, 1:03 a.m. (reply...)

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!