我现在想用iphone做视频监控,控制摄像头(usb Camera,和ip Camera),现在能提取视频的关键帧并现在在UIImageView上,但是我怎么才能获取摄像头动态的视频流呢?请各位指点下,先谢过!
解决方案 »
- 新版xcode问题
- 求ios开发资料,在线等
- 刚看到微博上有华为开发者联盟官方微博举办的中秋活动,有人看到了吗?
- 已经使用AMDeviceLookupApplications看到了未越狱Iphone中的应用bound_id,接下来怎么查看应用程序的数据呢?
- 关于Xcode6真机调试图片资源不能正常显示的问题!新手诚心求助!
- UIButton添加到IOS7的UITableviewCell上时Highlighted效果不起作用
- 自己做个喵星人专属APP,视频托管哪家强?!
- Xcode升级到7.1.1后项目报错
- 请问使用黑苹果影响开发吗?
- App Store审核被拒
- [ios]如何利用开放平台的api编写微博客户端?
- iphone开发 问题请教
AVCaptureVideoPreviewLayer *previewLayer = [AVCaptureVideoPreviewLayer layerWithSession:captureSession];
UIView *aView = <#The view in which to present the layer#>;
previewLayer.frame = aView.bounds; // Assume you want the preview layer to fill the view.
[aView.layer addSublayer:previewLayer];
实现一个UIImagePickerController的实例,实现里面的UIImagePickerControllerDelegate就可以了!
需要查看UIImagePickerController中是不是支持视频,检测是否有kUITypeMovie常数通信部分请参阅 Game Kit 的 GKSession 类, GKVoiceChatService 类等用Xcode的cocoa,实现起来很简单~~