iPhone 相机和流媒体
我想从 iPhone 捕获相机的视频并将视频流发送到服务器。
我知道我必须使用 AVFoundation,并且我听说过 AVCaptureVideoOutput,它允许我处理来自相机的每一帧。
问题是:如何将每个帧发送到服务器?
谢谢
I'd like to capture the camera's video from the iPhone and send the video stream to a server.
I know that I must use AVFoundation, and I've heard about AVCaptureVideoOutput which allows me to handle each frame from the camera.
The question is : how can iI send each frame to a server?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
AV Foundation 将做您需要做的一切来访问相机的原始数据。获得这些帧后,您就可以决定如何处理它们,包括将它们序列化以流式传输到您的服务器。
AV Foundation will do everything that you need to do to gain access to the camera's raw data. Once you have those frames, it's up to you to decide what to do with them, including serializing them for streaming to your server.