defining view frame size for AV Player ViewController in ios
How does one play a video as a background in iOS? I followed this question How to play a local video with Swift? , but AV Player ViewController is a controller and doesn't let me decide where and how big the view containing video is. It always takes some predefined values. I've got this working for a project that I've done but not with an AVPlayerViewController - just a plain AVPlayer that I add to a view's layer. I have a collection view but you can just insert the video on a layer wherever you want. Try something like this: NSString *filepath = [[NSBundle mainBundle] pathForResource:@"my