Releases: legokichi/ts-ebml
Releases · legokichi/ts-ebml
v3.0.1
v3.0.0
v2.0.0
Breaking Changes
EBMLReader now marged
before
import EBMLReader from './EBMLReader';
after
import {Decoder, Encoder, Reader, tools} from './';
tools.putRefinedMetaData
is deprecated
use tools.makeMetadataSeekable
instead of tools.putRefinedMetaData
.
function makeMetadataSeekable(
originalMetadata: EBML.EBMLElementDetail[],
duration: number,
cuesInfo: {CueTrack: number; CueClusterPosition: number; CueTime: number; }[]
) : ArrayBuffer;
tools.makeMetadataSeekable(reader.metadatas, reader.duration, reader.cues);
Decoder returns DateElement as JS Date Object
before
const elms = new Decoder().decode(buf);
elms.filter((elm)=> elm.name === "DateUTC" && elm.type === "d" && typeof elm.value === "string");
after
const elms = new Decoder().decode(buf);
elms.filter((elm)=> elm.name === "DateUTC" && elm.type === "d" && elm.value instanceof Date);
Bug Fixes
- Fix #8 #9 #10 (@willemkokke)