在模拟器中播放 - Objective-C
我已在 MPMoviePlayerController 中将“allowsAirPlay”设置为“YES”,但 AirPlay 按钮未出现。 iOS模拟器支持AirPlay吗? 请举例说明如何通过 Apple TV 流式传输视频。
I've set "allowsAirPlay" to "YES" in my MPMoviePlayerController, but AirPlay button doesn't appear. Does iOS simulator support AirPlay?
And give please some example how to stream video through Apple TV for example.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不,在撰写本文时(iOS 7 刚刚发布)模拟器没有播放功能,也没有任何方法来模拟或测试它。拥有支持播放的设备 (Apple TV) 或程序 (http://www.airsquirrels.com/reflector/< /a>) 在同一个 wifi 网络中使镜像按钮出现在我的 iPhone 4S 上,但不在任何模拟器上。
编辑:有一种测试方法,模拟电视输出。
Nope, at the time of writing (iOS 7 just released) simulators don't have airplay nor any way to simulate or test it. Having an airplay capable device (apple TV) or program (http://www.airsquirrels.com/reflector/) in the same wifi network makes the mirroring button appear on my iPhone 4S but not on any simulator.
Edit: There is a way of testing it, simulate TV output.
如果您想在没有 Apple TV 或支持播放功能的扬声器的真实环境中测试您的应用程序,那么您可以通过任何 Mac 机器或 PC 进行测试。您只需从应用商店下载“Air Joy”应用程序即可。
1) 前往 App Store
2) 下载 AirJoy 应用程序
或
AirJoy
但在此之前请确保您的 mac 机(Airjoy已安装)并且您的设备位于同一网络中。
我已经按照上述说明测试了 Airplay 选项。
If you want to test your app in real environment without Apple TV or airplay enable speaker then you can test it through your any Mac machine or PC. You just need to download the app "Air Joy" from appstore.
1)Go to App Store
2)Download AirJoy application
OR
AirJoy
But before that make sure that your mac machine(Airjoy installed) and your device is in same network.
I have already tested the Airplay option with the above explanation.