I’m using DeepAR in my Next.JS + React.JS app to record videos. Why am I trying to record a video with audio recording, the following exception is thrown in mobile browsers:
InvalidStateError: Failed to execute 'encode' on 'AudioEncoder': Cannot call 'encode' on a closed codec.
Call Stack
Object.write
webpack-internal:\node_modules\.pnpm\deepar@5.6.5\node_modules\deepar\js\deepar.esm.js (2:483429)
DeepAR version: 5.6.5
Next.JS version: 14.2.4
I initialize the library and record a video with audio as shown in the getting started documentation.
Thanks for advance for your help!