1
在我的應用程序,如我使用幀如何將捕獲的幀寫入套接字?
- (void)captureOutput:(AVCaptureOutput *)captureOutput
didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
fromConnection:(AVCaptureConnection *)connection
委託我捕捉媒體,我已經記錄和播放使用的MPMoviePlayerController錄製的文件。現在我的問題是,我想將這些緩衝區寫入套接字併發送到服務器,而不是寫入文件。我需要做什麼樣的改變?
感謝您的幫助。