Louis Borsu
Louis Borsu

Reputation: 135

Playing back a CMSampleBuffer

I'm trying to create an application that streams video and audio to an other computer.

On the "server" side, I'm able to capture (using AVCaptureSession) video and audio, to preview them and to send them over the network using the delegate and reconstruct everything back on the other side.

On "client" side I've then a CMSampleBuffer that contains audio and video and I don't find the way to play it back. I've checked AVPlayer and AVCaptureSession, but I don't understand the mechanism with a CMSampleBuffer for input.

Any ideas, links? Thank you!

Upvotes: 2

Views: 434

Answers (1)

Clover.P
Clover.P

Reputation: 26

you could try AVSampleBufferDisplayLayer.

Upvotes: 1

Related Questions