Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"scripts": {
"prepare": "node .husky/install.mjs",
"build": "tsup",
"build-dev": "npx tsup --sourcemap --format esm --minify false",
"circular": "dpdm -T ./entries/all.ts --tsconfig tsconfig.lib.json --exit-code circular:1",
"types": "tsc --noEmit -p tsconfig.lib.json",
"test": "vitest run",
Expand Down
14 changes: 14 additions & 0 deletions src/boxes/sampleentries/sampleentry.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { MultiBufferStream } from '#/buffer';
import { av1CBox } from '#/boxes/av1C';
import { avcCBox } from '#/boxes/avcC';
import { sinfBox } from '#/boxes/defaults';
Expand Down Expand Up @@ -419,6 +420,19 @@ export class encmSampleEntry extends MetadataSampleEntry {
sinfs: Array<sinfBox> = [];
}

export class urimSampleEntry extends MetadataSampleEntry {
the_label: string;
init?: string;

static override readonly fourcc = 'urim' as const;

parse(stream: MultiBufferStream) {
this.parseHeader(stream);
this.the_label = stream.readCString();
// TODO: this.init = remaining bytes
}
}

// Restricted sample entries
export class resvSampleEntry extends VisualSampleEntry {
static override readonly fourcc = 'resv' as const;
Expand Down