简体   繁体   English

iPhone视频摄像头流媒体

[英]iPhone video camera streaming

Can anyone confirm how an app like this is done? 任何人都可以确认这样的应用程序是如何完成的?

PocketCam PocketCam

Is the way to capture the camera's video stream using AVFoundation? 是使用AVFoundation捕获摄像机视频流的方法吗?

http://developer.apple.com/iphone/library/documentation/AVFoundation/Reference/AVCaptureVideoDataOutput_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40009544 http://developer.apple.com/iphone/library/documentation/AVFoundation/Reference/AVCaptureVideoDataOutput_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40009544

To be clear, I dont want to capture the video and save it, I want to stream it over a wireless network as an IP camera. 为了清楚起见,我不想捕捉视频并保存它,我想通过无线网络作为IP摄像机进行流式传输。

thanks, 谢谢,

I can't confirm how PocketCam works, however, as of iOS4, AVFoundation is the correct way to do this. 我无法确认PocketCam的工作原理,但是,从iOS4开始,AVFoundation 正确的方法。 You will receive a callback with the frame you need. 您将收到所需框架的回调。 At that point you would push the frame as an image to some server computer listening on the network waiting for frames. 此时,您可以将帧作为图像推送到在网络上监听等待帧的某个服务器计算机上。 Keep in mind that you could be receiving a lot of frames and you may not have enough bandwidth to push all of them depending on the quality/size/resolution of the frames. 请记住,您可能会收到大量帧,并且可能没有足够的带宽来推送所有帧,具体取决于帧的质量/大小/分辨率。 Here is a technical note from Apple that discusses how to implement frame captures with AVFoundation. 以下是Apple技术说明 ,讨论了如何使用AVFoundation实现帧捕获。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM