@remotion/media-parser 4.0.536 → 4.0.538

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/aac-codecprivate.d.ts +2 -2
  2. package/dist/containers/avc/interpret-sps.js +2 -1
  3. package/dist/containers/avc/key.d.ts +1 -1
  4. package/dist/containers/flac/get-block-size.d.ts +1 -1
  5. package/dist/containers/flac/get-sample-rate.d.ts +1 -1
  6. package/dist/containers/flac/get-sample-rate.js +2 -1
  7. package/dist/containers/flac/parse-flac-frame.js +2 -1
  8. package/dist/containers/iso-base-media/collect-sample-positions-from-trak.d.ts +1 -1
  9. package/dist/containers/iso-base-media/find-track-to-seek.d.ts +1 -1
  10. package/dist/containers/iso-base-media/get-video-codec-from-iso-track.d.ts +1 -1
  11. package/dist/containers/iso-base-media/make-track.js +4 -3
  12. package/dist/containers/mp3/samples-per-mpeg-file.d.ts +1 -1
  13. package/dist/containers/riff/convert-queued-sample-to-mediaparser-sample.d.ts +4 -4
  14. package/dist/containers/riff/convert-queued-sample-to-mediaparser-sample.js +2 -1
  15. package/dist/containers/riff/has-index.js +2 -1
  16. package/dist/containers/riff/seeking-hints.js +2 -1
  17. package/dist/containers/transport-stream/process-audio.js +4 -2
  18. package/dist/containers/webm/seek/get-seeking-byte.js +4 -3
  19. package/dist/containers/webm/segments/all-segments.d.ts +563 -563
  20. package/dist/containers/webm/segments/block-simple-block-flags.d.ts +1 -1
  21. package/dist/containers/webm/traversal.js +2 -1
  22. package/dist/controller/emitter.js +5 -5
  23. package/dist/download-and-parse-media.js +2 -1
  24. package/dist/emit-available-info.js +31 -30
  25. package/dist/esm/index.mjs +1 -1
  26. package/dist/get-duration.d.ts +1 -1
  27. package/dist/get-duration.js +2 -1
  28. package/dist/get-fps.js +2 -1
  29. package/dist/get-number-of-audio-channels.js +2 -1
  30. package/dist/get-sample-rate.js +2 -1
  31. package/dist/get-tracks.js +2 -1
  32. package/dist/get-video-codec.js +2 -1
  33. package/dist/index.d.ts +454 -1056
  34. package/dist/log.d.ts +6 -6
  35. package/dist/metadata/metadata-from-iso.js +2 -1
  36. package/dist/register-track.d.ts +2 -2
  37. package/dist/state/iso-base-media/cached-sample-positions.js +2 -1
  38. package/dist/state/m3u-state.d.ts +2 -2
  39. package/dist/state/matroska/lazy-cues-fetch.js +4 -3
  40. package/dist/state/matroska/webm.d.ts +1 -1
  41. package/dist/state/parser-state.d.ts +37 -43
  42. package/dist/state/riff/lazy-idx1-fetch.d.ts +2 -2
  43. package/dist/state/riff/sample-counter.js +2 -1
  44. package/dist/state/riff.d.ts +2 -2
  45. package/dist/state/transport-stream/last-emitted-sample.d.ts +1 -1
  46. package/dist/state/transport-stream/observed-pes-header.d.ts +1 -1
  47. package/dist/state/transport-stream/transport-stream.d.ts +1 -1
  48. package/dist/state/video-section.d.ts +4 -10
  49. package/dist/version.d.ts +1 -1
  50. package/dist/version.js +1 -1
  51. package/package.json +6 -6
package/dist/index.d.ts CHANGED
@@ -1,8 +1,17 @@
1
+ import { createAacCodecPrivate } from './aac-codecprivate';
2
+ import { parseFtyp } from './containers/iso-base-media/ftyp';
3
+ import { parseMvhd } from './containers/iso-base-media/moov/mvhd';
4
+ import { processIsoFormatBox } from './containers/iso-base-media/stsd/samples';
5
+ import { parseStsd } from './containers/iso-base-media/stsd/stsd';
6
+ import { parseTkhd } from './containers/iso-base-media/tkhd';
7
+ import { parseEbml } from './containers/webm/parse-ebml';
1
8
  import type { MatroskaSegment } from './containers/webm/segments';
2
9
  import type { Ebml, EbmlValue, FloatWithSize, MainSegment, MatroskaElement, PossibleEbml, TrackEntry, UintWithSize } from './containers/webm/segments/all-segments';
3
10
  import type { SamplePosition } from './get-sample-positions';
11
+ import { getArrayBufferIterator } from './iterator/buffer-iterator';
4
12
  import type { MediaParserLogLevel } from './log';
5
13
  import type { ParseMediaCallbacks } from './options';
14
+ import { makeParserState } from './state/parser-state';
6
15
  export type { ParseMedia, ParseMediaCallbacks } from './options';
7
16
  export { parseMedia } from './parse-media';
8
17
  export { hasBeenAborted, IsAnImageError, IsAnUnsupportedFileTypeError, IsAPdfError, MediaParserAbortError, } from './errors';
@@ -31,313 +40,308 @@ export type { CreateContent, Ebml, FloatWithSize, MatroskaElement, PossibleEbml,
31
40
  */
32
41
  export declare const MediaParserInternals: {
33
42
  Log: {
34
- trace: (logLevel: MediaParserLogLevel, message?: any, ...optionalParams: any[]) => void;
35
- verbose: (logLevel: MediaParserLogLevel, message?: any, ...optionalParams: any[]) => void;
36
- info: (logLevel: MediaParserLogLevel, message?: any, ...optionalParams: any[]) => void;
37
- warn: (logLevel: MediaParserLogLevel, message?: any, ...optionalParams: any[]) => void;
38
- error: (message?: any, ...optionalParams: any[]) => void;
43
+ trace: (logLevel: MediaParserLogLevel, ...args: Parameters<typeof console.log>) => void;
44
+ verbose: (logLevel: MediaParserLogLevel, ...args: Parameters<typeof console.log>) => void;
45
+ info: (logLevel: MediaParserLogLevel, ...args: Parameters<typeof console.log>) => void;
46
+ warn: (logLevel: MediaParserLogLevel, ...args: Parameters<typeof console.log>) => void;
47
+ error: (...args: Parameters<typeof console.log>) => void;
39
48
  };
40
- createAacCodecPrivate: ({ audioObjectType, sampleRate, channelConfiguration, codecPrivate, }: {
41
- audioObjectType: number;
42
- sampleRate: number;
43
- channelConfiguration: number;
44
- codecPrivate: Uint8Array | null;
45
- }) => Uint8Array<ArrayBufferLike>;
49
+ createAacCodecPrivate: typeof createAacCodecPrivate;
46
50
  matroskaElements: {
47
- readonly Header: "0x1a45dfa3";
48
- readonly EBMLMaxIDLength: "0x42f2";
49
- readonly EBMLVersion: "0x4286";
50
- readonly EBMLReadVersion: "0x42f7";
51
- readonly EBMLMaxSizeLength: "0x42f3";
52
- readonly DocType: "0x4282";
53
- readonly DocTypeVersion: "0x4287";
54
- readonly DocTypeReadVersion: "0x4285";
55
- readonly Segment: "0x18538067";
56
- readonly SeekHead: "0x114d9b74";
57
- readonly Seek: "0x4dbb";
58
- readonly SeekID: "0x53ab";
59
- readonly SeekPosition: "0x53ac";
60
- readonly Info: "0x1549a966";
61
- readonly SegmentUUID: "0x73a4";
62
- readonly SegmentFilename: "0x7384";
63
- readonly PrevUUID: "0x3cb923";
64
- readonly PrevFilename: "0x3c83ab";
65
- readonly NextUUID: "0x3eb923";
66
- readonly NextFilename: "0x3e83bb";
67
- readonly SegmentFamily: "0x4444";
68
- readonly ChapterTranslate: "0x6924";
69
- readonly ChapterTranslateID: "0x69a5";
70
- readonly ChapterTranslateCodec: "0x69bf";
71
- readonly ChapterTranslateEditionUID: "0x69fc";
72
- readonly TimestampScale: "0x2ad7b1";
73
- readonly Duration: "0x4489";
74
- readonly DateUTC: "0x4461";
75
- readonly Title: "0x7ba9";
76
- readonly MuxingApp: "0x4d80";
77
- readonly WritingApp: "0x5741";
78
- readonly Cluster: "0x1f43b675";
79
- readonly Timestamp: "0xe7";
80
- readonly SilentTracks: "0x5854";
81
- readonly SilentTrackNumber: "0x58d7";
82
- readonly Position: "0xa7";
83
- readonly PrevSize: "0xab";
84
- readonly SimpleBlock: "0xa3";
85
- readonly BlockGroup: "0xa0";
86
- readonly Block: "0xa1";
87
- readonly BlockVirtual: "0xa2";
88
- readonly BlockAdditions: "0x75a1";
89
- readonly BlockMore: "0xa6";
90
- readonly BlockAdditional: "0xa5";
91
- readonly BlockAddID: "0xee";
92
- readonly BlockDuration: "0x9b";
93
- readonly ReferencePriority: "0xfa";
94
- readonly ReferenceBlock: "0xfb";
95
- readonly ReferenceVirtual: "0xfd";
96
- readonly CodecState: "0xa4";
97
- readonly DiscardPadding: "0x75a2";
98
- readonly Slices: "0x8e";
99
- readonly TimeSlice: "0xe8";
100
- readonly LaceNumber: "0xcc";
101
- readonly FrameNumber: "0xcd";
102
- readonly BlockAdditionID: "0xcb";
103
- readonly Delay: "0xce";
104
- readonly SliceDuration: "0xcf";
105
- readonly ReferenceFrame: "0xc8";
106
- readonly ReferenceOffset: "0xc9";
107
- readonly ReferenceTimestamp: "0xca";
108
- readonly EncryptedBlock: "0xaf";
109
- readonly Tracks: "0x1654ae6b";
110
- readonly TrackEntry: "0xae";
111
- readonly TrackNumber: "0xd7";
112
- readonly TrackUID: "0x73c5";
113
- readonly TrackType: "0x83";
114
- readonly FlagEnabled: "0xb9";
115
- readonly FlagDefault: "0x88";
116
- readonly FlagForced: "0x55aa";
117
- readonly FlagHearingImpaired: "0x55ab";
118
- readonly FlagVisualImpaired: "0x55ac";
119
- readonly FlagTextDescriptions: "0x55ad";
120
- readonly FlagOriginal: "0x55ae";
121
- readonly FlagCommentary: "0x55af";
122
- readonly FlagLacing: "0x9c";
123
- readonly MinCache: "0x6de7";
124
- readonly MaxCache: "0x6df8";
125
- readonly DefaultDuration: "0x23e383";
126
- readonly DefaultDecodedFieldDuration: "0x234e7a";
127
- readonly TrackTimestampScale: "0x23314f";
128
- readonly TrackOffset: "0x537f";
129
- readonly MaxBlockAdditionID: "0x55ee";
130
- readonly BlockAdditionMapping: "0x41e4";
131
- readonly BlockAddIDValue: "0x41f0";
132
- readonly BlockAddIDName: "0x41a4";
133
- readonly BlockAddIDType: "0x41e7";
134
- readonly BlockAddIDExtraData: "0x41ed";
135
- readonly Name: "0x536e";
136
- readonly Language: "0x22b59c";
137
- readonly LanguageBCP47: "0x22b59d";
138
- readonly CodecID: "0x86";
139
- readonly CodecPrivate: "0x63a2";
140
- readonly CodecName: "0x258688";
141
- readonly AttachmentLink: "0x7446";
142
- readonly CodecSettings: "0x3a9697";
143
- readonly CodecInfoURL: "0x3b4040";
144
- readonly CodecDownloadURL: "0x26b240";
145
- readonly CodecDecodeAll: "0xaa";
146
- readonly TrackOverlay: "0x6fab";
147
- readonly CodecDelay: "0x56aa";
148
- readonly SeekPreRoll: "0x56bb";
149
- readonly TrackTranslate: "0x6624";
150
- readonly TrackTranslateTrackID: "0x66a5";
151
- readonly TrackTranslateCodec: "0x66bf";
152
- readonly TrackTranslateEditionUID: "0x66fc";
153
- readonly Video: "0xe0";
154
- readonly FlagInterlaced: "0x9a";
155
- readonly FieldOrder: "0x9d";
156
- readonly StereoMode: "0x53b8";
157
- readonly AlphaMode: "0x53c0";
158
- readonly OldStereoMode: "0x53b9";
159
- readonly PixelWidth: "0xb0";
160
- readonly PixelHeight: "0xba";
161
- readonly PixelCropBottom: "0x54aa";
162
- readonly PixelCropTop: "0x54bb";
163
- readonly PixelCropLeft: "0x54cc";
164
- readonly PixelCropRight: "0x54dd";
165
- readonly DisplayWidth: "0x54b0";
166
- readonly DisplayHeight: "0x54ba";
167
- readonly DisplayUnit: "0x54b2";
168
- readonly AspectRatioType: "0x54b3";
169
- readonly UncompressedFourCC: "0x2eb524";
170
- readonly GammaValue: "0x2fb523";
171
- readonly FrameRate: "0x2383e3";
172
- readonly Colour: "0x55b0";
173
- readonly MatrixCoefficients: "0x55b1";
174
- readonly BitsPerChannel: "0x55b2";
175
- readonly ChromaSubsamplingHorz: "0x55b3";
176
- readonly ChromaSubsamplingVert: "0x55b4";
177
- readonly CbSubsamplingHorz: "0x55b5";
178
- readonly CbSubsamplingVert: "0x55b6";
179
- readonly ChromaSitingHorz: "0x55b7";
180
- readonly ChromaSitingVert: "0x55b8";
181
- readonly Range: "0x55b9";
182
- readonly TransferCharacteristics: "0x55ba";
183
- readonly Primaries: "0x55bb";
184
- readonly MaxCLL: "0x55bc";
185
- readonly MaxFALL: "0x55bd";
186
- readonly MasteringMetadata: "0x55d0";
187
- readonly PrimaryRChromaticityX: "0x55d1";
188
- readonly PrimaryRChromaticityY: "0x55d2";
189
- readonly PrimaryGChromaticityX: "0x55d3";
190
- readonly PrimaryGChromaticityY: "0x55d4";
191
- readonly PrimaryBChromaticityX: "0x55d5";
192
- readonly PrimaryBChromaticityY: "0x55d6";
193
- readonly WhitePointChromaticityX: "0x55d7";
194
- readonly WhitePointChromaticityY: "0x55d8";
195
- readonly LuminanceMax: "0x55d9";
196
- readonly LuminanceMin: "0x55da";
197
- readonly Projection: "0x7670";
198
- readonly ProjectionType: "0x7671";
199
- readonly ProjectionPrivate: "0x7672";
200
- readonly ProjectionPoseYaw: "0x7673";
201
- readonly ProjectionPosePitch: "0x7674";
202
- readonly ProjectionPoseRoll: "0x7675";
203
- readonly Audio: "0xe1";
204
- readonly SamplingFrequency: "0xb5";
205
- readonly OutputSamplingFrequency: "0x78b5";
206
- readonly Channels: "0x9f";
207
- readonly ChannelPositions: "0x7d7b";
208
- readonly BitDepth: "0x6264";
209
- readonly Emphasis: "0x52f1";
210
- readonly TrackOperation: "0xe2";
211
- readonly TrackCombinePlanes: "0xe3";
212
- readonly TrackPlane: "0xe4";
213
- readonly TrackPlaneUID: "0xe5";
214
- readonly TrackPlaneType: "0xe6";
215
- readonly TrackJoinBlocks: "0xe9";
216
- readonly TrackJoinUID: "0xed";
217
- readonly TrickTrackUID: "0xc0";
218
- readonly TrickTrackSegmentUID: "0xc1";
219
- readonly TrickTrackFlag: "0xc6";
220
- readonly TrickMasterTrackUID: "0xc7";
221
- readonly TrickMasterTrackSegmentUID: "0xc4";
222
- readonly ContentEncodings: "0x6d80";
223
- readonly ContentEncoding: "0x6240";
224
- readonly ContentEncodingOrder: "0x5031";
225
- readonly ContentEncodingScope: "0x5032";
226
- readonly ContentEncodingType: "0x5033";
227
- readonly ContentCompression: "0x5034";
228
- readonly ContentCompAlgo: "0x4254";
229
- readonly ContentCompSettings: "0x4255";
230
- readonly ContentEncryption: "0x5035";
231
- readonly ContentEncAlgo: "0x47e1";
232
- readonly ContentEncKeyID: "0x47e2";
233
- readonly ContentEncAESSettings: "0x47e7";
234
- readonly AESSettingsCipherMode: "0x47e8";
235
- readonly ContentSignature: "0x47e3";
236
- readonly ContentSigKeyID: "0x47e4";
237
- readonly ContentSigAlgo: "0x47e5";
238
- readonly ContentSigHashAlgo: "0x47e6";
239
- readonly Cues: "0x1c53bb6b";
240
- readonly CuePoint: "0xbb";
241
- readonly CueTime: "0xb3";
242
- readonly CueTrackPositions: "0xb7";
243
- readonly CueTrack: "0xf7";
244
- readonly CueClusterPosition: "0xf1";
245
- readonly CueRelativePosition: "0xf0";
246
- readonly CueDuration: "0xb2";
247
- readonly CueBlockNumber: "0x5378";
248
- readonly CueCodecState: "0xea";
249
- readonly CueReference: "0xdb";
250
- readonly CueRefTime: "0x96";
251
- readonly CueRefCluster: "0x97";
252
- readonly CueRefNumber: "0x535f";
253
- readonly CueRefCodecState: "0xeb";
254
- readonly Attachments: "0x1941a469";
255
- readonly AttachedFile: "0x61a7";
256
- readonly FileDescription: "0x467e";
257
- readonly FileName: "0x466e";
258
- readonly FileMediaType: "0x4660";
259
- readonly FileData: "0x465c";
260
- readonly FileUID: "0x46ae";
261
- readonly FileReferral: "0x4675";
262
- readonly FileUsedStartTime: "0x4661";
263
- readonly FileUsedEndTime: "0x4662";
264
- readonly Chapters: "0x1043a770";
265
- readonly EditionEntry: "0x45b9";
266
- readonly EditionUID: "0x45bc";
267
- readonly EditionFlagHidden: "0x45bd";
268
- readonly EditionFlagDefault: "0x45db";
269
- readonly EditionFlagOrdered: "0x45dd";
270
- readonly EditionDisplay: "0x4520";
271
- readonly EditionString: "0x4521";
272
- readonly EditionLanguageIETF: "0x45e4";
273
- readonly ChapterAtom: "0xb6";
274
- readonly ChapterUID: "0x73c4";
275
- readonly ChapterStringUID: "0x5654";
276
- readonly ChapterTimeStart: "0x91";
277
- readonly ChapterTimeEnd: "0x92";
278
- readonly ChapterFlagHidden: "0x98";
279
- readonly ChapterFlagEnabled: "0x4598";
280
- readonly ChapterSegmentUUID: "0x6e67";
281
- readonly ChapterSkipType: "0x4588";
282
- readonly ChapterSegmentEditionUID: "0x6ebc";
283
- readonly ChapterPhysicalEquiv: "0x63c3";
284
- readonly ChapterTrack: "0x8f";
285
- readonly ChapterTrackUID: "0x89";
286
- readonly ChapterDisplay: "0x80";
287
- readonly ChapString: "0x85";
288
- readonly ChapLanguage: "0x437c";
289
- readonly ChapLanguageBCP47: "0x437d";
290
- readonly ChapCountry: "0x437e";
291
- readonly ChapProcess: "0x6944";
292
- readonly ChapProcessCodecID: "0x6955";
293
- readonly ChapProcessPrivate: "0x450d";
294
- readonly ChapProcessCommand: "0x6911";
295
- readonly ChapProcessTime: "0x6922";
296
- readonly ChapProcessData: "0x6933";
297
- readonly Tags: "0x1254c367";
298
- readonly Tag: "0x7373";
299
- readonly Targets: "0x63c0";
300
- readonly TargetTypeValue: "0x68ca";
301
- readonly TargetType: "0x63ca";
302
- readonly TagTrackUID: "0x63c5";
303
- readonly TagEditionUID: "0x63c9";
304
- readonly TagChapterUID: "0x63c4";
305
- readonly TagAttachmentUID: "0x63c6";
306
- readonly SimpleTag: "0x67c8";
307
- readonly TagName: "0x45a3";
308
- readonly TagLanguage: "0x447a";
309
- readonly TagLanguageBCP47: "0x447b";
310
- readonly TagDefault: "0x4484";
311
- readonly TagDefaultBogus: "0x44b4";
312
- readonly TagString: "0x4487";
313
- readonly TagBinary: "0x4485";
314
- readonly Void: "0xec";
315
- readonly Crc32: "0xbf";
51
+ readonly Header: '0x1a45dfa3';
52
+ readonly EBMLMaxIDLength: '0x42f2';
53
+ readonly EBMLVersion: '0x4286';
54
+ readonly EBMLReadVersion: '0x42f7';
55
+ readonly EBMLMaxSizeLength: '0x42f3';
56
+ readonly DocType: '0x4282';
57
+ readonly DocTypeVersion: '0x4287';
58
+ readonly DocTypeReadVersion: '0x4285';
59
+ readonly Segment: '0x18538067';
60
+ readonly SeekHead: '0x114d9b74';
61
+ readonly Seek: '0x4dbb';
62
+ readonly SeekID: '0x53ab';
63
+ readonly SeekPosition: '0x53ac';
64
+ readonly Info: '0x1549a966';
65
+ readonly SegmentUUID: '0x73a4';
66
+ readonly SegmentFilename: '0x7384';
67
+ readonly PrevUUID: '0x3cb923';
68
+ readonly PrevFilename: '0x3c83ab';
69
+ readonly NextUUID: '0x3eb923';
70
+ readonly NextFilename: '0x3e83bb';
71
+ readonly SegmentFamily: '0x4444';
72
+ readonly ChapterTranslate: '0x6924';
73
+ readonly ChapterTranslateID: '0x69a5';
74
+ readonly ChapterTranslateCodec: '0x69bf';
75
+ readonly ChapterTranslateEditionUID: '0x69fc';
76
+ readonly TimestampScale: '0x2ad7b1';
77
+ readonly Duration: '0x4489';
78
+ readonly DateUTC: '0x4461';
79
+ readonly Title: '0x7ba9';
80
+ readonly MuxingApp: '0x4d80';
81
+ readonly WritingApp: '0x5741';
82
+ readonly Cluster: '0x1f43b675';
83
+ readonly Timestamp: '0xe7';
84
+ readonly SilentTracks: '0x5854';
85
+ readonly SilentTrackNumber: '0x58d7';
86
+ readonly Position: '0xa7';
87
+ readonly PrevSize: '0xab';
88
+ readonly SimpleBlock: '0xa3';
89
+ readonly BlockGroup: '0xa0';
90
+ readonly Block: '0xa1';
91
+ readonly BlockVirtual: '0xa2';
92
+ readonly BlockAdditions: '0x75a1';
93
+ readonly BlockMore: '0xa6';
94
+ readonly BlockAdditional: '0xa5';
95
+ readonly BlockAddID: '0xee';
96
+ readonly BlockDuration: '0x9b';
97
+ readonly ReferencePriority: '0xfa';
98
+ readonly ReferenceBlock: '0xfb';
99
+ readonly ReferenceVirtual: '0xfd';
100
+ readonly CodecState: '0xa4';
101
+ readonly DiscardPadding: '0x75a2';
102
+ readonly Slices: '0x8e';
103
+ readonly TimeSlice: '0xe8';
104
+ readonly LaceNumber: '0xcc';
105
+ readonly FrameNumber: '0xcd';
106
+ readonly BlockAdditionID: '0xcb';
107
+ readonly Delay: '0xce';
108
+ readonly SliceDuration: '0xcf';
109
+ readonly ReferenceFrame: '0xc8';
110
+ readonly ReferenceOffset: '0xc9';
111
+ readonly ReferenceTimestamp: '0xca';
112
+ readonly EncryptedBlock: '0xaf';
113
+ readonly Tracks: '0x1654ae6b';
114
+ readonly TrackEntry: '0xae';
115
+ readonly TrackNumber: '0xd7';
116
+ readonly TrackUID: '0x73c5';
117
+ readonly TrackType: '0x83';
118
+ readonly FlagEnabled: '0xb9';
119
+ readonly FlagDefault: '0x88';
120
+ readonly FlagForced: '0x55aa';
121
+ readonly FlagHearingImpaired: '0x55ab';
122
+ readonly FlagVisualImpaired: '0x55ac';
123
+ readonly FlagTextDescriptions: '0x55ad';
124
+ readonly FlagOriginal: '0x55ae';
125
+ readonly FlagCommentary: '0x55af';
126
+ readonly FlagLacing: '0x9c';
127
+ readonly MinCache: '0x6de7';
128
+ readonly MaxCache: '0x6df8';
129
+ readonly DefaultDuration: '0x23e383';
130
+ readonly DefaultDecodedFieldDuration: '0x234e7a';
131
+ readonly TrackTimestampScale: '0x23314f';
132
+ readonly TrackOffset: '0x537f';
133
+ readonly MaxBlockAdditionID: '0x55ee';
134
+ readonly BlockAdditionMapping: '0x41e4';
135
+ readonly BlockAddIDValue: '0x41f0';
136
+ readonly BlockAddIDName: '0x41a4';
137
+ readonly BlockAddIDType: '0x41e7';
138
+ readonly BlockAddIDExtraData: '0x41ed';
139
+ readonly Name: '0x536e';
140
+ readonly Language: '0x22b59c';
141
+ readonly LanguageBCP47: '0x22b59d';
142
+ readonly CodecID: '0x86';
143
+ readonly CodecPrivate: '0x63a2';
144
+ readonly CodecName: '0x258688';
145
+ readonly AttachmentLink: '0x7446';
146
+ readonly CodecSettings: '0x3a9697';
147
+ readonly CodecInfoURL: '0x3b4040';
148
+ readonly CodecDownloadURL: '0x26b240';
149
+ readonly CodecDecodeAll: '0xaa';
150
+ readonly TrackOverlay: '0x6fab';
151
+ readonly CodecDelay: '0x56aa';
152
+ readonly SeekPreRoll: '0x56bb';
153
+ readonly TrackTranslate: '0x6624';
154
+ readonly TrackTranslateTrackID: '0x66a5';
155
+ readonly TrackTranslateCodec: '0x66bf';
156
+ readonly TrackTranslateEditionUID: '0x66fc';
157
+ readonly Video: '0xe0';
158
+ readonly FlagInterlaced: '0x9a';
159
+ readonly FieldOrder: '0x9d';
160
+ readonly StereoMode: '0x53b8';
161
+ readonly AlphaMode: '0x53c0';
162
+ readonly OldStereoMode: '0x53b9';
163
+ readonly PixelWidth: '0xb0';
164
+ readonly PixelHeight: '0xba';
165
+ readonly PixelCropBottom: '0x54aa';
166
+ readonly PixelCropTop: '0x54bb';
167
+ readonly PixelCropLeft: '0x54cc';
168
+ readonly PixelCropRight: '0x54dd';
169
+ readonly DisplayWidth: '0x54b0';
170
+ readonly DisplayHeight: '0x54ba';
171
+ readonly DisplayUnit: '0x54b2';
172
+ readonly AspectRatioType: '0x54b3';
173
+ readonly UncompressedFourCC: '0x2eb524';
174
+ readonly GammaValue: '0x2fb523';
175
+ readonly FrameRate: '0x2383e3';
176
+ readonly Colour: '0x55b0';
177
+ readonly MatrixCoefficients: '0x55b1';
178
+ readonly BitsPerChannel: '0x55b2';
179
+ readonly ChromaSubsamplingHorz: '0x55b3';
180
+ readonly ChromaSubsamplingVert: '0x55b4';
181
+ readonly CbSubsamplingHorz: '0x55b5';
182
+ readonly CbSubsamplingVert: '0x55b6';
183
+ readonly ChromaSitingHorz: '0x55b7';
184
+ readonly ChromaSitingVert: '0x55b8';
185
+ readonly Range: '0x55b9';
186
+ readonly TransferCharacteristics: '0x55ba';
187
+ readonly Primaries: '0x55bb';
188
+ readonly MaxCLL: '0x55bc';
189
+ readonly MaxFALL: '0x55bd';
190
+ readonly MasteringMetadata: '0x55d0';
191
+ readonly PrimaryRChromaticityX: '0x55d1';
192
+ readonly PrimaryRChromaticityY: '0x55d2';
193
+ readonly PrimaryGChromaticityX: '0x55d3';
194
+ readonly PrimaryGChromaticityY: '0x55d4';
195
+ readonly PrimaryBChromaticityX: '0x55d5';
196
+ readonly PrimaryBChromaticityY: '0x55d6';
197
+ readonly WhitePointChromaticityX: '0x55d7';
198
+ readonly WhitePointChromaticityY: '0x55d8';
199
+ readonly LuminanceMax: '0x55d9';
200
+ readonly LuminanceMin: '0x55da';
201
+ readonly Projection: '0x7670';
202
+ readonly ProjectionType: '0x7671';
203
+ readonly ProjectionPrivate: '0x7672';
204
+ readonly ProjectionPoseYaw: '0x7673';
205
+ readonly ProjectionPosePitch: '0x7674';
206
+ readonly ProjectionPoseRoll: '0x7675';
207
+ readonly Audio: '0xe1';
208
+ readonly SamplingFrequency: '0xb5';
209
+ readonly OutputSamplingFrequency: '0x78b5';
210
+ readonly Channels: '0x9f';
211
+ readonly ChannelPositions: '0x7d7b';
212
+ readonly BitDepth: '0x6264';
213
+ readonly Emphasis: '0x52f1';
214
+ readonly TrackOperation: '0xe2';
215
+ readonly TrackCombinePlanes: '0xe3';
216
+ readonly TrackPlane: '0xe4';
217
+ readonly TrackPlaneUID: '0xe5';
218
+ readonly TrackPlaneType: '0xe6';
219
+ readonly TrackJoinBlocks: '0xe9';
220
+ readonly TrackJoinUID: '0xed';
221
+ readonly TrickTrackUID: '0xc0';
222
+ readonly TrickTrackSegmentUID: '0xc1';
223
+ readonly TrickTrackFlag: '0xc6';
224
+ readonly TrickMasterTrackUID: '0xc7';
225
+ readonly TrickMasterTrackSegmentUID: '0xc4';
226
+ readonly ContentEncodings: '0x6d80';
227
+ readonly ContentEncoding: '0x6240';
228
+ readonly ContentEncodingOrder: '0x5031';
229
+ readonly ContentEncodingScope: '0x5032';
230
+ readonly ContentEncodingType: '0x5033';
231
+ readonly ContentCompression: '0x5034';
232
+ readonly ContentCompAlgo: '0x4254';
233
+ readonly ContentCompSettings: '0x4255';
234
+ readonly ContentEncryption: '0x5035';
235
+ readonly ContentEncAlgo: '0x47e1';
236
+ readonly ContentEncKeyID: '0x47e2';
237
+ readonly ContentEncAESSettings: '0x47e7';
238
+ readonly AESSettingsCipherMode: '0x47e8';
239
+ readonly ContentSignature: '0x47e3';
240
+ readonly ContentSigKeyID: '0x47e4';
241
+ readonly ContentSigAlgo: '0x47e5';
242
+ readonly ContentSigHashAlgo: '0x47e6';
243
+ readonly Cues: '0x1c53bb6b';
244
+ readonly CuePoint: '0xbb';
245
+ readonly CueTime: '0xb3';
246
+ readonly CueTrackPositions: '0xb7';
247
+ readonly CueTrack: '0xf7';
248
+ readonly CueClusterPosition: '0xf1';
249
+ readonly CueRelativePosition: '0xf0';
250
+ readonly CueDuration: '0xb2';
251
+ readonly CueBlockNumber: '0x5378';
252
+ readonly CueCodecState: '0xea';
253
+ readonly CueReference: '0xdb';
254
+ readonly CueRefTime: '0x96';
255
+ readonly CueRefCluster: '0x97';
256
+ readonly CueRefNumber: '0x535f';
257
+ readonly CueRefCodecState: '0xeb';
258
+ readonly Attachments: '0x1941a469';
259
+ readonly AttachedFile: '0x61a7';
260
+ readonly FileDescription: '0x467e';
261
+ readonly FileName: '0x466e';
262
+ readonly FileMediaType: '0x4660';
263
+ readonly FileData: '0x465c';
264
+ readonly FileUID: '0x46ae';
265
+ readonly FileReferral: '0x4675';
266
+ readonly FileUsedStartTime: '0x4661';
267
+ readonly FileUsedEndTime: '0x4662';
268
+ readonly Chapters: '0x1043a770';
269
+ readonly EditionEntry: '0x45b9';
270
+ readonly EditionUID: '0x45bc';
271
+ readonly EditionFlagHidden: '0x45bd';
272
+ readonly EditionFlagDefault: '0x45db';
273
+ readonly EditionFlagOrdered: '0x45dd';
274
+ readonly EditionDisplay: '0x4520';
275
+ readonly EditionString: '0x4521';
276
+ readonly EditionLanguageIETF: '0x45e4';
277
+ readonly ChapterAtom: '0xb6';
278
+ readonly ChapterUID: '0x73c4';
279
+ readonly ChapterStringUID: '0x5654';
280
+ readonly ChapterTimeStart: '0x91';
281
+ readonly ChapterTimeEnd: '0x92';
282
+ readonly ChapterFlagHidden: '0x98';
283
+ readonly ChapterFlagEnabled: '0x4598';
284
+ readonly ChapterSegmentUUID: '0x6e67';
285
+ readonly ChapterSkipType: '0x4588';
286
+ readonly ChapterSegmentEditionUID: '0x6ebc';
287
+ readonly ChapterPhysicalEquiv: '0x63c3';
288
+ readonly ChapterTrack: '0x8f';
289
+ readonly ChapterTrackUID: '0x89';
290
+ readonly ChapterDisplay: '0x80';
291
+ readonly ChapString: '0x85';
292
+ readonly ChapLanguage: '0x437c';
293
+ readonly ChapLanguageBCP47: '0x437d';
294
+ readonly ChapCountry: '0x437e';
295
+ readonly ChapProcess: '0x6944';
296
+ readonly ChapProcessCodecID: '0x6955';
297
+ readonly ChapProcessPrivate: '0x450d';
298
+ readonly ChapProcessCommand: '0x6911';
299
+ readonly ChapProcessTime: '0x6922';
300
+ readonly ChapProcessData: '0x6933';
301
+ readonly Tags: '0x1254c367';
302
+ readonly Tag: '0x7373';
303
+ readonly Targets: '0x63c0';
304
+ readonly TargetTypeValue: '0x68ca';
305
+ readonly TargetType: '0x63ca';
306
+ readonly TagTrackUID: '0x63c5';
307
+ readonly TagEditionUID: '0x63c9';
308
+ readonly TagChapterUID: '0x63c4';
309
+ readonly TagAttachmentUID: '0x63c6';
310
+ readonly SimpleTag: '0x67c8';
311
+ readonly TagName: '0x45a3';
312
+ readonly TagLanguage: '0x447a';
313
+ readonly TagLanguageBCP47: '0x447b';
314
+ readonly TagDefault: '0x4484';
315
+ readonly TagDefaultBogus: '0x44b4';
316
+ readonly TagString: '0x4487';
317
+ readonly TagBinary: '0x4485';
318
+ readonly Void: '0xec';
319
+ readonly Crc32: '0xbf';
316
320
  };
317
321
  ebmlMap: {
318
322
  readonly "0x1a45dfa3": {
319
- readonly name: "Header";
320
- readonly type: "children";
323
+ readonly name: 'Header';
324
+ readonly type: 'children';
321
325
  };
322
326
  readonly "0x4282": {
323
327
  name: "DocType";
324
328
  type: "string";
325
329
  };
326
330
  readonly "0x63c0": {
327
- readonly name: "Targets";
328
- readonly type: "children";
331
+ readonly name: 'Targets';
332
+ readonly type: 'children';
329
333
  };
330
334
  readonly "0x67c8": {
331
- readonly name: "SimpleTag";
332
- readonly type: "children";
335
+ readonly name: 'SimpleTag';
336
+ readonly type: 'children';
333
337
  };
334
338
  readonly "0x45a3": {
335
- readonly name: "TagName";
336
- readonly type: "string";
339
+ readonly name: 'TagName';
340
+ readonly type: 'string';
337
341
  };
338
342
  readonly "0x4487": {
339
- readonly name: "TagString";
340
- readonly type: "string";
343
+ readonly name: 'TagString';
344
+ readonly type: 'string';
341
345
  };
342
346
  readonly "0x4287": {
343
347
  name: "DocTypeVersion";
@@ -356,8 +360,8 @@ export declare const MediaParserInternals: {
356
360
  type: "uint";
357
361
  };
358
362
  readonly "0x42f2": {
359
- readonly name: "EBMLMaxIDLength";
360
- readonly type: "uint";
363
+ readonly name: 'EBMLMaxIDLength';
364
+ readonly type: 'uint';
361
365
  };
362
366
  readonly "0x42f3": {
363
367
  name: "EBMLMaxSizeLength";
@@ -368,920 +372,314 @@ export declare const MediaParserInternals: {
368
372
  type: "uint8array";
369
373
  };
370
374
  readonly "0x1c53bb6b": {
371
- readonly name: "Cues";
372
- readonly type: "children";
375
+ readonly name: 'Cues';
376
+ readonly type: 'children';
373
377
  };
374
378
  readonly "0xbb": {
375
- readonly name: "CuePoint";
376
- readonly type: "children";
379
+ readonly name: 'CuePoint';
380
+ readonly type: 'children';
377
381
  };
378
382
  readonly "0xb3": {
379
- readonly name: "CueTime";
380
- readonly type: "uint";
383
+ readonly name: 'CueTime';
384
+ readonly type: 'uint';
381
385
  };
382
386
  readonly "0xb7": {
383
- readonly name: "CueTrackPositions";
384
- readonly type: "children";
387
+ readonly name: 'CueTrackPositions';
388
+ readonly type: 'children';
385
389
  };
386
390
  readonly "0xf1": {
387
- readonly name: "CueClusterPosition";
388
- readonly type: "uint";
391
+ readonly name: 'CueClusterPosition';
392
+ readonly type: 'uint';
389
393
  };
390
394
  readonly "0xf0": {
391
- readonly name: "CueRelativePosition";
392
- readonly type: "uint";
395
+ readonly name: 'CueRelativePosition';
396
+ readonly type: 'uint';
393
397
  };
394
398
  readonly "0x5378": {
395
- readonly name: "CueBlockNumber";
396
- readonly type: "uint";
399
+ readonly name: 'CueBlockNumber';
400
+ readonly type: 'uint';
397
401
  };
398
402
  readonly "0xf7": {
399
- readonly name: "CueTrack";
400
- readonly type: "uint";
403
+ readonly name: 'CueTrack';
404
+ readonly type: 'uint';
401
405
  };
402
406
  readonly "0x4461": {
403
- readonly name: "DateUTC";
404
- readonly type: "uint8array";
407
+ readonly name: 'DateUTC';
408
+ readonly type: 'uint8array';
405
409
  };
406
410
  readonly "0x23314f": {
407
- readonly name: "TrackTimestampScale";
408
- readonly type: "float";
411
+ readonly name: 'TrackTimestampScale';
412
+ readonly type: 'float';
409
413
  };
410
414
  readonly "0x56aa": {
411
- readonly name: "CodecDelay";
412
- readonly type: "uint8array";
415
+ readonly name: 'CodecDelay';
416
+ readonly type: 'uint8array';
413
417
  };
414
418
  readonly "0x56bb": {
415
- readonly name: "SeekPreRoll";
416
- readonly type: "uint8array";
419
+ readonly name: 'SeekPreRoll';
420
+ readonly type: 'uint8array';
417
421
  };
418
422
  readonly "0x75a2": {
419
- readonly name: "DiscardPadding";
420
- readonly type: "uint8array";
423
+ readonly name: 'DiscardPadding';
424
+ readonly type: 'uint8array';
421
425
  };
422
426
  readonly "0x78b5": {
423
- readonly name: "OutputSamplingFrequency";
424
- readonly type: "uint8array";
427
+ readonly name: 'OutputSamplingFrequency';
428
+ readonly type: 'uint8array';
425
429
  };
426
430
  readonly "0x258688": {
427
- readonly name: "CodecName";
428
- readonly type: "string";
431
+ readonly name: 'CodecName';
432
+ readonly type: 'string';
429
433
  };
430
434
  readonly "0xa7": {
431
- readonly name: "Position";
432
- readonly type: "uint8array";
435
+ readonly name: 'Position';
436
+ readonly type: 'uint8array';
433
437
  };
434
438
  readonly "0xcf": {
435
- readonly name: "SliceDuration";
436
- readonly type: "uint8array";
439
+ readonly name: 'SliceDuration';
440
+ readonly type: 'uint8array';
437
441
  };
438
442
  readonly "0x63c5": {
439
- readonly name: "TagTrackUID";
440
- readonly type: "hex-string";
443
+ readonly name: 'TagTrackUID';
444
+ readonly type: 'hex-string';
441
445
  };
442
446
  readonly "0x114d9b74": {
443
- readonly name: "SeekHead";
444
- readonly type: "children";
447
+ readonly name: 'SeekHead';
448
+ readonly type: 'children';
445
449
  };
446
450
  readonly "0x4dbb": {
447
- readonly name: "Seek";
448
- readonly type: "children";
451
+ readonly name: 'Seek';
452
+ readonly type: 'children';
449
453
  };
450
454
  readonly "0x53ab": {
451
- readonly name: "SeekID";
452
- readonly type: "hex-string";
455
+ readonly name: 'SeekID';
456
+ readonly type: 'hex-string';
453
457
  };
454
458
  readonly "0x536e": {
455
- readonly name: "Name";
456
- readonly type: "string";
459
+ readonly name: 'Name';
460
+ readonly type: 'string';
457
461
  };
458
462
  readonly "0x6de7": {
459
- readonly name: "MinCache";
460
- readonly type: "uint";
463
+ readonly name: 'MinCache';
464
+ readonly type: 'uint';
461
465
  };
462
466
  readonly "0x6df8": {
463
- readonly name: "MaxCache";
464
- readonly type: "uint";
467
+ readonly name: 'MaxCache';
468
+ readonly type: 'uint';
465
469
  };
466
470
  readonly "0x53ac": {
467
- readonly name: "SeekPosition";
468
- readonly type: "uint";
471
+ readonly name: 'SeekPosition';
472
+ readonly type: 'uint';
469
473
  };
470
474
  readonly "0xbf": {
471
- readonly name: "Crc32";
472
- readonly type: "uint8array";
475
+ readonly name: 'Crc32';
476
+ readonly type: 'uint8array';
473
477
  };
474
478
  readonly "0x4d80": {
475
- readonly name: "MuxingApp";
476
- readonly type: "string";
479
+ readonly name: 'MuxingApp';
480
+ readonly type: 'string';
477
481
  };
478
482
  readonly "0x5741": {
479
- readonly name: "WritingApp";
480
- readonly type: "string";
483
+ readonly name: 'WritingApp';
484
+ readonly type: 'string';
481
485
  };
482
486
  readonly "0x73a4": {
483
- readonly name: "SegmentUUID";
484
- readonly type: "string";
487
+ readonly name: 'SegmentUUID';
488
+ readonly type: 'string';
485
489
  };
486
490
  readonly "0x4489": {
487
- readonly name: "Duration";
488
- readonly type: "float";
491
+ readonly name: 'Duration';
492
+ readonly type: 'float';
489
493
  };
490
494
  readonly "0x86": {
491
- readonly name: "CodecID";
492
- readonly type: "string";
495
+ readonly name: 'CodecID';
496
+ readonly type: 'string';
493
497
  };
494
498
  readonly "0x83": {
495
- readonly name: "TrackType";
496
- readonly type: "uint";
499
+ readonly name: 'TrackType';
500
+ readonly type: 'uint';
497
501
  };
498
502
  readonly "0xb0": {
499
- readonly name: "PixelWidth";
500
- readonly type: "uint";
503
+ readonly name: 'PixelWidth';
504
+ readonly type: 'uint';
501
505
  };
502
506
  readonly "0xba": {
503
- readonly name: "PixelHeight";
504
- readonly type: "uint";
507
+ readonly name: 'PixelHeight';
508
+ readonly type: 'uint';
505
509
  };
506
510
  readonly "0x2ad7b1": {
507
- readonly name: "TimestampScale";
508
- readonly type: "uint";
511
+ readonly name: 'TimestampScale';
512
+ readonly type: 'uint';
509
513
  };
510
514
  readonly "0x1549a966": {
511
- readonly name: "Info";
512
- readonly type: "children";
515
+ readonly name: 'Info';
516
+ readonly type: 'children';
513
517
  };
514
518
  readonly "0x7ba9": {
515
- readonly name: "Title";
516
- readonly type: "string";
519
+ readonly name: 'Title';
520
+ readonly type: 'string';
517
521
  };
518
522
  readonly "0xb5": {
519
- readonly name: "SamplingFrequency";
520
- readonly type: "float";
523
+ readonly name: 'SamplingFrequency';
524
+ readonly type: 'float';
521
525
  };
522
526
  readonly "0x9f": {
523
- readonly name: "Channels";
524
- readonly type: "uint";
527
+ readonly name: 'Channels';
528
+ readonly type: 'uint';
525
529
  };
526
530
  readonly "0x53c0": {
527
- readonly name: "AlphaMode";
528
- readonly type: "uint";
531
+ readonly name: 'AlphaMode';
532
+ readonly type: 'uint';
529
533
  };
530
534
  readonly "0x9a": {
531
- readonly name: "FlagInterlaced";
532
- readonly type: "uint";
535
+ readonly name: 'FlagInterlaced';
536
+ readonly type: 'uint';
533
537
  };
534
538
  readonly "0x6264": {
535
- readonly name: "BitDepth";
536
- readonly type: "uint";
539
+ readonly name: 'BitDepth';
540
+ readonly type: 'uint';
537
541
  };
538
542
  readonly "0x54ba": {
539
- readonly name: "DisplayHeight";
540
- readonly type: "uint";
543
+ readonly name: 'DisplayHeight';
544
+ readonly type: 'uint';
541
545
  };
542
546
  readonly "0x54b0": {
543
- readonly name: "DisplayWidth";
544
- readonly type: "uint";
547
+ readonly name: 'DisplayWidth';
548
+ readonly type: 'uint';
545
549
  };
546
550
  readonly "0x54b2": {
547
- readonly name: "DisplayUnit";
548
- readonly type: "uint";
551
+ readonly name: 'DisplayUnit';
552
+ readonly type: 'uint';
549
553
  };
550
554
  readonly "0x9c": {
551
- readonly name: "FlagLacing";
552
- readonly type: "uint";
555
+ readonly name: 'FlagLacing';
556
+ readonly type: 'uint';
553
557
  };
554
558
  readonly "0x1254c367": {
555
- readonly name: "Tags";
556
- readonly type: "children";
559
+ readonly name: 'Tags';
560
+ readonly type: 'children';
557
561
  };
558
562
  readonly "0x7373": {
559
- readonly name: "Tag";
560
- readonly type: "children";
563
+ readonly name: 'Tag';
564
+ readonly type: 'children';
561
565
  };
562
566
  readonly "0xd7": {
563
- readonly name: "TrackNumber";
564
- readonly type: "uint";
567
+ readonly name: 'TrackNumber';
568
+ readonly type: 'uint';
565
569
  };
566
570
  readonly "0x73c5": {
567
- readonly name: "TrackUID";
568
- readonly type: "hex-string";
571
+ readonly name: 'TrackUID';
572
+ readonly type: 'hex-string';
569
573
  };
570
574
  readonly "0x55b0": {
571
- readonly name: "Colour";
572
- readonly type: "children";
575
+ readonly name: 'Colour';
576
+ readonly type: 'children';
573
577
  };
574
578
  readonly "0x22b59c": {
575
- readonly name: "Language";
576
- readonly type: "string";
579
+ readonly name: 'Language';
580
+ readonly type: 'string';
577
581
  };
578
582
  readonly "0x23e383": {
579
- readonly name: "DefaultDuration";
580
- readonly type: "uint";
583
+ readonly name: 'DefaultDuration';
584
+ readonly type: 'uint';
581
585
  };
582
586
  readonly "0x63a2": {
583
- readonly name: "CodecPrivate";
584
- readonly type: "uint8array";
587
+ readonly name: 'CodecPrivate';
588
+ readonly type: 'uint8array';
585
589
  };
586
590
  readonly "0x9b": {
587
- readonly name: "BlockDuration";
588
- readonly type: "uint";
591
+ readonly name: 'BlockDuration';
592
+ readonly type: 'uint';
589
593
  };
590
594
  readonly "0x75a1": {
591
- readonly name: "BlockAdditions";
592
- readonly type: "uint8array";
595
+ readonly name: 'BlockAdditions';
596
+ readonly type: 'uint8array';
593
597
  };
594
598
  readonly "0x55ee": {
595
- readonly name: "MaxBlockAdditionID";
596
- readonly type: "uint";
599
+ readonly name: 'MaxBlockAdditionID';
600
+ readonly type: 'uint';
597
601
  };
598
602
  readonly "0xe1": {
599
- readonly name: "Audio";
600
- readonly type: "children";
603
+ readonly name: 'Audio';
604
+ readonly type: 'children';
601
605
  };
602
606
  readonly "0xe0": {
603
- readonly name: "Video";
604
- readonly type: "children";
607
+ readonly name: 'Video';
608
+ readonly type: 'children';
605
609
  };
606
610
  readonly "0x88": {
607
- readonly name: "FlagDefault";
608
- readonly type: "uint";
611
+ readonly name: 'FlagDefault';
612
+ readonly type: 'uint';
609
613
  };
610
614
  readonly "0xfb": {
611
- readonly name: "ReferenceBlock";
612
- readonly type: "uint";
615
+ readonly name: 'ReferenceBlock';
616
+ readonly type: 'uint';
613
617
  };
614
618
  readonly "0xae": {
615
- readonly name: "TrackEntry";
616
- readonly type: "children";
619
+ readonly name: 'TrackEntry';
620
+ readonly type: 'children';
617
621
  };
618
622
  readonly "0xe7": {
619
- readonly name: "Timestamp";
620
- readonly type: "uint";
623
+ readonly name: 'Timestamp';
624
+ readonly type: 'uint';
621
625
  };
622
626
  readonly "0x1654ae6b": {
623
- readonly name: "Tracks";
624
- readonly type: "children";
627
+ readonly name: 'Tracks';
628
+ readonly type: 'children';
625
629
  };
626
630
  readonly "0xa1": {
627
- readonly name: "Block";
628
- readonly type: "uint8array";
631
+ readonly name: 'Block';
632
+ readonly type: 'uint8array';
629
633
  };
630
634
  readonly "0xa3": {
631
- readonly name: "SimpleBlock";
632
- readonly type: "uint8array";
635
+ readonly name: 'SimpleBlock';
636
+ readonly type: 'uint8array';
633
637
  };
634
638
  readonly "0xa0": {
635
- readonly name: "BlockGroup";
636
- readonly type: "children";
639
+ readonly name: 'BlockGroup';
640
+ readonly type: 'children';
637
641
  };
638
642
  readonly "0x18538067": {
639
- readonly name: "Segment";
640
- readonly type: "children";
643
+ readonly name: 'Segment';
644
+ readonly type: 'children';
641
645
  };
642
646
  readonly "0x1f43b675": {
643
- readonly name: "Cluster";
644
- readonly type: "children";
647
+ readonly name: 'Cluster';
648
+ readonly type: 'children';
645
649
  };
646
650
  readonly "0x55ba": {
647
- readonly name: "TransferCharacteristics";
648
- readonly type: "uint";
651
+ readonly name: 'TransferCharacteristics';
652
+ readonly type: 'uint';
649
653
  };
650
654
  readonly "0x55b1": {
651
- readonly name: "MatrixCoefficients";
652
- readonly type: "uint";
655
+ readonly name: 'MatrixCoefficients';
656
+ readonly type: 'uint';
653
657
  };
654
658
  readonly "0x55bb": {
655
- readonly name: "Primaries";
656
- readonly type: "uint";
659
+ readonly name: 'Primaries';
660
+ readonly type: 'uint';
657
661
  };
658
662
  readonly "0x55b9": {
659
- readonly name: "Range";
660
- readonly type: "uint";
663
+ readonly name: 'Range';
664
+ readonly type: 'uint';
661
665
  };
662
666
  readonly "0x55b7": {
663
- readonly name: "ChromaSitingHorz";
664
- readonly type: "uint";
667
+ readonly name: 'ChromaSitingHorz';
668
+ readonly type: 'uint';
665
669
  };
666
670
  readonly "0x55b8": {
667
- readonly name: "ChromaSitingVert";
668
- readonly type: "uint";
671
+ readonly name: 'ChromaSitingVert';
672
+ readonly type: 'uint';
669
673
  };
670
674
  };
671
- parseTkhd: ({ iterator, offset, size, }: {
672
- iterator: import("./iterator/buffer-iterator").BufferIterator;
673
- offset: number;
674
- size: number;
675
- }) => import("./containers/iso-base-media/tkhd").TkhdBox;
676
- getArrayBufferIterator: ({ initialData, maxBytes, logLevel, }: {
677
- initialData: Uint8Array;
678
- maxBytes: number;
679
- logLevel: MediaParserLogLevel;
680
- }) => {
681
- startReadingBits: () => void;
682
- stopReadingBits: () => void;
683
- skipTo: (offset: number) => void;
684
- addData: (newData: Uint8Array) => void;
685
- counter: {
686
- getOffset: () => number;
687
- discardBytes: (bytes: number) => void;
688
- increment: (bytes: number) => void;
689
- getDiscardedBytes: () => number;
690
- setDiscardedOffset: (bytes: number) => void;
691
- getDiscardedOffset: () => number;
692
- decrement: (bytes: number) => void;
693
- };
694
- peekB: (length: number) => void;
695
- peekD: (length: number) => void;
696
- getBits: (bits: number) => number;
697
- bytesRemaining: () => number;
698
- leb128: () => number;
699
- removeBytesRead: (force: boolean, mode: import("./options").ParseMediaMode) => {
700
- bytesRemoved: number;
701
- removedData: Uint8Array<ArrayBuffer> | null;
702
- };
703
- discard: (length: number) => void;
704
- getEightByteNumber: (littleEndian?: boolean) => number;
705
- getFourByteNumber: () => number;
706
- getSlice: (amount: number) => Uint8Array<ArrayBuffer>;
707
- getAtom: () => string;
708
- detectFileType: () => import("./file-types/detect-file-type").FileType;
709
- getPaddedFourByteNumber: () => number;
710
- getMatroskaSegmentId: () => string | null;
711
- getVint: () => number | null;
712
- getUint8: () => number;
713
- getEBML: () => number;
714
- getInt8: () => number;
715
- getUint16: () => number;
716
- getUint16Le: () => number;
717
- getUint24: () => number;
718
- getInt24: () => number;
719
- getInt16: () => number;
720
- getUint32: () => number;
721
- getUint64: (littleEndian?: boolean) => bigint;
722
- getInt64: (littleEndian?: boolean) => bigint;
723
- getFixedPointUnsigned1616Number: () => number;
724
- getFixedPointSigned1616Number: () => number;
725
- getFixedPointSigned230Number: () => number;
726
- getPascalString: () => number[];
727
- getUint(length: number): number;
728
- getByteString(length: number, trimTrailingZeroes: boolean): string;
729
- planBytes: (size: number) => {
730
- discardRest: () => Uint8Array<ArrayBuffer>;
731
- };
732
- getFloat64: () => number;
733
- readUntilNullTerminator: () => string;
734
- getFloat32: () => number;
735
- getUint32Le: () => number;
736
- getInt32Le: () => number;
737
- getInt32: () => number;
738
- destroy: () => void;
739
- startBox: (size: number) => {
740
- discardRest: () => void;
741
- expectNoMoreBytes: () => void;
742
- };
743
- readExpGolomb: () => number;
744
- startCheckpoint: () => {
745
- returnToCheckpoint: () => void;
746
- };
747
- getFlacCodecNumber: () => number;
748
- readUntilLineEnd: () => string | null;
749
- getSyncSafeInt32: () => number;
750
- replaceData: (newData: Uint8Array, seekTo: number) => void;
751
- };
752
- parseStsd: ({ offset, size, iterator, logLevel, contentLength, }: {
753
- offset: number;
754
- size: number;
755
- iterator: import("./iterator/buffer-iterator").BufferIterator;
756
- logLevel: MediaParserLogLevel;
757
- contentLength: number;
758
- }) => Promise<import("./containers/iso-base-media/stsd/stsd").StsdBox>;
759
- makeParserState: ({ hasAudioTrackHandlers, hasVideoTrackHandlers, controller, onAudioTrack, onVideoTrack, contentLength, logLevel, mode, src, readerInterface, onDiscardedData, selectM3uStreamFn, selectM3uAssociatedPlaylistsFn, m3uPlaylistContext, contentType, name, callbacks, fieldsInReturnValue, mimeType, initialReaderInstance, makeSamplesStartAtZero, prefetchCache, }: {
760
- hasAudioTrackHandlers: boolean;
761
- hasVideoTrackHandlers: boolean;
762
- controller: import("./controller/media-parser-controller").MediaParserController;
763
- onAudioTrack: import("./webcodec-sample-types").MediaParserOnAudioTrack | null;
764
- onVideoTrack: import("./webcodec-sample-types").MediaParserOnVideoTrack | null;
765
- contentLength: number;
766
- logLevel: MediaParserLogLevel;
767
- mode: import("./options").ParseMediaMode;
768
- src: import("./options").ParseMediaSrc;
769
- readerInterface: import("./readers/reader").MediaParserReaderInterface;
770
- onDiscardedData: import("./options").OnDiscardedData | null;
771
- selectM3uStreamFn: import("./containers/m3u/select-stream").SelectM3uStreamFn;
772
- selectM3uAssociatedPlaylistsFn: import("./containers/m3u/select-stream").SelectM3uAssociatedPlaylistsFn;
773
- m3uPlaylistContext: import("./options").M3uPlaylistContext | null;
774
- contentType: string | null;
775
- name: string;
776
- callbacks: ParseMediaCallbacks;
777
- fieldsInReturnValue: import("./fields").Options<import("./fields").ParseMediaFields>;
778
- mimeType: string | null;
779
- initialReaderInstance: import("./readers/reader").Reader;
780
- makeSamplesStartAtZero: boolean;
781
- prefetchCache: import("./fetch").PrefetchCache;
782
- }) => {
783
- riff: {
784
- getAvcProfile: () => import("./state/parser-state").SpsAndPps | null;
785
- onProfile: (profile: import("./state/parser-state").SpsAndPps) => Promise<void>;
786
- registerOnAvcProfileCallback: (callback: (profile: import("./state/parser-state").SpsAndPps) => Promise<void>) => void;
787
- getNextTrackIndex: () => number;
788
- queuedBFrames: {
789
- addFrame: ({ frame, maxFramesInBuffer, trackId, timescale, }: {
790
- frame: import("./state/riff/queued-frames").QueuedVideoSample;
791
- trackId: number;
792
- maxFramesInBuffer: number;
793
- timescale: number;
794
- }) => void;
795
- flush: () => void;
796
- getReleasedFrame: () => {
797
- sample: import("./state/riff/queued-frames").QueuedVideoSample;
798
- trackId: number;
799
- timescale: number;
800
- } | null;
801
- hasReleasedFrames: () => boolean;
802
- clear: () => void;
803
- };
804
- incrementNextTrackIndex: () => void;
805
- lazyIdx1: {
806
- triggerLoad: (position: number) => Promise<{
807
- entries: import("./containers/riff/riff-box").Idx1Entry[];
808
- videoTrackIndex: number | null;
809
- }>;
810
- getLoadedIdx1: () => Promise<{
811
- entries: import("./containers/riff/riff-box").Idx1Entry[];
812
- videoTrackIndex: number | null;
813
- } | null>;
814
- getIfAlreadyLoaded: () => {
815
- entries: import("./containers/riff/riff-box").Idx1Entry[];
816
- videoTrackIndex: number | null;
817
- } | null;
818
- setFromSeekingHints: (hints: import("./containers/riff/seeking-hints").RiffSeekingHints) => void;
819
- waitForLoaded: () => Promise<{
820
- entries: import("./containers/riff/riff-box").Idx1Entry[];
821
- videoTrackIndex: number | null;
822
- }> | Promise<null>;
823
- };
824
- sampleCounter: {
825
- onAudioSample: (trackId: number, audioSample: import("./webcodec-sample-types").MediaParserAudioSample) => void;
826
- onVideoSample: ({ trackId, videoSample, }: {
827
- videoSample: import("./webcodec-sample-types").MediaParserVideoSample;
828
- trackId: number;
829
- }) => void;
830
- getSampleCountForTrack: ({ trackId }: {
831
- trackId: number;
832
- }) => number;
833
- setSamplesFromSeek: (samples: Record<number, number>) => void;
834
- riffKeys: {
835
- addKeyframe: (keyframe: import("./state/riff/riff-keyframes").RiffKeyframe) => void;
836
- getKeyframes: () => import("./state/riff/riff-keyframes").RiffKeyframe[];
837
- setFromSeekingHints: (keyframesFromHints: import("./state/riff/riff-keyframes").RiffKeyframe[]) => void;
838
- };
839
- setPocAtKeyframeOffset: ({ keyframeOffset, poc, }: {
840
- keyframeOffset: number;
841
- poc: number;
842
- }) => void;
843
- getPocAtKeyframeOffset: ({ keyframeOffset, }: {
844
- keyframeOffset: number;
845
- }) => number[];
846
- getKeyframeAtOffset: (sample: import("./state/riff/queued-frames").QueuedVideoSample) => number | null;
847
- };
848
- };
849
- transportStream: {
850
- nextPesHeaderStore: {
851
- setNextPesHeader: (pesHeader: import("./containers/transport-stream/parse-pes").PacketPes) => void;
852
- getNextPesHeader: () => import("./containers/transport-stream/parse-pes").PacketPes;
853
- };
854
- observedPesHeaders: {
855
- pesHeaders: import("./containers/transport-stream/parse-pes").PacketPes[];
856
- addPesHeader: (pesHeader: import("./containers/transport-stream/parse-pes").PacketPes) => void;
857
- markPtsAsKeyframe: (pts: number) => void;
858
- getPesKeyframeHeaders: () => import("./containers/transport-stream/parse-pes").PacketPes[];
859
- setPesKeyframesFromSeekingHints: (hints: import("./seeking-hints").TransportStreamSeekingHints) => void;
860
- };
861
- streamBuffers: Map<number, import("./containers/transport-stream/process-stream-buffers").TransportStreamPacketBuffer>;
862
- startOffset: {
863
- getOffset: (trackId: number) => number;
864
- setOffset: ({ newOffset, trackId }: {
865
- trackId: number;
866
- newOffset: number;
867
- }) => void;
868
- };
869
- resetBeforeSeek: () => void;
870
- lastEmittedSample: {
871
- setLastEmittedSample: (sample: import("./webcodec-sample-types").MediaParserAudioSample | import("./webcodec-sample-types").MediaParserVideoSample) => void;
872
- getLastEmittedSample: () => import("./webcodec-sample-types").MediaParserVideoSample | import("./webcodec-sample-types").MediaParserAudioSample | null;
873
- resetLastEmittedSample: () => void;
874
- };
875
- };
876
- webm: {
877
- cues: {
878
- triggerLoad: (position: number, segmentOffset: number) => Promise<import("./containers/webm/seek/format-cues").MatroskaCue[] | null>;
879
- getLoadedCues: () => Promise<{
880
- cues: import("./containers/webm/seek/format-cues").MatroskaCue[];
881
- segmentOffset: number;
882
- } | null>;
883
- getIfAlreadyLoaded: () => {
884
- cues: import("./containers/webm/seek/format-cues").MatroskaCue[];
885
- segmentOffset: number;
886
- } | null;
887
- setFromSeekingHints: (hints: import("./seeking-hints").WebmSeekingHints) => void;
888
- };
889
- onTrackEntrySegment: import("./containers/webm/segments").OnTrackEntrySegment;
890
- getTrackInfoByNumber: (id: number) => import("./containers/webm/segments/track-entry").TrackInfo;
891
- setTimestampOffset: (byteOffset: number, timestamp: number) => void;
892
- getTimestampOffsetForByteOffset: (byteOffset: number) => number | undefined;
893
- getTimeStampMapForSeekingHints: () => Map<number, number>;
894
- setTimeStampMapForSeekingHints: (newTimestampMap: Map<number, number>) => void;
895
- getTimescale: () => number;
896
- setTimescale: (newTimescale: number) => void;
897
- addSegment: (seg: Omit<import("./state/matroska/webm").SegmentSection, "index">) => void;
898
- addCluster: (cluster: import("./state/matroska/webm").ClusterSection) => void;
899
- getFirstCluster: () => import("./state/matroska/webm").ClusterSection | undefined;
900
- isInsideSegment: (iterator: import("./iterator/buffer-iterator").BufferIterator) => import("./state/matroska/webm").SegmentSection | null;
901
- isInsideCluster: (offset: number) => import("./state/matroska/webm").ClusterSection | null;
902
- setAvcProfileForTrackNumber: (trackNumber: number, avcProfile: import("./containers/avc/parse-avc").AvcProfileInfo) => void;
903
- getAvcProfileForTrackNumber: (trackNumber: number) => import("./containers/avc/parse-avc").AvcProfileInfo | null;
904
- };
905
- iso: {
906
- flatSamples: {
907
- getSamples: (mdatStart: number) => {
908
- trackId: number;
909
- samplePositions: SamplePosition[];
910
- }[] | null;
911
- setSamples: (mdatStart: number, samples: {
912
- trackId: number;
913
- samplePositions: SamplePosition[];
914
- }[]) => void;
915
- setCurrentSampleIndex: (mdatStart: number, trackId: number, index: number) => void;
916
- getCurrentSampleIndices: (mdatStart: number) => Record<number, number>;
917
- updateAfterSeek: (seekedByte: number) => void;
918
- };
919
- moov: {
920
- setMoovBox: (moov: {
921
- moovBox: import("./containers/iso-base-media/moov/moov").MoovBox;
922
- precomputed: boolean;
923
- }) => void;
924
- getMoovBoxAndPrecomputed: () => {
925
- moovBox: import("./containers/iso-base-media/moov/moov").MoovBox;
926
- precomputed: boolean;
927
- } | null;
928
- };
929
- mfra: {
930
- triggerLoad: () => Promise<import("./containers/iso-base-media/base-media-box").IsoBaseMediaBox[] | null>;
931
- getIfAlreadyLoaded: () => import("./containers/iso-base-media/base-media-box").IsoBaseMediaBox[] | null;
932
- setFromSeekingHints: (hints: import("./seeking-hints").IsoBaseMediaSeekingHints) => void;
933
- };
934
- moof: {
935
- getMoofBoxes: () => import("./state/iso-base-media/precomputed-moof").MoofBox[];
936
- setMoofBoxes: (boxes: import("./state/iso-base-media/precomputed-moof").MoofBox[]) => void;
937
- };
938
- tfra: {
939
- getTfraBoxes: () => import("./containers/iso-base-media/mfra/tfra").TfraBox[];
940
- setTfraBoxes: (boxes: import("./containers/iso-base-media/mfra/tfra").TfraBox[]) => void;
941
- };
942
- movieTimeScale: {
943
- getTrackTimescale: () => number | null;
944
- setTrackTimescale: (timescale: number) => void;
945
- };
946
- };
947
- mp3: {
948
- getMp3Info: () => import("./state/mp3").Mp3Info | null;
949
- setMp3Info: (info: import("./state/mp3").Mp3Info) => void;
950
- getMp3BitrateInfo: () => import("./state/mp3").Mp3BitrateInfo | null;
951
- setMp3BitrateInfo: (info: import("./state/mp3").Mp3BitrateInfo) => void;
952
- audioSamples: {
953
- addSample: (audioSampleOffset: import("./state/audio-sample-map").AudioSampleOffset) => void;
954
- getSamples: () => import("./state/audio-sample-map").AudioSampleOffset[];
955
- setFromSeekingHints: (newMap: import("./state/audio-sample-map").AudioSampleOffset[]) => void;
956
- };
957
- };
958
- aac: {
959
- addSample: ({ offset, size }: {
960
- offset: number;
961
- size: number;
962
- }) => {
963
- offset: number;
964
- index: number;
965
- size: number;
966
- };
967
- getSamples: () => {
968
- offset: number;
969
- index: number;
970
- size: number;
971
- }[];
972
- audioSamples: {
973
- addSample: (audioSampleOffset: import("./state/audio-sample-map").AudioSampleOffset) => void;
974
- getSamples: () => import("./state/audio-sample-map").AudioSampleOffset[];
975
- setFromSeekingHints: (newMap: import("./state/audio-sample-map").AudioSampleOffset[]) => void;
976
- };
977
- };
978
- flac: {
979
- setBlockingBitStrategy: (strategy: number) => void;
980
- getBlockingBitStrategy: () => number | undefined;
981
- audioSamples: {
982
- addSample: (audioSampleOffset: import("./state/audio-sample-map").AudioSampleOffset) => void;
983
- getSamples: () => import("./state/audio-sample-map").AudioSampleOffset[];
984
- setFromSeekingHints: (newMap: import("./state/audio-sample-map").AudioSampleOffset[]) => void;
985
- };
986
- };
987
- m3u: {
988
- setSelectedMainPlaylist: (stream: import("./state/m3u-state").M3uStreamOrInitialUrl) => void;
989
- getSelectedMainPlaylist: () => import("./state/m3u-state").M3uStreamOrInitialUrl | null;
990
- setHasEmittedVideoTrack: (src: string, callback: import("./webcodec-sample-types").MediaParserOnVideoSample | null) => void;
991
- hasEmittedVideoTrack: (src: string) => false | import("./webcodec-sample-types").MediaParserOnVideoSample | null;
992
- setHasEmittedAudioTrack: (src: string, callback: import("./webcodec-sample-types").MediaParserOnAudioSample | null) => void;
993
- hasEmittedAudioTrack: (src: string) => false | import("./webcodec-sample-types").MediaParserOnAudioSample | null;
994
- setHasEmittedDoneWithTracks: (src: string) => void;
995
- hasEmittedDoneWithTracks: (src: string) => boolean;
996
- setReadyToIterateOverM3u: () => void;
997
- isReadyToIterateOverM3u: () => boolean;
998
- setAllChunksProcessed: (src: string) => void;
999
- clearAllChunksProcessed: () => void;
1000
- getAllChunksProcessedForPlaylist: (src: string) => boolean;
1001
- getAllChunksProcessedOverall: () => boolean;
1002
- setHasFinishedManifest: () => void;
1003
- hasFinishedManifest: () => boolean;
1004
- setM3uStreamRun: (playlistUrl: string, run: import("./state/m3u-state").M3uRun | null) => void;
1005
- setTracksDone: (playlistUrl: string) => boolean;
1006
- getTrackDone: (playlistUrl: string) => boolean;
1007
- clearTracksDone: () => void;
1008
- getM3uStreamRun: (playlistUrl: string) => import("./state/m3u-state").M3uRun;
1009
- abortM3UStreamRuns: () => void;
1010
- setAssociatedPlaylists: (playlists: import("./containers/m3u/get-streams").M3uAssociatedPlaylist[]) => void;
1011
- getAssociatedPlaylists: () => import("./containers/m3u/get-streams").M3uAssociatedPlaylist[] | null;
1012
- getSelectedPlaylists: () => string[];
1013
- sampleSorter: {
1014
- clearSamples: () => void;
1015
- addToStreamWithTrack: (src: string) => void;
1016
- addVideoStreamToConsider: (src: string, callback: import("./webcodec-sample-types").MediaParserOnVideoSample) => void;
1017
- addAudioStreamToConsider: (src: string, callback: import("./webcodec-sample-types").MediaParserOnAudioSample) => void;
1018
- hasAudioStreamToConsider: (src: string) => boolean;
1019
- hasVideoStreamToConsider: (src: string) => boolean;
1020
- addAudioSample: (src: string, sample: import("./webcodec-sample-types").MediaParserAudioSample) => Promise<void>;
1021
- addVideoSample: (src: string, sample: import("./webcodec-sample-types").MediaParserVideoSample) => Promise<void>;
1022
- getNextStreamToRun: (streams: string[]) => string;
1023
- };
1024
- setMp4HeaderSegment: (playlistUrl: string, structure: import("./parse-result").IsoBaseMediaStructure) => void;
1025
- getMp4HeaderSegment: (playlistUrl: string) => import("./parse-result").IsoBaseMediaStructure;
1026
- setSeekToSecondsToProcess: (playlistUrl: string, m3uSeek: {
1027
- targetTime: number;
1028
- } | null) => void;
1029
- getSeekToSecondsToProcess: (playlistUrl: string) => {
1030
- targetTime: number;
1031
- } | null;
1032
- setNextSeekShouldSubtractChunks: (playlistUrl: string, chunks: number) => void;
1033
- getNextSeekShouldSubtractChunks: (playlistUrl: string) => number;
1034
- };
1035
- timings: {
1036
- timeIterating: number;
1037
- timeReadingData: number;
1038
- timeSeeking: number;
1039
- timeCheckingIfDone: number;
1040
- timeFreeingData: number;
1041
- timeInParseLoop: number;
1042
- };
1043
- callbacks: {
1044
- registerVideoSampleCallback: (id: number, callback: import("./webcodec-sample-types").MediaParserOnVideoSample | null) => Promise<void>;
1045
- onAudioSample: ({ audioSample, trackId, }: {
1046
- trackId: number;
1047
- audioSample: import("./webcodec-sample-types").MediaParserAudioSample;
1048
- }) => Promise<void>;
1049
- onVideoSample: ({ trackId, videoSample, }: {
1050
- trackId: number;
1051
- videoSample: import("./webcodec-sample-types").MediaParserVideoSample;
1052
- }) => Promise<void>;
1053
- canSkipTracksState: {
1054
- doFieldsNeedTracks: () => boolean;
1055
- canSkipTracks: () => boolean;
1056
- };
1057
- registerAudioSampleCallback: (id: number, callback: import("./webcodec-sample-types").MediaParserOnAudioSample | null) => Promise<void>;
1058
- tracks: {
1059
- hasAllTracks: () => boolean;
1060
- getIsDone: () => boolean;
1061
- setIsDone: (logLevel: MediaParserLogLevel) => void;
1062
- addTrack: (track: import("./get-tracks").MediaParserTrack) => void;
1063
- getTracks: () => import("./get-tracks").MediaParserTrack[];
1064
- ensureHasTracksAtEnd: (fields: import("./fields").Options<import("./fields").ParseMediaFields>) => void;
1065
- };
1066
- audioSampleCallbacks: Record<number, import("./webcodec-sample-types").MediaParserOnAudioSample>;
1067
- videoSampleCallbacks: Record<number, import("./webcodec-sample-types").MediaParserOnVideoSample>;
1068
- hasAudioTrackHandlers: boolean;
1069
- hasVideoTrackHandlers: boolean;
1070
- callTracksDoneCallback: () => Promise<void>;
1071
- };
1072
- getInternalStats: () => import("./state/parser-state").InternalStats;
1073
- getSkipBytes: () => number;
1074
- increaseSkippedBytes: (bytes: number) => void;
1075
- keyframes: {
1076
- addKeyframe: (keyframe: import("./options").MediaParserKeyframe) => void;
1077
- getKeyframes: () => import("./options").MediaParserKeyframe[];
1078
- setFromSeekingHints: (keyframesFromHints: import("./options").MediaParserKeyframe[]) => void;
1079
- };
1080
- structure: {
1081
- getStructureOrNull: () => import("./parse-result").MediaParserStructureUnstable | null;
1082
- getStructure: () => import("./parse-result").MediaParserStructureUnstable;
1083
- setStructure: (value: import("./parse-result").MediaParserStructureUnstable) => void;
1084
- getFlacStructure: () => import("./containers/flac/types").FlacStructure;
1085
- getIsoStructure: () => import("./parse-result").IsoBaseMediaStructure;
1086
- getMp3Structure: () => import("./parse-result").Mp3Structure;
1087
- getM3uStructure: () => import("./containers/m3u/types").M3uStructure;
1088
- getRiffStructure: () => import("./containers/riff/riff-box").RiffStructure;
1089
- getTsStructure: () => import("./parse-result").TransportStreamStructure;
1090
- getWavStructure: () => import("./containers/wav/types").WavStructure;
1091
- getMatroskaStructure: () => import("./parse-result").MatroskaStructure;
1092
- };
1093
- onAudioTrack: import("./webcodec-sample-types").MediaParserOnAudioTrack | null;
1094
- onVideoTrack: import("./webcodec-sample-types").MediaParserOnVideoTrack | null;
1095
- emittedFields: import("./fields").AllOptions<import("./fields").ParseMediaFields>;
1096
- fields: Partial<import("./fields").AllOptions<import("./fields").ParseMediaFields>>;
1097
- samplesObserved: {
1098
- addVideoSample: (videoSample: import("./webcodec-sample-types").MediaParserVideoSample) => void;
1099
- addAudioSample: (audioSample: import("./webcodec-sample-types").MediaParserAudioSample) => void;
1100
- getSlowDurationInSeconds: () => number;
1101
- getFps: () => number;
1102
- getSlowNumberOfFrames: () => number;
1103
- getAudioBitrate: () => number | null;
1104
- getVideoBitrate: () => number | null;
1105
- getLastSampleObserved: () => boolean;
1106
- setLastSampleObserved: () => void;
1107
- getAmountOfSamplesObserved: () => number;
1108
- };
1109
- contentLength: number;
1110
- images: {
1111
- images: import("./state/images").MediaParserEmbeddedImage[];
1112
- addImage: (image: import("./state/images").MediaParserEmbeddedImage) => void;
1113
- };
1114
- mediaSection: {
1115
- addMediaSection: (section: import("./state/video-section").MediaSection) => void;
1116
- getMediaSections: () => import("./state/video-section").MediaSection[];
1117
- isCurrentByteInMediaSection: (iterator: import("./iterator/buffer-iterator").BufferIterator) => "no-section-defined" | "in-section" | "outside-section";
1118
- isByteInMediaSection: ({ position, mediaSections, }: {
1119
- position: number;
1120
- mediaSections: import("./state/video-section").MediaSection[];
1121
- }) => "no-section-defined" | "in-section" | "outside-section";
1122
- getCurrentMediaSection: ({ offset, mediaSections, }: {
1123
- offset: number;
1124
- mediaSections: import("./state/video-section").MediaSection[];
1125
- }) => import("./state/video-section").MediaSection | null;
1126
- getMediaSectionAssertOnlyOne: () => import("./state/video-section").MediaSection;
1127
- mediaSections: import("./state/video-section").MediaSection[];
1128
- };
1129
- logLevel: "trace" | "verbose" | "info" | "warn" | "error";
1130
- iterator: {
1131
- startReadingBits: () => void;
1132
- stopReadingBits: () => void;
1133
- skipTo: (offset: number) => void;
1134
- addData: (newData: Uint8Array) => void;
1135
- counter: {
1136
- getOffset: () => number;
1137
- discardBytes: (bytes: number) => void;
1138
- increment: (bytes: number) => void;
1139
- getDiscardedBytes: () => number;
1140
- setDiscardedOffset: (bytes: number) => void;
1141
- getDiscardedOffset: () => number;
1142
- decrement: (bytes: number) => void;
1143
- };
1144
- peekB: (length: number) => void;
1145
- peekD: (length: number) => void;
1146
- getBits: (bits: number) => number;
1147
- bytesRemaining: () => number;
1148
- leb128: () => number;
1149
- removeBytesRead: (force: boolean, mode: import("./options").ParseMediaMode) => {
1150
- bytesRemoved: number;
1151
- removedData: Uint8Array<ArrayBuffer> | null;
1152
- };
1153
- discard: (length: number) => void;
1154
- getEightByteNumber: (littleEndian?: boolean) => number;
1155
- getFourByteNumber: () => number;
1156
- getSlice: (amount: number) => Uint8Array<ArrayBuffer>;
1157
- getAtom: () => string;
1158
- detectFileType: () => import("./file-types/detect-file-type").FileType;
1159
- getPaddedFourByteNumber: () => number;
1160
- getMatroskaSegmentId: () => string | null;
1161
- getVint: () => number | null;
1162
- getUint8: () => number;
1163
- getEBML: () => number;
1164
- getInt8: () => number;
1165
- getUint16: () => number;
1166
- getUint16Le: () => number;
1167
- getUint24: () => number;
1168
- getInt24: () => number;
1169
- getInt16: () => number;
1170
- getUint32: () => number;
1171
- getUint64: (littleEndian?: boolean) => bigint;
1172
- getInt64: (littleEndian?: boolean) => bigint;
1173
- getFixedPointUnsigned1616Number: () => number;
1174
- getFixedPointSigned1616Number: () => number;
1175
- getFixedPointSigned230Number: () => number;
1176
- getPascalString: () => number[];
1177
- getUint(length: number): number;
1178
- getByteString(length: number, trimTrailingZeroes: boolean): string;
1179
- planBytes: (size: number) => {
1180
- discardRest: () => Uint8Array<ArrayBuffer>;
1181
- };
1182
- getFloat64: () => number;
1183
- readUntilNullTerminator: () => string;
1184
- getFloat32: () => number;
1185
- getUint32Le: () => number;
1186
- getInt32Le: () => number;
1187
- getInt32: () => number;
1188
- destroy: () => void;
1189
- startBox: (size: number) => {
1190
- discardRest: () => void;
1191
- expectNoMoreBytes: () => void;
1192
- };
1193
- readExpGolomb: () => number;
1194
- startCheckpoint: () => {
1195
- returnToCheckpoint: () => void;
1196
- };
1197
- getFlacCodecNumber: () => number;
1198
- readUntilLineEnd: () => string | null;
1199
- getSyncSafeInt32: () => number;
1200
- replaceData: (newData: Uint8Array, seekTo: number) => void;
1201
- };
1202
- controller: import("./controller/media-parser-controller").MediaParserController;
1203
- mode: import("./options").ParseMediaMode;
1204
- src: import("./options").ParseMediaSrc;
1205
- readerInterface: import("./readers/reader").MediaParserReaderInterface;
1206
- discardReadBytes: (force: boolean) => Promise<void>;
1207
- selectM3uStreamFn: import("./containers/m3u/select-stream").SelectM3uStreamFn;
1208
- selectM3uAssociatedPlaylistsFn: import("./containers/m3u/select-stream").SelectM3uAssociatedPlaylistsFn;
1209
- m3uPlaylistContext: import("./options").M3uPlaylistContext | null;
1210
- contentType: string | null;
1211
- name: string;
1212
- returnValue: {
1213
- dimensions: import("./get-dimensions").MediaParserDimensions | null;
1214
- durationInSeconds: number | null;
1215
- slowDurationInSeconds: number;
1216
- slowNumberOfFrames: number;
1217
- slowFps: number;
1218
- slowStructure: import("./parse-result").MediaParserStructureUnstable;
1219
- fps: number | null;
1220
- videoCodec: import("./get-tracks").MediaParserVideoCodec | null;
1221
- audioCodec: import("./get-tracks").MediaParserAudioCodec | null;
1222
- tracks: import("./get-tracks").MediaParserTrack[];
1223
- rotation: number | null;
1224
- unrotatedDimensions: import("./get-dimensions").MediaParserDimensions | null;
1225
- internalStats: import("./state/parser-state").InternalStats;
1226
- size: number | null;
1227
- name: string;
1228
- container: import("./options").MediaParserContainer;
1229
- isHdr: boolean;
1230
- metadata: import("./metadata/get-metadata").MediaParserMetadataEntry[];
1231
- location: import("./get-location").MediaParserLocation | null;
1232
- mimeType: string | null;
1233
- keyframes: import("./options").MediaParserKeyframe[] | null;
1234
- slowKeyframes: import("./options").MediaParserKeyframe[];
1235
- images: import("./state/images").MediaParserEmbeddedImage[];
1236
- sampleRate: number | null;
1237
- numberOfAudioChannels: number | null;
1238
- slowVideoBitrate: number | null;
1239
- slowAudioBitrate: number | null;
1240
- m3uStreams: import("./containers/m3u/get-streams").M3uStream[] | null;
1241
- };
1242
- callbackFunctions: Partial<import("./options").ParseMediaCallbacksMandatory>;
1243
- fieldsInReturnValue: Partial<import("./fields").AllOptions<import("./fields").ParseMediaFields>>;
1244
- mimeType: string | null;
1245
- errored: Error | null;
1246
- currentReader: {
1247
- getCurrent: () => import("./readers/reader").Reader;
1248
- setCurrent: (newReader: import("./readers/reader").Reader) => void;
1249
- };
1250
- seekInfiniteLoop: {
1251
- registerSeek: (byte: number) => void;
1252
- reset: () => void;
1253
- };
1254
- makeSamplesStartAtZero: boolean;
1255
- prefetchCache: import("./fetch").PrefetchCache;
1256
- avc: {
1257
- getPrevPicOrderCntLsb(): number;
1258
- getPrevPicOrderCntMsb(): number;
1259
- setPrevPicOrderCntLsb(value: number): void;
1260
- setPrevPicOrderCntMsb(value: number): void;
1261
- setSps(value: import("./containers/avc/parse-avc").SpsInfo): void;
1262
- getSps(): import("./containers/avc/parse-avc").SpsInfo | null;
1263
- getMaxFramesInBuffer(): number | null;
1264
- clear(): void;
1265
- };
1266
- };
1267
- processSample: ({ iterator, logLevel, contentLength, }: {
1268
- iterator: import("./iterator/buffer-iterator").BufferIterator;
1269
- logLevel: MediaParserLogLevel;
1270
- contentLength: number;
1271
- }) => Promise<{
1272
- sample: import("./containers/iso-base-media/stsd/samples").Sample | null;
1273
- }>;
1274
- parseFtyp: ({ iterator, size, offset, }: {
1275
- iterator: import("./iterator/buffer-iterator").BufferIterator;
1276
- size: number;
1277
- offset: number;
1278
- }) => import("./containers/iso-base-media/ftyp").FtypBox;
1279
- parseEbml: (iterator: import("./iterator/buffer-iterator").BufferIterator, statesForProcessing: import("./containers/webm/state-for-processing").WebmRequiredStatesForProcessing | null, logLevel: MediaParserLogLevel) => Promise<import("./containers/webm/parse-ebml").Prettify<PossibleEbml> | null>;
1280
- parseMvhd: ({ iterator, offset, size, }: {
1281
- iterator: import("./iterator/buffer-iterator").BufferIterator;
1282
- offset: number;
1283
- size: number;
1284
- }) => import("./containers/iso-base-media/moov/mvhd").MvhdBox;
675
+ parseTkhd: typeof parseTkhd;
676
+ getArrayBufferIterator: typeof getArrayBufferIterator;
677
+ parseStsd: typeof parseStsd;
678
+ makeParserState: typeof makeParserState;
679
+ processSample: typeof processIsoFormatBox;
680
+ parseFtyp: typeof parseFtyp;
681
+ parseEbml: typeof parseEbml;
682
+ parseMvhd: typeof parseMvhd;
1285
683
  internalParseMedia: import("./options").InternalParseMedia;
1286
684
  fieldsNeedSamplesMap: Record<keyof import("./fields").AllOptions<import("./fields").ParseMediaFields>, boolean>;
1287
685
  };