MGPlayerView 0.4.8

MGPlayerView 0.4.8

airin维护。



  • 小马哥

MGPlayerView

CI Status Version License Platform

示例

要运行示例项目,请克隆仓库,然后首先在示例目录中运行pod install

要求

安装

MGPlayerView可以通过CocoaPods获取。要安装它,只需将以下行添加到Podfile中即可。

pod 'MGPlayerView'

用法

PlayerView *playerView =[[PlayerView alloc]initWithFrame:CGRectMake(0, 80, self.view.bounds.size.width, self.view.bounds.size.width *9/16)];
[self.view addSubview:playerView];
[playerView playWithUrl:@"http://stream1.shopch.jp/HLS/out1/prog_index.m3u8"];
[playerView supportFullScreenWithVC:self];
playerView.delegateUI =self;
-(UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{
    return UIInterfaceOrientationMaskAllButUpsideDown;
}
-(UIInterfaceOrientationMask)supportedInterfaceOrientations{
    return UIInterfaceOrientationMaskPortrait;
}

作者

[email protected], [email protected]

许可证

MGPlayerView 在 MIT 许可证下可用。有关更多信息,请参阅 LICENSE 文件。