m3u8流媒体只是在播放iOS 7时获得音频

时间:2014-08-01 08:08:32

标签: ios objective-c video-streaming m3u8

您好我正在尝试在xcode5 iOS 7.1中播放流式直播视频HLS我正在使用以下代码

NSURL *movieFile = [NSURL URLWithString:@"http://streaming.tlsur.net:1935/blive/ngrp:balta.stream_all/playlist.m3u8"];
player = [[MPMoviePlayerViewController alloc] initWithContentURL:movieFile];
[self presentMoviePlayerViewControllerAnimated:player];
[player.moviePlayer play];

当我将其运行到模拟器中时,它会抛出此错误

2014-08-01 02:48:23.598 StreamingTest[379:4303] RTCReporting: resolve from http://pancake.apple.com/bags/hls?version=4.12
2014-08-01 02:48:23.845 StreamingTest[379:60b] _itemFailedToPlayToEnd: {
kind = 1;
new = 2;
old = 0;

如果我在我的设备中运行它不会抛出_itemFailedToPlayToEnd但我只能获得音频

任何人都知道发生了什么事?

Cheerz

0 个答案:

没有答案