Skip to content

Light weight view controller which add a video as a full screen background for IOS written in Objective-C

License

Notifications You must be signed in to change notification settings

dobiedad/EKVideoController

 
 

Repository files navigation

EKVideoController

EKVideoController

Light weight view controller which add a video as a full screen background for IOS written in Objective-C.

Demonstration

EKVideoController

Features

  • You can set a video as a full screen background of your view controller.
  • You can set a repeat mode.
  • You can add a mask to the video.
  • You can handle the speed of the video.
  • You can play, stop, pause and restart the video.

Usage

  • Inherit your ViewController by EKVideoController.
  • In ViewDidLoad or LoadView method, set videoPath. It can be a local path, or an url.
  • Then, call play.
  • Enjoy :)

Example

Programatic

- (void)viewDidLoad {
    [super viewDidLoad];

    self.videoPath     = [[NSBundle mainBundle] pathForResource:@"Video" ofType:@"mp4"];
    self.repeat        = YES;
    self.maskTintColor = [UIColor blackColor];
    self.maskAlpha     = 0.5f;

    [self play];
}

StoryBoard

- (void)viewDidLoad {
    [super viewDidLoad];

    self.videoPath     = [[NSBundle mainBundle] pathForResource:@"Video" ofType:@"mp4"];
    self.repeat        = YES;
    self.maskTintColor = [UIColor blackColor];
    self.maskAlpha     = 0.5f;
    
    self.videoSpeed    = 1.0f;

}

Contact

Lisence

EKVideoController is available under the MIT license. See the LICENSE file for more info.

About

Light weight view controller which add a video as a full screen background for IOS written in Objective-C

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 94.4%
  • Ruby 5.6%