In camera output, image and sound don't sync up

PsychoPy version: v2022.2.4

What are you trying to achieve?
I want to video record the answers of the participants. Also, participants see themselves on the camera at the bottom right corner while recording.

What did you try to make it work?
As it is an online study, I used the camera component from the builder.

What specifically went wrong when you tried that?

  1. When I open the experiment, I see that the camera’s view is upside down.
  2. In camera output, movie and sound don’t sync up. Also, the movie ends halfway while the sound keeps going
    This is the video component: