Closed asdfghjBennyHuang closed 7 years ago
Microsoft Edge supports only StereoAudioRecorder (WebAudio) based recording solution; i.e. you can record only microphone. You can NOT record video tracks.
WhammyRecorder (i.e. WebP + WebM) based solution currently supported only on Chrome. No other browser (including Firefox) supports WebP encoders.
In edge, the ondataavailable was not fired, after checking into the source code, I found that in the whammyInWebWorker, the
frame.image
is processed and then passed intoparseWebP
, however, since the frame.image is png in my case, the id inparseRIFF
cannot match inif (id === 'RIFF' || id === 'LIST')
, then when the chunck is passed into parseWebP, the code crash at this linevar VP8 = riff.RIFF[0].WEBP[0];
riff.RIFF is undefined.
Actually I already changed the int 23 in
frame.image.slice(23)
into 22 in order to get PNG content decoded correctly byatob
. It seems that it is not expected that the format would be png?The environment is windows 10, edge 14. the stream object is obtained through calling getUserMedia.