To run the example project, clone the repo, and run pod install from the Example directory first.
HTNativePlayer is available through CocoaPods. To install it, simply add the following line to your Podfile:
添加头文件:#import "HTNativePlayer.h"
HTNativePlayer *view = [[HTNativePlayer alloc] init];
view.frame = CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height);
[self.view addSubview:view];
self.playView = view;
view.autoPlay = YES;
view.cyclePlay = YES;
view.url = @"http://xxx";tao, xxx
HTNativePlayer is available under the MIT license. See the LICENSE file for more info.