• This repository has been archived on 25/Aug/2022
  • Stars
    star
    616
  • Rank 72,837 (Top 2 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created about 11 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

▶️ video player, simple way to play and stream media on iOS/tvOS

PBJVideoPlayer

PBJVideoPlayer

PBJVideoPlayer is a simple video player library for iOS and tvOS.

Build Status Pod Version GitHub license

Features

  • plays local media or streams remote media over HTTP
  • customizable UI and user interaction
  • no size restrictions
  • orientation change support
  • simple API

Quick Start

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

pod 'PBJVideoPlayer'

Usage

#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];

Community

Resources

License

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