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.
CocoaPods is the recommended method of installing PBJVideoPlayer, just to add the following line to your Podfile
:
pod 'PBJVideoPlayer'
#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];
- Need help? Use Stack Overflow with the tag 'pbjvideoplayer'.
- Questions? Use Stack Overflow with the tag 'pbjvideoplayer'.
- Found a bug? Open an issue.
- Feature idea? Open an issue.
- Want to contribute? Submit a pull request.
- AV Foundation Programming Guide
- PBJVision, iOS camera engine, features touch-to-record video, slow motion video, and photo capture
- Player, a simple iOS video player in Swift
PBJVideoPlayer is available under the MIT license, see the LICENSE file for more information.