I modified `modules/video_capture.py` so that it will explicitly try using `cv2.CAP_AVFOUNDATION` when initializing `cv2.VideoCapture` on macOS. If AVFoundation fails to open the camera, it will then fall back to the default OpenCV backend.
This adjustment should improve camera compatibility and stability on macOS, especially in situations where the default backend might not be working as expected.