Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration for IOVideoCaptureUnit. #1355

Merged
merged 1 commit into from
Dec 14, 2023
Merged

Configuration for IOVideoCaptureUnit. #1355

merged 1 commit into from
Dec 14, 2023

Conversation

shogo4405
Copy link
Owner

Description & motivation

I modified the method to make it easier to perform the initial setup of IOVideoCaptureUnit when using attachCamera. You can handle it with a callback as follows.

stream.attachCamera(back, channel: 0) { videoCaptureUnit, error in
    videoCaptureUnit?.isVideoMirrored = false
    videoCaptureUnit?.preferredVideoStabilizationMode = .standard
    videoCaptureUnit?.colorFormat = kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange
  if let error {
    logger.warn(error)
  }
}

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

Screenshots:

@shogo4405 shogo4405 added this to the 1.7.3 milestone Dec 14, 2023
@shogo4405 shogo4405 merged commit c9d81f9 into main Dec 14, 2023
1 check passed
@shogo4405 shogo4405 deleted the feature/multicapture branch December 14, 2023 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant