How to create RTCVideoFrame?
In Banuba SDK, you can create RTCVideoFrame from a CVPixelBuffer that could be received from startForwardingFrames method
sdkManager.output?.startForwardingFrames(handler: { (pixelBuffer) -> Void in
let rtcpixelBuffer = RTCCVPixelBuffer(pixelBuffer: pixelBuffer)
videoFrame = RTCVideoFrame(
buffer: rtcpixelBuffer,
rotation: RTCVideoRotation._0,
timeStampNs: Int64(timestamp)
)
})