We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cc9388e + e7eebd3 commit 6cd6fdaCopy full SHA for 6cd6fda
2 files changed
entries/all-boxes.ts
@@ -97,6 +97,7 @@ export * from '#/boxes/sgpd';
97
export * from '#/boxes/sidx';
98
export * from '#/boxes/SmDm';
99
export * from '#/boxes/smhd';
100
+export * from '#/boxes/srat';
101
export * from '#/boxes/ssix';
102
export * from '#/boxes/stco';
103
export * from '#/boxes/stdp';
src/boxes/srat.ts
@@ -0,0 +1,14 @@
1
+import { FullBox } from '#/box';
2
+import type { MultiBufferStream } from '#/buffer';
3
+
4
+export class sratBox extends FullBox {
5
+ static override readonly fourcc = 'srat' as const;
6
+ box_name = 'SamplingRateBox' as const;
7
8
+ sampling_rate: number;
9
10
+ parse(stream: MultiBufferStream) {
11
+ this.parseFullHeader(stream);
12
+ this.sampling_rate = stream.readUint32();
13
+ }
14
+}
0 commit comments