You could try this:
downloadBlob(completeBlob, 'myvideo.mp4');
Instead of:
downloadBlob(URL.createObjectURL(completeBlob), 'myvideo.mp4');
I think it does not like the data returned from createObjectURL, as it expects a blob that returns a DOMString.
createObjectURL
DOMString
It works, but the length of the video is always 0 seconds. How would I fix this?
I guess that has something to do with how you create the video blob. If you share your code I can take a look and check if there is something wrong
Seems to be correct, as far as I can see.
can you see the video in any other way before converting to blob? Maybe in the page itself?
You can take a look at the full source code here: github.com/gspteck/RecScreen
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You could try this:
Instead of:
I think it does not like the data returned from
createObjectURL
, as it expects a blob that returns aDOMString
.It works, but the length of the video is always 0 seconds.
How would I fix this?
I guess that has something to do with how you create the video blob. If you share your code I can take a look and check if there is something wrong
Seems to be correct, as far as I can see.
can you see the video in any other way before converting to blob? Maybe in the page itself?
You can take a look at the full source code here: github.com/gspteck/RecScreen