AirPlay Mirroring iPhone to Mac OS / using UIWebView + AirPlay

烈酒焚心 提交于 2019-12-07 11:21:16

问题


I need to live-demo a Mobile Safari browser app (iOS 5, iPhone 4S) on my Macbook and was wondering the best way to do this?

One way I thought might be possible would be using AirPlay Mirroring, but there doesn't seem to be any Mac OS apps capable of showing my iPhone screen mirrored.

I am an (beginner) iOS developer and wondered if there was anyway I could knock up a basic app with a UIWebView in it to somehow stream the contents of the web page and my interactions with it to my Mac.

Any thoughts?

EDIT: Yes I know I could use the iPhone Simulator, but I need to interact with it on the handset using the mobile phone network.


回答1:


The situation has changed since this was asked.

AirServer (AirServerApp.com) and Reflection (ReflectionApp.com) both support AirPlay mirroring. Here's an article comparing them:

http://www.macstories.net/reviews/mirroring-multiple-ios-devices-to-a-mac-comparing-airserver-and-reflection/




回答2:


Since your device (iPhone 4s) supports video mirroring via AirPlay, then you should be able to use AirServer to enable mirroring to your Mac.

Update: As pointed out by Marc Surman, AirServer does not support mirroring, rendering this answer incorrect. Thanks for playing.




回答3:


Mirroring uses FairPlay encryption, which is why AirServer and similar applications can't do mirroring.

You CAN, however, fake this using AirplayKit: https://github.com/rothacr/AirplayKit

The iOS demo in that repo actually does a simple mirror by sending an image of your screen to the airplay device using a timer. It would probably work just fine for a demo, and should work with AirServer.



来源:https://stackoverflow.com/questions/7799119/airplay-mirroring-iphone-to-mac-os-using-uiwebview-airplay

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