I am using AVPlayerViewController for live video streaming in my app.
I have a problem with video window size in landscape mode. The following code works fine for all iPad models and for iPhone 4s only. However, for iPhone 5 and later (iPhone 6, 6s etc.), the video is not fullscreen, i.e. it is not covering the entire screen in the landscape mode. The video does cover the full height of screen, but not full width of screen.
NSURL *videoURL = [NSURL URLWithString:channelURL];
player = [AVPlayer playerWithURL:videoURL];
playerController.player = player;
[self presentViewController:playerController animated:YES completion:nil];
[player play];
Thanks.