Airplay:从MPMoviePlayerController播放电影只会将音频流式传输到Apple TV [英] Airplay: Playing a Movie from MPMoviePlayerController results in only audio being streamed to Apple tv

查看:179
本文介绍了Airplay:从MPMoviePlayerController播放电影只会将音频流式传输到Apple TV的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

设置Airplay很容易。

Setting up Airplay was easy enough.

 self.moviePlayer = [[[MPMoviePlayerViewController alloc] initWithContentURL:url] autorelease];
 [self.moviePlayer setAllowsAirPlay:YES];

但是,当我尝试播放视频时,只会播放音频。视频继续在iPad上播放。
此外,Airplay控件仅显示源列表中的仅音频图标。 (见照片)。

However, when I try to play a video, only the audio is streamed. The video continues to play on the iPad. Additionally, the Airplay control only shows the "Audio Only" icon in the source list. (see photo).

这让我觉得iOS认为只播放音频。
我的设备上有Airplay的其他几个应用程序,它们正常工作。我打开和关闭了Apple TV和iPad。 iPad和Apple TV都安装了最新的操作系统。该视频正在逐步下载,但它在iPad上播放效果非常好。
有什么想法吗?

This makes me think that iOS "thinks" that only audio is playing. I have several other apps with Airplay on my device and they work correctly. I have cycled both the Apple tv and the iPad on and off. Both the iPad and the Apple tv have the latest OS installed. The video is being progressively downloaded, but it plays perfectly on the iPad. Any ideas?

推荐答案

所以没有吸引力的答案是iOS 5解决了这些问题。

So the unattractive answer is that iOS 5 solves these issues.

我发现操作系统和设备的某些组合会导致此问题:特别是带有iPhone 4的iOS 4。

I have found that certain combinations of OSs and devices cause this issue: specifically iOS 4 with an iPhone 4.

因此,如果您遇到问题,请安装iOS 5.截至本文时,有一篇文章引用了Apple声明,宣布iOS 5的合格设备(3G及以上)的渗透率约为30%。由于它自发布以来只有1周,所以我不太关心如上所述解决边缘情况。

So if you are having problems, install iOS 5. As of this post, there was a recent article quoting an Apple statement announcing that iOS 5 has a penetration of about 30% of eligible devices (3Gs and above). Since it has only been 1 week since its release, I am less concerned about solving the edge cases like the one I have stated above.

这显然是一个错误Airplay的iOS 4版本,此时不太可能更新iOS 4版本以修复错误。所以我现在称其为封闭案件。

This was clearly a bug in the iOS 4 version of Airplay, and it is unlikely that the iOS 4 version will be updated to fix the bug at this point. So I am calling it case closed for now.

这篇关于Airplay:从MPMoviePlayerController播放电影只会将音频流式传输到Apple TV的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆