开发者

airplay in simulator - objective-c

开发者 https://www.devze.com 2023-04-05 17:46 出处:网络
I\'ve set \"allowsAirPlay\" to \"YES\" in my MPMoviePlayerController, but AirPlay button doe开发者_运维技巧sn\'t appear. Does iOS simulator support AirPlay?

I've set "allowsAirPlay" to "YES" in my MPMoviePlayerController, but AirPlay button doe开发者_运维技巧sn't appear. Does iOS simulator support AirPlay? And give please some example how to stream video through Apple TV for example.


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.

airplay in simulator - objective-c


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号