recordrtc

How can I add predefined length to audio recorded from MediaRecorder in Chrome?

核能气质少年 提交于 2019-11-27 04:07:16
I am in the process of replacing RecordRTC with the built in MediaRecorder for recording audio in Chrome. The recorded audio is then played in the program with audio api. I am having trouble getting the audio.duration property to work. It says If the video (audio) is streamed and has no predefined length, "Inf" (Infinity) is returned. With RecordRTC, I had to use ffmpeg_asm.js to convert the audio from wav to ogg. My guess is somewhere in the process RecordRTC sets the predefined audio length. Is there any way to set the predefined length using MediaRecorder? This is a chrome bug . FF does

How can I add predefined length to audio recorded from MediaRecorder in Chrome?

家住魔仙堡 提交于 2019-11-26 09:09:21
问题 I am in the process of replacing RecordRTC with the built in MediaRecorder for recording audio in Chrome. The recorded audio is then played in the program with audio api. I am having trouble getting the audio.duration property to work. It says If the video (audio) is streamed and has no predefined length, \"Inf\" (Infinity) is returned. With RecordRTC, I had to use ffmpeg_asm.js to convert the audio from wav to ogg. My guess is somewhere in the process RecordRTC sets the predefined audio