onfido-sdk-ui
onfido-sdk-ui copied to clipboard
Add ability to select video mimeType
It looks like the the Javascript SDK is using something called MediaRecorder (https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder) to capture the live video.
It looks like when using the MediaRecorder you don't ask for a specific mimeType so it uses the default browser behavior.
I verified this - on android chrome it's webm and on iOS Safari it's mp4.
A good solution will be to add an option to choose the mimeType instead of using the default so it can be the same for both android and iOS.
Thanks, @ofekba-tr, that's a good idea. I'll raise this with the team and get back to you if we have a clear plan to support this.
Hi @ofekba-tr, the team is keen to know why you want to control the consistency of video formats on different platforms? We really want to understand the motivation & importance of each feature request!
For our use case, after the check is completed we download the files and upload them to our internal tool. This tool has a virus scanning and sanitization system the currently only supports mp4 files. We would like the video format to be mp4 for all browsers.
BTW we are using QR crossDevice option, so we would like it to be supported also using this option.
Hi @ofekba-tr, sorry for the late response. The SDK team didn't see a strong reason to support this feature at the moment. But we logged your idea and will revise it when there are more similar requests in the future. I'll keep this issue open. Hope it helps.