Skip to content

Commit

Permalink
fix: Fix iOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Oct 30, 2024
1 parent e97bb88 commit 3be6492
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package/ios/React/CameraView+RecordVideo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ extension CameraView: AVCaptureVideoDataOutputSampleBufferDelegate, AVCaptureAud

do {
let options = try RecordVideoOptions(fromJSValue: options,
bitRateOverride: videoBitRateOverride,
videoBitRateMultiplier: videoBitRateMultiplier)
bitRateOverride: videoBitRateOverride?.doubleValue,
bitRateMultiplier: videoBitRateMultiplier?.doubleValue)

// Start Recording with success and error callbacks
cameraSession.startRecording(
Expand Down
4 changes: 1 addition & 3 deletions package/ios/React/CameraView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,7 @@ public final class CameraView: UIView, CameraSessionDelegate, PreviewViewDelegat
config.video = .enabled(config: CameraConfiguration.Video(pixelFormat: getPixelFormat(),
enableBufferCompression: enableBufferCompression,
enableHdr: videoHdr,
enableFrameProcessor: enableFrameProcessor,
bitRateOverride: videoBitRateOverride,
bitRateMultiplier: videoBitRateMultiplier))
enableFrameProcessor: enableFrameProcessor))
} else {
config.video = .disabled
}
Expand Down

0 comments on commit 3be6492

Please sign in to comment.