This library provides an video player,only need a video url to play,it can fullScreen,seekto time,play and pause.
- Play a video with a URL
- Custom a special Show Play control view
Supported Image Formats
- iOS 7.0 or later
- tvOS 9.0 or later
- watchOS 2.0 or later
- Xcode 7.3 or later
- Read this Readme doc
How To Use
#import <XJPlayerView.h> ... player = [[XJPlayView alloc]initWithURl:@"http://22.214.171.124:32812/resources/videos/minion_01.mp4" controlView:nil frame:CGRectMake(0, 0, SCREENWIDTH, 200)]; player.backgroundColor = [UIColor redColor]; [self.view addSubview:player];
There are three ways to use XJPlayer in your project:
- using CocoaPods
Installation with CocoaPods
platform :ios, '7.0' pod 'XJNetWorkManager', '~> 1.0.1'
If you are using Swift, be sure to add
use_frameworks! and set your target to iOS 8+:
platform :ios, '8.0' use_frameworks!
Import headers in your source files
In the source files where you need to use the library, import the header file:
At this point your workspace should build without error. If you are having problem, post to the Issue and the community can help you solve it.
All source code is licensed under the MIT License.