Skip to content

Commit

Permalink
Expose public init for CVPixelVideoBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroshihorie committed Dec 12, 2024
1 parent 072f572 commit 7d5a4cd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/LiveKit/Types/VideoFrame.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 7d5a4cd

Please sign in to comment.