I’m trying the deepar web sdk and everything works fine for the pictures. But, for the videos, impossible to record any video (return undefined). It seems like the startVideoRecording function merely does not work.
If anybody can help me please… ?
Thanks a lot !
As stated in the API reference you need to set the recordAudio parameter when starting the recording: await deepAR.startVideoRecording({recordAudio: true});
Well I looked through the documentation and didn’t even see that! But I had developed an alternative solution that works well. However, I will try what the API offers and I will report back. Thank you Igor!
Well @igor the solution is perfect! But… there is another problem. Videos are not created when using a mobile device. This SDK can only be used with a PC. As for photos, no problem: it works with all types of devices. Weird !
Concerning the videos, the code is of course absolutely the same regardless of the platform (The code itself is above). I thank in advance whoever can find the explanation for me!
I did some tests with an iPhone and you can make videos apparently without difficulty. The problem only concerns the Android system, where the SDK works for photos, but not for videos… (?).
If anyone has any idea what’s going on, please post! I thank him in advance!