Hi,
I’m trying to record a video using VideoCapture. I use the code from documentation and I’m getting the following error when it calls StopRecordingAsync:
The VideoCapture is not in the correct state to stop recording video.
I’ve both the webcam and microphone capabilities active. I actually implemented PhotoCapture first, and it works as intended.
Checking VideoCaptureResult value and is returning false on the method OnStoppedRecordingVideo.
I’m running on the Editor (I don’t have with me the Hololens to test it on the device), using Unity 2020.3.33f1
I also tested in Unity 2021.3.0f1, Unity 2022.1.0b16 and I’m getting the same error.
I also tried in 2019.4.36f1 but in this version, it didn’t start the capture. I read something in the documentation that older versions of Unity VideoCapture didn’t work on Editor.
Do I need to activate anything more? I’m missing something?
Thanks