react-video-recorder icon indicating copy to clipboard operation
react-video-recorder copied to clipboard

Bug || RVRB-0001 || On uploading the recorded file from this plugin it gives infinity duration.

Open jsavinash opened this issue 4 years ago • 1 comments

If we upload the file recorded from the recorder and try to upload it again it gives Infinity as duration.

Video-upload-with-recorded-file

jsavinash avatar Aug 04 '20 11:08 jsavinash

You can use getSeekableBlob function from recordrtc;

e.g. import { getSeekableBlob } from "recordrtc";

then call it on the blob before passing it anywhere further

getSeekableBlob(blob, fixedBlob => { //fixedBlob will have the right duration });

IvanPodgur avatar Sep 30 '20 10:09 IvanPodgur