I am trying to implement video conferencing, I can record video and audio using CaputreSession and CMSampleBufferRef hidden video to image and send data to another device.
But I do not know how I can convert CMSampleBufferRef audio to data and play audio in another data device?
Can anyone help me please?
Edit:
I found this on a Chinese website, it says that we can read data in CMSamplerBufferRef with OpenAL. I tried the code in my project, it seems that OpenAL and AvCaptureSession with sound cannot work together, because OpenAL with the file works just fun. can someone help me with this ?????
source
share