Great article! Keep it up! However, I have question...
Why you need to create chunks when e.data in dataavailable is already a blob?
e.data
dataavailable
Isn't that part kinda unnecessary?
Couldn't we just use it like this?
let blob = null; mediaRecorder.addEventListener('dataavailable', (e) => { blob = e.data; })
as you keep recording the dataavailable event will run multiple time. So basically instead you giving you the entire video once recording is done it will give you data in small parts as the video is being recorded.
Ok cool! Thank you
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.
Great article! Keep it up! However, I have question...
Why you need to create chunks when
e.data
indataavailable
is already a blob?Isn't that part kinda unnecessary?
Couldn't we just use it like this?
as you keep recording the
dataavailable
event will run multiple time. So basically instead you giving you the entire video once recording is done it will give you data in small parts as the video is being recorded.Ok cool! Thank you