/PBJVideoPlayer

iOS video player, simple drop in component for playing and streaming media

Primary LanguageObjective-CMIT LicenseMIT

PBJVideoPlayer

PBJVideoPlayer

PBJVideoPlayer is a simple iOS video player library.

It provides a quick means to play local and stream remote media on iOS, but also enables easy customization of loading and user interaction. The library is written in Objective-C and supports iOS 6 through iOS 8, and is also 64-bit compatible.

If you're looking for a video player written in Swift, checkout Player.

Please review the release history for more information.

Build Status Pod Version

Installation

CocoaPods is the recommended method of installing PBJVideoPlayer, just to add the following line to your Podfile:

pod 'PBJVideoPlayer'

Usage

#import "PBJVideoPlayerController.h"
// allocate controller
_videoPlayerController = [[PBJVideoPlayerController alloc] init];
_videoPlayerController.delegate = self;
_videoPlayerController.view.frame = self.view.bounds;

// setup media
_videoPlayerController.videoPath = PBJViewControllerVideoPath;

// present
[self addChildViewController:_videoPlayerController];
[self.view addSubview:_videoPlayerController.view];
[_videoPlayerController didMoveToParentViewController:self];

Community

Resources

License

PBJVideoPlayer is available under the MIT license, see the LICENSE file for more information.