Closed ksuhr1 closed 3 years ago
@ksuhr1 Thanks for reaching out - what you are observing might be an underlying synchronization bug between renderer and capturer. @ceaglest is out-of-office right now, once he is back, we will get back to you on this.
Closing the ticket as there is no activity - feel free to reopen or file another if you run into any issues.
Description
Hi there! I have one issue: cameraLag with calling flipCamera. I have two view controllers for two different users: Designer and Client. On Designer side I just want to flip the camera like normally. I have a button on my UI where I call flipCamera. I notice that when I switch the camera for both view controllers, the frame flips right before the camera capture actually switches so it looks buggy.
On the Client side I am rendering frames using the ExampleSampleBuffer view example project and flip the frame using OpenCv flip function when the camera position is in the front. On the Designer side I render the frames the same as video-quickstart example project.
It has the problem of the frame flipping before the camera capture actually switches. If you have any advice on how to prevent the frame from flipping before the camera actually switches I'd really appreciate it!
Steps to Reproduce
Code
Designer View Controller
Client View Controller
Expected Behavior
When I click the switch Camera button, I want the camera to flip without inverting the frame right before it does that.
Actual Behavior
When I switch the camera for both view controllers, the frame flips right before the camera capture actually switches so it looks buggy.
Reproduces How Often
Happens every time I press the switch button after a few button clicks, not set amount, kind of random.
Xcode
[11.7]
iOS Version
[13.5.1]
iOS Device
[11 Pro Max]