oeuillot / node-matroska

Matroska library written for nodejs
GNU General Public License v3.0
26 stars 12 forks source link

cannot parse streaming webm #4

Open legokichi opened 7 years ago

legokichi commented 7 years ago

I tried to parse the webm file created by MediaRecorder API with this library, but throw Uncaught Error: INVALID VINT value too big (length>7 bs=1) error.

in Specifications,

There is only one reserved word for Element Size encoding, which is an Element Size encoded to all 1's. Such a coding indicates that the size of the Element is unknown, which is a special case that we believe will be useful for live streaming purposes. However, avoid using this reserved word unnecessarily, because it makes parsing slower and more difficult to implement. Specifications

this code forgot it.