Skip to content

Releases: legokichi/ts-ebml

v3.0.1

21 Feb 09:08
Compare
Choose a tag to compare
add dist files

v3.0.0

21 Feb 09:00
Compare
Choose a tag to compare
modernize toolchains

v2.0.0

17 Aug 11:04
Compare
Choose a tag to compare

Breaking Changes

EBMLReader now marged

before

import EBMLReader from './EBMLReader';

after

import {Decoder, Encoder, Reader, tools} from './';

tools.putRefinedMetaData is deprecated

(@willemkokke)

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