Tutorial by Examples: avplayerviewcontroller

Objective-C NSURL *url = [[NSURL alloc] initWithString:@"YOUR URL"]; // url can be remote or local AVPlayer *player = [AVPlayer playerWithURL:url]; // create a player view controller AVPlayerViewController *controller = [[AVPlayerViewController alloc] init]; [self presentViewC...

Page 1 of 1