StaZhu/fix-webm-meta

Please update ts-ebml ver to latest

xuzhong998 opened this issue · 1 comments

现使用的ts-ebm在read elm时对于时间戳的字符串判断错误, 应 Timecode -> Timestamp, 导致duration计算为0不起作用,最新的ts-ebml已经修复了
或者直接修改 node_modules\fix-webm-metainfo\node_modules\ts-ebml\lib\EBMLReader.js 内大概
190行和193行的
elm.type === "u" && elm.name === "Timecode"

elm.type === "u" && elm.name === "TimecodeScale"

(elm.type === "u" && (elm.name === "Timecode" || elm.name === "Timestamp"))

(elm.type === "u" && (elm.name === "TimecodeScale" || elm.name === "TimestampScale"))
重新编译即可

欢迎提pr