MediaRecorder.ondataavailable - data size is always 0

前端 未结 1 1572
野的像风
野的像风 2021-01-16 10:22

I\'m trying to record a user\'s voice in the browser using Web API Media Recorder.

At this stage, all I\'m trying to do with the audio once recorded is add it to the

相关标签:
1条回答
  • 2021-01-16 11:26

    OK I figured it out!

    The reason the recording wasn't working was because I didn't have Chrome's experimental Web Platform Features enabled.

    I learnt this by stumbling across this WebRTC Media Recorder samples site https://webrtc.github.io/samples/src/content/getusermedia/record/ - where recording also wasn't working. So I knew it wasn't to do with my specific code.

    To enable the flag, go to chrome://flags/ in your Chrome browser, enable the flag and relaunch.

    0 讨论(0)
提交回复
热议问题