https://github.com/piemonte/PBJVideoPlayer
▶️ video player, simple way to play and stream media on iOS/tvOS
https://github.com/piemonte/PBJVideoPlayer
ios media objective-c pbjvideoplayer player stream tvos video-player
Last synced: 10 months ago
JSON representation
▶️ video player, simple way to play and stream media on iOS/tvOS
- Host: GitHub
- URL: https://github.com/piemonte/PBJVideoPlayer
- Owner: piemonte
- License: mit
- Archived: true
- Created: 2013-11-07T19:16:03.000Z (over 12 years ago)
- Default Branch: main
- Last Pushed: 2021-03-03T06:29:26.000Z (about 5 years ago)
- Last Synced: 2025-07-04T12:04:13.472Z (10 months ago)
- Topics: ios, media, objective-c, pbjvideoplayer, player, stream, tvos, video-player
- Language: Objective-C
- Homepage:
- Size: 3.3 MB
- Stars: 616
- Watchers: 30
- Forks: 109
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - PBJVideoPlayer - ▶️ video player, simple way to play and stream media on iOS/tvOS. (OOM-Leaks-Crash / Player)
README

## PBJVideoPlayer
`PBJVideoPlayer` is a simple video player library for iOS and tvOS.
[](https://travis-ci.com/piemonte/PBJVideoPlayer)
[](http://cocoadocs.org/docsets/PBJVideoPlayer/) [](https://github.com/piemonte/PBJVideoPlayer/blob/master/LICENSE)
- Looking for a Swift video player? Check out [Player (Swift)](https://github.com/piemonte/Player).
- Looking for a Swift camera library? Check out [Next Level](https://github.com/NextLevel/NextLevel).
### Features
- [x] plays local media or streams remote media over HTTP
- [x] customizable UI and user interaction
- [x] no size restrictions
- [x] orientation change support
- [x] simple API
## Quick Start
[CocoaPods](http://cocoapods.org) is the recommended method of installing PBJVideoPlayer, just add the following line to your `Podfile`:
```ruby
pod 'PBJVideoPlayer'
```
## Usage
```objective-c
#import
```
```objective-c
// allocate controller
PBJVideoPlayerController *videoPlayerController = [[PBJVideoPlayerController alloc] init];
videoPlayerController.delegate = self;
videoPlayerController.view.frame = self.view.bounds;
// setup media
videoPlayerController.videoPath = @"https://example.com/video.mp4";
// present
[self addChildViewController:videoPlayerController];
[self.view addSubview:videoPlayerController.view];
[videoPlayerController didMoveToParentViewController:self];
```
## Community
- Need help? Use [Stack Overflow](http://stackoverflow.com/questions/tagged/pbjvideoplayer) with the tag 'pbjvideoplayer'.
- Questions? Use [Stack Overflow](http://stackoverflow.com/questions/tagged/pbjvideoplayer) with the tag 'pbjvideoplayer'.
- Found a bug? Open an [issue](https://github.com/piemonte/PBJVideoPlayer/issues).
- Feature idea? Open an [issue](https://github.com/piemonte/PBJVideoPlayer/issues).
- Want to contribute? Submit a [pull request](https://github.com/piemonte/PBJVideoPlayer/pulls).
## Resources
* [AV Foundation Programming Guide](https://developer.apple.com/library/ios/documentation/AudioVideo/Conceptual/AVFoundationPG/Articles/00_Introduction.html)
* [PBJVision](https://github.com/piemonte/PBJVision), iOS camera engine, features touch-to-record video, slow motion video, and photo capture
* [Player](https://github.com/piemonte/player), a simple iOS video player in Swift
## License
PBJVideoPlayer is available under the MIT license, see the [LICENSE](https://github.com/piemonte/PBJVideoPlayer/blob/master/LICENSE) file for more information.