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

Adds a method to remove an existing video capture device. #36

Closed
wants to merge 2 commits into from

Conversation

dsmurfin
Copy link
Collaborator

@dsmurfin dsmurfin commented Mar 6, 2022

No description provided.

public func removeVideoCaptureDevice() {
self.captureSession.beginConfiguration()

if let currentVideoDeviceInput = self.videoDeviceInput {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to use guard let to only call the beginConfiguration/commitConfiguration when we do have a video device input.

@YuAo
Copy link
Member

YuAo commented Mar 15, 2022

Can you describe the situation in which you'd like to remove the video device input?

@dsmurfin
Copy link
Collaborator Author

dsmurfin commented Apr 6, 2024

Closing in favour of #49

@dsmurfin dsmurfin closed this Apr 6, 2024
@dsmurfin dsmurfin deleted the Remove-Video-Device branch April 6, 2024 12:31
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.

2 participants