Hello I need to send a CMSampleBufferRef over a network. The client then plays the CMSampleBufferRef via the Audio Queue Services. I have seen some examples on stack overflow, but most of them just send the buffer. But then some informations are lost. I have found at that [AVAssetReaderOutput copyNextSampleBuffer] returns a reference to a opaqueCMSampleBuffer struct. I know how to get the memory address of the opaqueCMSampleBuffer, but how do I copy the content of the address to a array so I can send it over the network? Or are there any more elegant approaches to send the CMSampleBuffer over the network. Or can I even somehow access the opaqueCMSampleBuffer?
thanks for your time and help