onfido-sdk-ui icon indicating copy to clipboard operation
onfido-sdk-ui copied to clipboard

Add ability to select video mimeType

Open ofekba-tr opened this issue 3 years ago • 4 comments

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.

ofekba-tr avatar Mar 25 '21 13:03 ofekba-tr

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.

ethan605 avatar Mar 25 '21 14:03 ethan605

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!

ethan605 avatar Mar 25 '21 14:03 ethan605

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.

ofekba-tr avatar Mar 25 '21 15:03 ofekba-tr

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.

ethan605 avatar Apr 09 '21 09:04 ethan605