I have a project that uses the MediaRecorder like so:
XRExtras.MediaRecorder.initRecordButton() // Adds record button
XRExtras.MediaRecorder.initMediaPreview() // Adds media preview and share
XRExtras.MediaRecorder.configure({
watermarkImageUrl: require('./assets/Logo.png'), // Adds watermark to photo/video
watermarkMaxWidth: 100,
watermarkMaxHeight: 15,
watermarkLocation: 'bottomMiddle',
})
XR8.MediaRecorder.configure({
maxDurationMs: 15000,
enableEndCard: false,
})
Im running into a bug where, on some devices i get an indefinite loading spinner around the recording button, which doesnβt allow me to save the recorded video, but on other devices the recording works just fine. Iβm not sure how to diagnose this issue and was looking for some insight.
Hello @Sina_Amini are you receiving any console errors or logs on devices where it loads forever?
What specific devices are these? What are the length of the videos? Do very short videos load infinitely as well or is it just long ones? more information would be helpful.
If longer videos cause the problem you may need to reduce the maxDurationMs
Tha max duration of the videos currently is 15 seconds. The bug happens on the devices regardless of how long they record for, whether its 1 second or the full 15 seconds. The devices that get the bug so far are an iphone 15 pro and an iphone 13 pro max. I donβt have any console errors or logs from these devices but i can try to get some
The video in my previous comment was from a different sample project. We re-recorded a test using the sample project you linked. Same phone and issue as before.
The team has pushed a fix to XRExtras that should resolve the issue. Itβs currently in the beta version - if you are using the Cloud Editor, please update head.html and add :beta to the xrextras meta tag:
Weβll look to promote the fix to the release version of xrextras soon, but you can test/verify the fix in the beta channel for now. Let us know if this resolves your issue.