简体   繁体   English

需要通过iPhone通过套接字发送continueos图像行数据

[英]Need to send continuos Image row data over socket through iPhone

You will feel my question is quite known but I am having confusion to send image row data over socket to dedicated server. 您会觉得我的问题众所周知,但是我很困惑通过套接字将图像行数据发送到专用服务器。 I am working on latest iPhone SDK. 我正在开发最新的iPhone SDK。

Actually, I am running one timer with 1/7 time interval. 实际上,我以1/7时间间隔运行一个计时器。 In that timer I am continuously capturing iPhone desktop image using UIGetScreenImage() API. 在那个计时器中,我正在使用UIGetScreenImage()API连续捕获iPhone桌面图像。 And at the same time I want to transfer captured image row data to the server through socket. 同时,我想通过套接字将捕获的图像行数据传输到服务器。

Here I have confusion that how I can manage these both tasks simultaneously, capturing images and sending them to the server. 在这里,我困惑于如何同时管理这两个任务,捕获图像并将它们发送到服务器。 I do not want to loose any single frame of the image. 我不想丢失图像的任何单个帧。 Should I run one separate thread to handle sending data? 是否应该运行一个单独的线程来处理发送数据? Or any other suggestion to perform such tasks. 或执行此类任务的任何其他建议。

You will be greatly appreciated. 您将不胜感激。

Thanks 谢谢

i am also currently writing such an App and have listed my steps in these post 我目前也正在编写​​这样的应用程序,并在这些帖子中列出了我的步骤

MJPEG Stream from iPhone to Server 从iPhone到服务器的MJPEG流

Use AVFoundations captureOutput:didOutputSampleBuffer:fromConnection and AsyncSocket to send the images to your server. 使用AVFoundations captureOutput:didOutputSampleBuffer:fromConnection和AsyncSocket将图像发送到您的服务器。

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

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