From 98196d18ec76cad9df0a79d5ab9e946d721dc5e0 Mon Sep 17 00:00:00 2001 From: dukesook Date: Wed, 31 Dec 2025 10:23:15 -0700 Subject: [PATCH] feat: read 'component content id' property --- src/boxes/uuid/index.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/boxes/uuid/index.ts b/src/boxes/uuid/index.ts index 52b36b1b4..ae43bc596 100644 --- a/src/boxes/uuid/index.ts +++ b/src/boxes/uuid/index.ts @@ -130,3 +130,21 @@ export class ItemContentIDPropertyBox extends UUIDBox { this.content_id = stream.readCString(); } } + +export class ItemComponentContentIDPropertyBox extends UUIDBox { + static uuid = '9db9dd6e373c5a4e811021fc83a911fd' as const; + box_name = 'ItemComponentContentIDProperty' as const; + + content_ids: Array; + number_of_components: number; + + parse(stream: MultiBufferStream): void { + this.number_of_components = stream.readUint32(); + + this.content_ids = []; + for (let i = 0; i < this.number_of_components; i++) { + const content_id: string = stream.readCString(); + this.content_ids.push(content_id); + } + } +}