在投影仪上演示手机上的网络应用程序的最佳方法是什么? (没有模拟器/仿真器)

发布于 2024-12-04 00:04:09 字数 1459 浏览 5 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

烟雨扶苏 2024-12-11 00:04:09

如果您使用的是 iPhone,则可以使用一些库来实现镜像效果,从而允许您使用适配器和投影仪。

以下库是我计划使用的库,尽管尚未实现(如果可能的话,我将在本周末之前实现,因为这是向我推荐的库)。当然,您需要包含其余文件,我链接的只是 .m。

http://code.google.com /p/iphoneos-screen-mirroring/source/browse/trunk/UIApplication%2BScreenMirroring.m

值得注意的是,Apple 支持此功能,因为我相信它使用私有 Apple API 因此不会被应用商店批准。我建议对当前项目的一个版本进行分支并将其实现为演示,这样您仍然拥有应用程序的干净版本。

为清楚起见进行编辑:只有 iPad 2 支持通过适配器对所有应用程序进行本机镜像,而 iPad 1 和所有 iPhone 默认情况下都不支持通过适配器对 Apple 开发的应用程序以外的任何应用程序进行镜像。

If you are using an iPhone there are libraries available that you can implement to give the effect of mirroring to allow you to use an adapter and projector.

The following library is what I plan on using, though have not implemented quite yet(If its possible, I will do so by the end of the week as this is what was recommended to me). Of course you will need to include the rest of the files, the one I have linked is merely the .m.

http://code.google.com/p/iphoneos-screen-mirroring/source/browse/trunk/UIApplication%2BScreenMirroring.m

It is worth noting that this is NOT supported by Apple as I believe it uses private Apple API's and as a result will not be approved for the app store. I would recommended branching of a version of your current project and implementing this to demo, so you still have a clean version of your app.

Edit for clarity: Only the iPad 2 supports native mirroring for what I believe is all apps through an adapter, the iPad 1, and all iPhones dont support mirroring by default through adapters for anything other than apps developed by Apple.

多情癖 2024-12-11 00:04:09

我们在工作中这样做是为了演示我们正在开发的应用程序。我们必须使用 iPad 2 和 Apple 数字 AV 适配器

http://store.apple。 com/uk/product/MC953ZM/A

请注意苹果产品页面上的文字:

仅 iPad 2 支持镜像。iPad

2 的视频输出最高支持 1080p,iPad 最高支持 720p, iPhone 4 和 iPod touch(第 4 代)。电影播放分辨率高达 720p

We do this at work to demo our apps we are working on. We have to use an iPad 2 and an Apple Digital AV Adapter

http://store.apple.com/uk/product/MC953ZM/A

Note the text on apples product page:

Mirroring supported only by iPad 2.

Video out supports up to 1080p for iPad 2 and up to 720p for iPad, iPhone 4 and iPod touch (4th generation). Movies play at up to 720p

穿越时光隧道 2024-12-11 00:04:09

在我工作的地方,我们采用了一种不太精致的方法来展示我们的应用程序。我们同时生产 Android 和 iOS 设备,因此我们需要更通用的东西。我们选择使用数字演示器,它看起来效果很好。不过,我认为如果你可以使用 @bandejapaisa 提到的 iPad 2,你的情况会更好。

We have a less refined approach to presenting our apps where I work. We do both Android and iOS devices, so we needed something more universal. We chose to use a digital presenter, and it seems to work well. However, I think if you can use an iPad 2 mentioned by @bandejapaisa, you will be better off.

和我恋爱吧 2024-12-11 00:04:09

正如其他人所建议的,您可以使用 iPad 2 并通过电缆镜像到投影仪,或者如果您通过无线 AirPlay 镜像、AppleTV 和 iOS 5 拥有开发者帐户。

但是,如果您需要在 iPhone 4 上进行演示,则运气不好,除非您愿意越狱,否则有几个实用程序可以让您执行此操作(例如 Ryan Petrich 的 DisplayOut)。

如果您真的很绝望,您可以创建一个 iOS 应用程序来运行您的 Web 应用程序,即本质上是一个 UIWebView然后使用 TVOutManager 等库通过支持的电缆镜像您的应用程序。

As others have suggested, you can use an iPad 2 and mirror to your projector using a cable or if you have a developer account through wireless AirPlay mirroring, an AppleTV and iOS 5.

However, if you need to demo on a iPhone 4, you are out of luck, unless you are willing to jailbreak, there are several utilities that will allow you to do this (Ryan Petrich's DisplayOut for example)

If you are really desperate, you could create an iOS app to run your web app in that is essentially a UIWebView and then use a library like TVOutManager to mirror your app using a supported cable.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文