When I press and hold the capture button, the video will be recorded, and when the preview closes:
IOS : The capture button appears and I can start recording another video.
Android : The record button appears with loading class, so recording cannot continue until the onVideoReady
event completes.
I want to close the preview, then stop the video being recorded and be able to start recording a new video.
I tried to customize extra mediarecorder but it didnβt work because an error appeared:
Error: [XR] Recording already in progress
Can anyone suggest me any solution? Thank you.
Ian
May 7, 2024, 6:15pm
2
Have you tried reducing the maxDurationMs to a smaller number such as 5 seconds?
Ian
May 8, 2024, 4:59am
4
Understood, we will report this to the internal team. For now, it looks like a dev was able to find a temporary solution by reducting the maxDuration time
Hi there, I have received some reports that it takes a lot of time (5-10 seconds or more) to get a video blob using XR.MediaRecorder in some Android devices.
Any tips to solve this? Below is my option settings of the MediaRecorder:
XR8MediaRecorder.configure({
maxDurationMs: 30000,
enableEndCard: false,
requestMic: "manual",
});
1 Like
Error: [XR] Recording already in progress: I wonder if thereβs a function to stop the video being recorded?