AVPlayerViewController should have a UIView counterpart

Originator:davbeck
Number:rdar://21943071 Date Originated:22-Jul-2015 10:07 AM
Status:Open Resolved:
Product:iOS SDK Product Version:Xcode-beta (7A165t)
Classification:Other Bug Reproducible:Always
 
Summary:
With the deprecation of MPMoviePlayerController, the only option to play video inline is AVPlayerViewController. However, being a UIViewController subclass comes with a lot of limitations. It is the UIViewController montra that views should not know about their view controllers. However, anything that wants to show an inline video has to have a reference to it’s view controller. For instance, if you wanted to display a video in a table view or collection view cell, or in a “rich text“ view that allows video embeds.

Further, giving a view controller authority over the view controllers view gets very confusing when that view controller goes full screen. At this point, is it the containers responsibility to set that frame? What happens if it does from a routine layoutSubviews call?

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!