Skip to content

pawankv89/Movie-Player

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Movie Player

Movie Player.


Added Some screens here.

Usage


iOS 9 Demo showing how to droodown on iPhone X Simulator in Objective-C.

- (void)configurationAVPlayer{

// grab a local URL to our video
NSURL *videoURL = [[NSBundle mainBundle] URLForResource:@"popeye" withExtension:@"mp4"];

// create an AVPlayer
AVPlayer *player = [AVPlayer playerWithURL:videoURL];

// create a player view controller
AVPlayerViewController *controller = [[AVPlayerViewController alloc]init];
controller.player = player;
[player play];

// show the view controller
[self addChildViewController:controller];
[self.view addSubview:controller.view];
//Frame
CGRect mainFrame = [[UIScreen mainScreen] bounds];
CGFloat avPlayerX = 10;
CGFloat avPlayerY = 100;

CGRect avPlayerFrame = CGRectMake(avPlayerX, avPlayerY, mainFrame.size.width-2*avPlayerX, mainFrame.size.width-2*avPlayerX);

controller.view.frame = avPlayerFrame;

}

License

This code is distributed under the terms and conditions of the MIT license.

Change-log

A brief summary of each this release can be found in the CHANGELOG.

About

Play Video offline using AVPlayer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published