airplay in simulator - objective-c

空扰寡人 提交于 2019-11-28 04:19:32

问题


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.


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/7421841/airplay-in-simulator-objective-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!