How can i play CMSampleBuffer with AVPlayer?

Hi,

I need to play video using AVPLayer. Im getting video frames in CMSampleBuffer. Currently im using AVSampleBufferDisplayLayer to watch the video. How can i convert the video frames to AVPlayer. Since i have a requirement to pan the video to 360 (im getting 360 video frames).

SKnode and etc all are working with AVPlayer only. Please advice the implemenattion method.