Playing webm chunks as standalone video

前端 未结 2 1018
小鲜肉
小鲜肉 2020-12-18 07:30

I\'ve built some code that will get the MediaRecorder API to capture audio and video, and then use the ondataavailable function to send the corresponding webm file blobs up

2条回答
  •  清歌不尽
    2020-12-18 08:10

    Only the first blob received from the MediaRecorder API contains a header. So you will need to simply extract it and prepend it to your other blobs to be able to play them as standalone WebM videos. I recommend you to verify whether it works by using tools like hex editor. And you can automate this process on your server.

提交回复
热议问题