简体   繁体   English

在用户按下快照按钮之前,如何检索iPhone摄像机或视频图像?

[英]How do I retrieve iPhone camera or video images before the user presses the snapshot button?

I am looking to stream what the camera sees onto a series of OpenGL ES textures. 我希望将相机看到的内容流式传输到一系列OpenGL ES纹理上。 Getting them to display on the textures is not difficult, however, it isn't clear that the UIImagePickerController is able to grab images from the camera before the user takes a snapshot. 让它们显示在纹理上并不困难,但是,不清楚的是,UIImagePickerController是否能够在用户拍摄快照之前从相机获取图像。

Tagged with 3gs because of the new video capture API. 由于采用了新的视频捕获API,因此被标记为3gs。

This is not supported in the iPhone SDK. iPhone SDK不支持此功能。 While there are some hacks people have done (that involve scrapping the data off the texture the builtin in UI is displaying to the user) using them will probably result in your app getting rejected from the store. 尽管人们做了一些黑客(涉及从内置UI显示给用户的纹理中删除数据),但是使用它们可能会导致您的应用被商店拒绝。

The only supported way to get video data is to use the Apple UI and then ask for the resulting move after it is done recording. 获得视频数据的唯一受支持的方法是使用Apple UI,然后在录制完成后要求进行相应的移动。 If you need realtime video data you should file a bug with Apple explaining why. 如果您需要实时视频数据,则应向Apple提交错误说明原因。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 用户按下iPhone上的“保持”按钮后,如何保持音乐播放? - How do I keep music playing after the user presses the hold button on the iPhone? 当用户按下iPhone上的主页按钮时,如何在文本文件中保存数据? - How to save data in a text file as the user presses the home button on iPhone? 如何使用AVFoundation将视频写入iPhone胶卷? - How do i write video to iphone camera roll using AVFoundation? iPhone:当用户按下已选择的选项卡时,如何使UINavViewController不弹出视图控制器 - iPhone: How do I get the the UINavViewController to not pop the view controller when the user presses the tab that is already selected 如何在用户按下按钮时打开“设置”应用程序? - How can I open the Settings app when the user presses a button? 用户按下按钮时如何重置UI? - How can I reset my UI when the user presses a button? Iphone mpmediaplayerController,用户按下完成后无法重新启动视频 - Iphone mpmediaplayerController, unable to restart video after user presses done 如何将视频放入 iOS 4.2 中的 iPhone 模拟器相机胶卷? - How do I get video into the iPhone simulator camera roll in iOS 4.2? 如何将实时视频输入从iPhone相机转换为灰度? - How do I convert the live video feed from the iPhone camera to grayscale? 在iPhone锁定且用户按下电源按钮时编程背景行为 - Programming background behavior when iPhone is locked and user presses power button
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM