• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

MoviePlayerViewController: iOS 自定义播放器,手势快进/快退,手势修改音量/亮度, ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

MoviePlayerViewController

开源软件地址:

https://gitee.com/pljhonglu/MoviePlayerViewController

开源软件介绍:

#MoviePlayerViewController

iOS 下的自定义视频播放器,功能

  • 支持手势快进/快退
  • 支持手势调节亮度/音量
  • 记住播放进度
  • 可以播放网络 m3u8 视频
  • 可以播放本地 mp4 视频
  • 支持本地分段 mp4 视频的连续播放

使用

  • 播放本地 mp4
NSURL *url = [[NSBundle mainBundle] URLForResource:@"1" withExtension:@"mp4"];MoviePlayerViewController *movieVC = [[MoviePlayerViewController alloc]initLocalMoviePlayerViewControllerWithURL:url movieTitle:@"电影名称1"];[self presentViewController:movieVC animated:YES completion:nil];
  • 播放网络 m3u8
NSURL *url = [NSURL URLWithString:@"http://v.youku.com/player/getRealM3U8/vid/XMjE4MDU1MDE2/type/mp4/v.m3u8"];MoviePlayerViewController *movieVC = [[MoviePlayerViewController alloc]initNetworkMoviePlayerViewControllerWithURL:url movieTitle:@"电影名称2"];movieVC.datasource = self;[self presentViewController:movieVC animated:YES completion:nil];
  • 播放分段 mp4
NSURL *url1 = [[NSBundle mainBundle] URLForResource:@"1" withExtension:@"mp4"];NSURL *url2 = [[NSBundle mainBundle] URLForResource:@"2" withExtension:@"mp4"];NSURL *url3 = [[NSBundle mainBundle] URLForResource:@"3" withExtension:@"mp4"];NSArray *list = @[url1,url2,url3];MoviePlayerViewController *movieVC = [[MoviePlayerViewController alloc]initLocalMoviePlayerViewControllerWithURLList:list movieTitle:@"电影名称3"];[self presentViewController:movieVC animated:YES completion:nil];

License | 许可

This code is distributed under the terms of the GNU General Public License.

代码使用 GNU General Public License 许可发布.


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
云喵圈子-uniapp: 云喵圈子发布时间:2022-03-24
下一篇:
oschina-app: 用APICloud做的开源中国APP发布时间:2022-03-24
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap