▶️ video player, simple way to play and stream media on iOS/tvOS
PBJVideoPlayer
is a simple video player library for iOS and tvOS.
CocoaPods is the recommended method of installing PBJVideoPlayer, just add the following line to your Podfile
:
pod 'PBJVideoPlayer'
#import <PBJVideoPlayer/PBJVideoPlayer.h>
// 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];
PBJVideoPlayer is available under the MIT license, see the LICENSE file for more information.