diff --git a/Sources/LiveKit/Types/VideoFrame.swift b/Sources/LiveKit/Types/VideoFrame.swift index 0ad494a8e..3f1c3a3eb 100644 --- a/Sources/LiveKit/Types/VideoFrame.swift +++ b/Sources/LiveKit/Types/VideoFrame.swift @@ -37,6 +37,11 @@ public class CVPixelVideoBuffer: VideoBuffer, RTCCompatibleVideoBuffer { _rtcType.pixelBuffer } + public init(pixelBuffer: CVPixelBuffer) { + _rtcType = LKRTCCVPixelBuffer(pixelBuffer: pixelBuffer) + } + + // Internal only. init(rtcCVPixelBuffer: LKRTCCVPixelBuffer) { _rtcType = rtcCVPixelBuffer }