matroska

How to play WEBM files individually which are created by MediaRecorder

霸气de小男生 提交于 2020-06-22 03:36:50
问题 For recording audio and video, I am creating webm files under the ondataavailable of MediaRecorder API. I have to play each created webm file individually. Mediarecorder api inserts header information into first chunk (webm file) only, so rest of the chunks do not play individually without the header information. As suggested link 1 and link 2, I have extracted the header information from first chunk, // for the most regular webm files, the header information exists // between 0 to 189 Uint8

How to play WEBM files individually which are created by MediaRecorder

天涯浪子 提交于 2020-06-22 03:34:25
问题 For recording audio and video, I am creating webm files under the ondataavailable of MediaRecorder API. I have to play each created webm file individually. Mediarecorder api inserts header information into first chunk (webm file) only, so rest of the chunks do not play individually without the header information. As suggested link 1 and link 2, I have extracted the header information from first chunk, // for the most regular webm files, the header information exists // between 0 to 189 Uint8