{"id":18880778,"url":"https://github.com/keenteam1990/ywvideoplayer","last_synced_at":"2026-02-20T20:30:19.364Z","repository":{"id":107586903,"uuid":"130376413","full_name":"KeenTeam1990/YWVideoPlayer","owner":"KeenTeam1990","description":"📽基于ijkPlayer的网络播放器，支持HTTP、RTMP、HLS(m3u8)、本地视频等多种格式","archived":false,"fork":false,"pushed_at":"2018-04-20T14:56:39.000Z","size":44951,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-31T03:22:57.626Z","etag":null,"topics":["rtmp","rtmp-player"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KeenTeam1990.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-20T14:54:11.000Z","updated_at":"2018-10-19T06:40:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"836cdc4e-e80e-444d-89c8-c85211658f08","html_url":"https://github.com/KeenTeam1990/YWVideoPlayer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeenTeam1990%2FYWVideoPlayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeenTeam1990%2FYWVideoPlayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeenTeam1990%2FYWVideoPlayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeenTeam1990%2FYWVideoPlayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KeenTeam1990","download_url":"https://codeload.github.com/KeenTeam1990/YWVideoPlayer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239847950,"owners_count":19707052,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rtmp","rtmp-player"],"created_at":"2024-11-08T06:45:57.401Z","updated_at":"2026-02-20T20:30:19.312Z","avatar_url":"https://github.com/KeenTeam1990.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Pod](https://img.shields.io/badge/Pod-1.0.3-orange.svg)](https://github.com/90candy)\n[![Platform](https://img.shields.io/badge/Platform-iOS-ff69b4.svg)](https://github.com/90candy)\n [![License](https://img.shields.io/github/license/alibaba/dubbo.svg)](https://github.com/90candy)\n[![Author](https://img.shields.io/badge/Author-阿唯不知道-blue.svg)](https://www.jianshu.com/u/0f7d26d766f4)\n\n### 全屏模式 - 效果图\n![](./效果图.png)\n\n\u003e 基于ijkPlayer的网络播放器，支持HTTP、RTMP、HLS(m3u8)、本地视频等多种格式\n\u003e \n\u003e 3分钟快速集成播放器，支持小屏、全屏模式，无需手动添加任何依赖库\n\n#### 一、推荐使用`CocoaPods`方式集成\n**1、在podfile文件中添加，然后执行 `pod install`操作，文件较大，请耐心等待**\n\n```\npod 'YWVideoPlayer', '~\u003e 1.0.3'\n```\n\n**2、`AppDelegate.h` 文件中加入 `fullScreen ` 属性，如下**\n\n```\n#import \u003cUIKit/UIKit.h\u003e\n@interface AppDelegate : UIResponder \u003cUIApplicationDelegate\u003e\n\n@property (strong, nonatomic) UIWindow *window;\n@property (nonatomic) BOOL fullScreen;\n\n@end\n```\n\n**3、在 `AppDelegate.m` 文件中 加入横屏方法（无需调用）**\n\n```\n- (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{\n    if (self.fullScreen == YES) {\n        return UIInterfaceOrientationMaskAll;\n    }\n    return UIInterfaceOrientationMaskPortrait;\n}\n```\n\n**4、在播放器控制器界面导入头文件**\n*Demo 里面是在`BasePlayerViewController`中引入相关头文件*\n\n```\n#import \"YWMediaPlayerView.h\"\n```\n\n**5、照着`BasePlayerViewController`文件中的方式去使用即可**\n\n```\n// 这里的SecondViewController是继承了BasePlayerViewController\n#import \"SecondViewController.h\"\n@interface SecondViewController ()\n@end\n@implementation SecondViewController\n\n- (void)viewDidLoad {\n    [super viewDidLoad];\n    // Do any additional setup after loading the view.\n    self.view.backgroundColor = [UIColor whiteColor];\n    \n    self.isLiveVideo = YES;\n    [self.view addSubview:self.playerView];\n   \n    // 测试链接 http、rtmp、m3u8\n    // NSString *testUrl = @\"http://flv2.bn.netease.com/videolib3/1604/28/fVobI0704/SD/fVobI0704-mobile.mp4\";\n    // NSString *testUrl = @\"rtmp://live.hkstv.hk.lxdns.com/live/hks\";\n    NSString *testUrl = @\"http://dlhls.cdn.zhanqi.tv/zqlive/49427_jmACJ.m3u8\";\n    [self showPlayerViewWithUrl:testUrl Title:@\"视频的标题\"];\n    // 自动播放\n    [self autoPlay];\n}\n\n@end\n```\n\n\n#### 二、手动拖拽到项目方式\n**完善中**\n\n-----------------------------------\n\n**简书地址：https://www.jianshu.com/p/546df1c8a3fc**\n\n\u003cdiv align=\"center\"\u003e    \n\t\u003cimg src = \"http://upload-images.jianshu.io/upload_images/2822163-23eb59c7072548bb.png\" width = \"300\" height = \"100\" alt=\"图片名称\" align = center /\u003e\n\u003c/div\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeenteam1990%2Fywvideoplayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeenteam1990%2Fywvideoplayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeenteam1990%2Fywvideoplayer/lists"}