moviePlayerViewController

moviePlayerViewController

本文介绍了应用程式因未使用HTTP即时串流通讯协定而被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我需要进行任何代码级更改才能通过HTTP Live Streaming协议播放我的视频? Here is how I am playing the video. It is just pointing to a CloudFront URL:- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { STVideo *mySTVideo; mySTVideo = [items objectAtIndex:indexPath.row]; moviePlayerViewController = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL URLWithString:mySTVideo.video_url]]; moviePlayerViewController.view.backgroundColor = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"st-screen.png"]]; [self presentMoviePlayerViewControllerAnimated:moviePlayerViewController]; [moviePlayerViewController release]; [tableView deselectRowAtIndexPath:indexPath animated:YES];} 解决方案 It all seems quite straight forward to me. You are playing a stream for more than 10 minutes across the cell network without using HTTP live streaming. Having read through Apple's documentation on live streaming, I would guess the issue is entirely server side i.e. if you point the media player object at a live streaming URL, it'll figure it out automatically. 这篇关于应用程式因未使用HTTP即时串流通讯协定而被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-11 12:32