PBJVideoPlayer
is a simple iOS video player library.
- plays local media or streams remote media over HTTP
- customizable UI and user interaction
- no size restrictions
- orientation change support
- simple API
If you're looking for a video player written in Swift, checkout Player. For video recording, checkout PBJVision.
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.