This question already has an answer here:
这个问题在这里已有答案:
- How do I test a camera in the iPhone simulator? 5 answers
- 如何在iPhone模拟器中测试相机? 5个答案
In my application, I have a preview option to show video captured in iPhone(camera), I am using now iPhone simulator, Is it possible to capture video frame in iPhone simulator and show it in any view. As I am new to this, I don't have any idea where to start. Any tutorial or link is very helpful...
在我的应用程序中,我有一个预览选项来显示在iPhone(相机)中捕获的视频,我现在正在使用iPhone模拟器,是否可以在iPhone模拟器中捕获视频帧并在任何视图中显示它。由于我是新手,我不知道从哪里开始。任何教程或链接都非常有用......
thanks
谢谢
2 个解决方案
#1
23
So far apple iPhone simulator don't have feature to connect to the system camera. Only way to see working camera application is to use real device
到目前为止苹果iPhone模拟器没有连接系统摄像头的功能。查看工作相机应用程序的唯一方法是使用真实设备
#2
7
As iDroid said, there doesn't seem to be a way (here's the corresponding doc, http://developer.apple.com/library/ios/#documentation/Xcode/Conceptual/ios_development_workflow/125-Using_iOS_Simulator/ios_simulator_application.html). Googling it, however, has produced a possible workaround:
正如iDroid所说,似乎没有办法(这里是相应的文档,http://developer.apple.com/library/ios/#documentation/Xcode/Conceptual/ios_development_workflow/125-Using_iOS_Simulator/ios_simulator_application.html) 。然而,谷歌搜索它已经产生了一种可能的解决方法:
https://web.archive.org/web/20130205102153/http://www.adoptioncurve.net/archives/2012/04/using-the-camer-of-ios-simulators.php
#1
23
So far apple iPhone simulator don't have feature to connect to the system camera. Only way to see working camera application is to use real device
到目前为止苹果iPhone模拟器没有连接系统摄像头的功能。查看工作相机应用程序的唯一方法是使用真实设备
#2
7
As iDroid said, there doesn't seem to be a way (here's the corresponding doc, http://developer.apple.com/library/ios/#documentation/Xcode/Conceptual/ios_development_workflow/125-Using_iOS_Simulator/ios_simulator_application.html). Googling it, however, has produced a possible workaround:
正如iDroid所说,似乎没有办法(这里是相应的文档,http://developer.apple.com/library/ios/#documentation/Xcode/Conceptual/ios_development_workflow/125-Using_iOS_Simulator/ios_simulator_application.html) 。然而,谷歌搜索它已经产生了一种可能的解决方法:
https://web.archive.org/web/20130205102153/http://www.adoptioncurve.net/archives/2012/04/using-the-camer-of-ios-simulators.php