代码拉取完成,页面将自动刷新
#MoviePlayerViewController
iOS 下的自定义视频播放器,功能
NSURL *url = [[NSBundle mainBundle] URLForResource:@"1" withExtension:@"mp4"];
MoviePlayerViewController *movieVC = [[MoviePlayerViewController alloc]initLocalMoviePlayerViewControllerWithURL:url movieTitle:@"电影名称1"];
[self presentViewController:movieVC animated:YES completion:nil];
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];
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];
This code is distributed under the terms of the GNU General Public License.
代码使用 GNU General Public License 许可发布.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。