@remotion/media-parser 4.0.537 → 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.
- package/dist/aac-codecprivate.d.ts +2 -2
- package/dist/containers/avc/interpret-sps.js +2 -1
- package/dist/containers/avc/key.d.ts +1 -1
- package/dist/containers/flac/get-block-size.d.ts +1 -1
- package/dist/containers/flac/get-sample-rate.d.ts +1 -1
- package/dist/containers/flac/get-sample-rate.js +2 -1
- package/dist/containers/flac/parse-flac-frame.js +2 -1
- package/dist/containers/iso-base-media/collect-sample-positions-from-trak.d.ts +1 -1
- package/dist/containers/iso-base-media/find-track-to-seek.d.ts +1 -1
- package/dist/containers/iso-base-media/get-video-codec-from-iso-track.d.ts +1 -1
- package/dist/containers/iso-base-media/make-track.js +4 -3
- package/dist/containers/mp3/samples-per-mpeg-file.d.ts +1 -1
- package/dist/containers/riff/convert-queued-sample-to-mediaparser-sample.d.ts +4 -4
- package/dist/containers/riff/convert-queued-sample-to-mediaparser-sample.js +2 -1
- package/dist/containers/riff/has-index.js +2 -1
- package/dist/containers/riff/seeking-hints.js +2 -1
- package/dist/containers/transport-stream/process-audio.js +4 -2
- package/dist/containers/webm/seek/get-seeking-byte.js +4 -3
- package/dist/containers/webm/segments/all-segments.d.ts +563 -563
- package/dist/containers/webm/segments/block-simple-block-flags.d.ts +1 -1
- package/dist/containers/webm/traversal.js +2 -1
- package/dist/controller/emitter.js +5 -5
- package/dist/download-and-parse-media.js +2 -1
- package/dist/emit-available-info.js +31 -30
- package/dist/esm/index.mjs +1 -1
- package/dist/get-duration.d.ts +1 -1
- package/dist/get-duration.js +2 -1
- package/dist/get-fps.js +2 -1
- package/dist/get-number-of-audio-channels.js +2 -1
- package/dist/get-sample-rate.js +2 -1
- package/dist/get-tracks.js +2 -1
- package/dist/get-video-codec.js +2 -1
- package/dist/index.d.ts +454 -1056
- package/dist/log.d.ts +6 -6
- package/dist/metadata/metadata-from-iso.js +2 -1
- package/dist/register-track.d.ts +2 -2
- package/dist/state/iso-base-media/cached-sample-positions.js +2 -1
- package/dist/state/m3u-state.d.ts +2 -2
- package/dist/state/matroska/lazy-cues-fetch.js +4 -3
- package/dist/state/matroska/webm.d.ts +1 -1
- package/dist/state/parser-state.d.ts +37 -43
- package/dist/state/riff/lazy-idx1-fetch.d.ts +2 -2
- package/dist/state/riff/sample-counter.js +2 -1
- package/dist/state/riff.d.ts +2 -2
- package/dist/state/transport-stream/last-emitted-sample.d.ts +1 -1
- package/dist/state/transport-stream/observed-pes-header.d.ts +1 -1
- package/dist/state/transport-stream/transport-stream.d.ts +1 -1
- package/dist/state/video-section.d.ts +4 -10
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- 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,
|
|
35
|
-
verbose: (logLevel: MediaParserLogLevel,
|
|
36
|
-
info: (logLevel: MediaParserLogLevel,
|
|
37
|
-
warn: (logLevel: MediaParserLogLevel,
|
|
38
|
-
error: (
|
|
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:
|
|
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:
|
|
48
|
-
readonly EBMLMaxIDLength:
|
|
49
|
-
readonly EBMLVersion:
|
|
50
|
-
readonly EBMLReadVersion:
|
|
51
|
-
readonly EBMLMaxSizeLength:
|
|
52
|
-
readonly DocType:
|
|
53
|
-
readonly DocTypeVersion:
|
|
54
|
-
readonly DocTypeReadVersion:
|
|
55
|
-
readonly Segment:
|
|
56
|
-
readonly SeekHead:
|
|
57
|
-
readonly Seek:
|
|
58
|
-
readonly SeekID:
|
|
59
|
-
readonly SeekPosition:
|
|
60
|
-
readonly Info:
|
|
61
|
-
readonly SegmentUUID:
|
|
62
|
-
readonly SegmentFilename:
|
|
63
|
-
readonly PrevUUID:
|
|
64
|
-
readonly PrevFilename:
|
|
65
|
-
readonly NextUUID:
|
|
66
|
-
readonly NextFilename:
|
|
67
|
-
readonly SegmentFamily:
|
|
68
|
-
readonly ChapterTranslate:
|
|
69
|
-
readonly ChapterTranslateID:
|
|
70
|
-
readonly ChapterTranslateCodec:
|
|
71
|
-
readonly ChapterTranslateEditionUID:
|
|
72
|
-
readonly TimestampScale:
|
|
73
|
-
readonly Duration:
|
|
74
|
-
readonly DateUTC:
|
|
75
|
-
readonly Title:
|
|
76
|
-
readonly MuxingApp:
|
|
77
|
-
readonly WritingApp:
|
|
78
|
-
readonly Cluster:
|
|
79
|
-
readonly Timestamp:
|
|
80
|
-
readonly SilentTracks:
|
|
81
|
-
readonly SilentTrackNumber:
|
|
82
|
-
readonly Position:
|
|
83
|
-
readonly PrevSize:
|
|
84
|
-
readonly SimpleBlock:
|
|
85
|
-
readonly BlockGroup:
|
|
86
|
-
readonly Block:
|
|
87
|
-
readonly BlockVirtual:
|
|
88
|
-
readonly BlockAdditions:
|
|
89
|
-
readonly BlockMore:
|
|
90
|
-
readonly BlockAdditional:
|
|
91
|
-
readonly BlockAddID:
|
|
92
|
-
readonly BlockDuration:
|
|
93
|
-
readonly ReferencePriority:
|
|
94
|
-
readonly ReferenceBlock:
|
|
95
|
-
readonly ReferenceVirtual:
|
|
96
|
-
readonly CodecState:
|
|
97
|
-
readonly DiscardPadding:
|
|
98
|
-
readonly Slices:
|
|
99
|
-
readonly TimeSlice:
|
|
100
|
-
readonly LaceNumber:
|
|
101
|
-
readonly FrameNumber:
|
|
102
|
-
readonly BlockAdditionID:
|
|
103
|
-
readonly Delay:
|
|
104
|
-
readonly SliceDuration:
|
|
105
|
-
readonly ReferenceFrame:
|
|
106
|
-
readonly ReferenceOffset:
|
|
107
|
-
readonly ReferenceTimestamp:
|
|
108
|
-
readonly EncryptedBlock:
|
|
109
|
-
readonly Tracks:
|
|
110
|
-
readonly TrackEntry:
|
|
111
|
-
readonly TrackNumber:
|
|
112
|
-
readonly TrackUID:
|
|
113
|
-
readonly TrackType:
|
|
114
|
-
readonly FlagEnabled:
|
|
115
|
-
readonly FlagDefault:
|
|
116
|
-
readonly FlagForced:
|
|
117
|
-
readonly FlagHearingImpaired:
|
|
118
|
-
readonly FlagVisualImpaired:
|
|
119
|
-
readonly FlagTextDescriptions:
|
|
120
|
-
readonly FlagOriginal:
|
|
121
|
-
readonly FlagCommentary:
|
|
122
|
-
readonly FlagLacing:
|
|
123
|
-
readonly MinCache:
|
|
124
|
-
readonly MaxCache:
|
|
125
|
-
readonly DefaultDuration:
|
|
126
|
-
readonly DefaultDecodedFieldDuration:
|
|
127
|
-
readonly TrackTimestampScale:
|
|
128
|
-
readonly TrackOffset:
|
|
129
|
-
readonly MaxBlockAdditionID:
|
|
130
|
-
readonly BlockAdditionMapping:
|
|
131
|
-
readonly BlockAddIDValue:
|
|
132
|
-
readonly BlockAddIDName:
|
|
133
|
-
readonly BlockAddIDType:
|
|
134
|
-
readonly BlockAddIDExtraData:
|
|
135
|
-
readonly Name:
|
|
136
|
-
readonly Language:
|
|
137
|
-
readonly LanguageBCP47:
|
|
138
|
-
readonly CodecID:
|
|
139
|
-
readonly CodecPrivate:
|
|
140
|
-
readonly CodecName:
|
|
141
|
-
readonly AttachmentLink:
|
|
142
|
-
readonly CodecSettings:
|
|
143
|
-
readonly CodecInfoURL:
|
|
144
|
-
readonly CodecDownloadURL:
|
|
145
|
-
readonly CodecDecodeAll:
|
|
146
|
-
readonly TrackOverlay:
|
|
147
|
-
readonly CodecDelay:
|
|
148
|
-
readonly SeekPreRoll:
|
|
149
|
-
readonly TrackTranslate:
|
|
150
|
-
readonly TrackTranslateTrackID:
|
|
151
|
-
readonly TrackTranslateCodec:
|
|
152
|
-
readonly TrackTranslateEditionUID:
|
|
153
|
-
readonly Video:
|
|
154
|
-
readonly FlagInterlaced:
|
|
155
|
-
readonly FieldOrder:
|
|
156
|
-
readonly StereoMode:
|
|
157
|
-
readonly AlphaMode:
|
|
158
|
-
readonly OldStereoMode:
|
|
159
|
-
readonly PixelWidth:
|
|
160
|
-
readonly PixelHeight:
|
|
161
|
-
readonly PixelCropBottom:
|
|
162
|
-
readonly PixelCropTop:
|
|
163
|
-
readonly PixelCropLeft:
|
|
164
|
-
readonly PixelCropRight:
|
|
165
|
-
readonly DisplayWidth:
|
|
166
|
-
readonly DisplayHeight:
|
|
167
|
-
readonly DisplayUnit:
|
|
168
|
-
readonly AspectRatioType:
|
|
169
|
-
readonly UncompressedFourCC:
|
|
170
|
-
readonly GammaValue:
|
|
171
|
-
readonly FrameRate:
|
|
172
|
-
readonly Colour:
|
|
173
|
-
readonly MatrixCoefficients:
|
|
174
|
-
readonly BitsPerChannel:
|
|
175
|
-
readonly ChromaSubsamplingHorz:
|
|
176
|
-
readonly ChromaSubsamplingVert:
|
|
177
|
-
readonly CbSubsamplingHorz:
|
|
178
|
-
readonly CbSubsamplingVert:
|
|
179
|
-
readonly ChromaSitingHorz:
|
|
180
|
-
readonly ChromaSitingVert:
|
|
181
|
-
readonly Range:
|
|
182
|
-
readonly TransferCharacteristics:
|
|
183
|
-
readonly Primaries:
|
|
184
|
-
readonly MaxCLL:
|
|
185
|
-
readonly MaxFALL:
|
|
186
|
-
readonly MasteringMetadata:
|
|
187
|
-
readonly PrimaryRChromaticityX:
|
|
188
|
-
readonly PrimaryRChromaticityY:
|
|
189
|
-
readonly PrimaryGChromaticityX:
|
|
190
|
-
readonly PrimaryGChromaticityY:
|
|
191
|
-
readonly PrimaryBChromaticityX:
|
|
192
|
-
readonly PrimaryBChromaticityY:
|
|
193
|
-
readonly WhitePointChromaticityX:
|
|
194
|
-
readonly WhitePointChromaticityY:
|
|
195
|
-
readonly LuminanceMax:
|
|
196
|
-
readonly LuminanceMin:
|
|
197
|
-
readonly Projection:
|
|
198
|
-
readonly ProjectionType:
|
|
199
|
-
readonly ProjectionPrivate:
|
|
200
|
-
readonly ProjectionPoseYaw:
|
|
201
|
-
readonly ProjectionPosePitch:
|
|
202
|
-
readonly ProjectionPoseRoll:
|
|
203
|
-
readonly Audio:
|
|
204
|
-
readonly SamplingFrequency:
|
|
205
|
-
readonly OutputSamplingFrequency:
|
|
206
|
-
readonly Channels:
|
|
207
|
-
readonly ChannelPositions:
|
|
208
|
-
readonly BitDepth:
|
|
209
|
-
readonly Emphasis:
|
|
210
|
-
readonly TrackOperation:
|
|
211
|
-
readonly TrackCombinePlanes:
|
|
212
|
-
readonly TrackPlane:
|
|
213
|
-
readonly TrackPlaneUID:
|
|
214
|
-
readonly TrackPlaneType:
|
|
215
|
-
readonly TrackJoinBlocks:
|
|
216
|
-
readonly TrackJoinUID:
|
|
217
|
-
readonly TrickTrackUID:
|
|
218
|
-
readonly TrickTrackSegmentUID:
|
|
219
|
-
readonly TrickTrackFlag:
|
|
220
|
-
readonly TrickMasterTrackUID:
|
|
221
|
-
readonly TrickMasterTrackSegmentUID:
|
|
222
|
-
readonly ContentEncodings:
|
|
223
|
-
readonly ContentEncoding:
|
|
224
|
-
readonly ContentEncodingOrder:
|
|
225
|
-
readonly ContentEncodingScope:
|
|
226
|
-
readonly ContentEncodingType:
|
|
227
|
-
readonly ContentCompression:
|
|
228
|
-
readonly ContentCompAlgo:
|
|
229
|
-
readonly ContentCompSettings:
|
|
230
|
-
readonly ContentEncryption:
|
|
231
|
-
readonly ContentEncAlgo:
|
|
232
|
-
readonly ContentEncKeyID:
|
|
233
|
-
readonly ContentEncAESSettings:
|
|
234
|
-
readonly AESSettingsCipherMode:
|
|
235
|
-
readonly ContentSignature:
|
|
236
|
-
readonly ContentSigKeyID:
|
|
237
|
-
readonly ContentSigAlgo:
|
|
238
|
-
readonly ContentSigHashAlgo:
|
|
239
|
-
readonly Cues:
|
|
240
|
-
readonly CuePoint:
|
|
241
|
-
readonly CueTime:
|
|
242
|
-
readonly CueTrackPositions:
|
|
243
|
-
readonly CueTrack:
|
|
244
|
-
readonly CueClusterPosition:
|
|
245
|
-
readonly CueRelativePosition:
|
|
246
|
-
readonly CueDuration:
|
|
247
|
-
readonly CueBlockNumber:
|
|
248
|
-
readonly CueCodecState:
|
|
249
|
-
readonly CueReference:
|
|
250
|
-
readonly CueRefTime:
|
|
251
|
-
readonly CueRefCluster:
|
|
252
|
-
readonly CueRefNumber:
|
|
253
|
-
readonly CueRefCodecState:
|
|
254
|
-
readonly Attachments:
|
|
255
|
-
readonly AttachedFile:
|
|
256
|
-
readonly FileDescription:
|
|
257
|
-
readonly FileName:
|
|
258
|
-
readonly FileMediaType:
|
|
259
|
-
readonly FileData:
|
|
260
|
-
readonly FileUID:
|
|
261
|
-
readonly FileReferral:
|
|
262
|
-
readonly FileUsedStartTime:
|
|
263
|
-
readonly FileUsedEndTime:
|
|
264
|
-
readonly Chapters:
|
|
265
|
-
readonly EditionEntry:
|
|
266
|
-
readonly EditionUID:
|
|
267
|
-
readonly EditionFlagHidden:
|
|
268
|
-
readonly EditionFlagDefault:
|
|
269
|
-
readonly EditionFlagOrdered:
|
|
270
|
-
readonly EditionDisplay:
|
|
271
|
-
readonly EditionString:
|
|
272
|
-
readonly EditionLanguageIETF:
|
|
273
|
-
readonly ChapterAtom:
|
|
274
|
-
readonly ChapterUID:
|
|
275
|
-
readonly ChapterStringUID:
|
|
276
|
-
readonly ChapterTimeStart:
|
|
277
|
-
readonly ChapterTimeEnd:
|
|
278
|
-
readonly ChapterFlagHidden:
|
|
279
|
-
readonly ChapterFlagEnabled:
|
|
280
|
-
readonly ChapterSegmentUUID:
|
|
281
|
-
readonly ChapterSkipType:
|
|
282
|
-
readonly ChapterSegmentEditionUID:
|
|
283
|
-
readonly ChapterPhysicalEquiv:
|
|
284
|
-
readonly ChapterTrack:
|
|
285
|
-
readonly ChapterTrackUID:
|
|
286
|
-
readonly ChapterDisplay:
|
|
287
|
-
readonly ChapString:
|
|
288
|
-
readonly ChapLanguage:
|
|
289
|
-
readonly ChapLanguageBCP47:
|
|
290
|
-
readonly ChapCountry:
|
|
291
|
-
readonly ChapProcess:
|
|
292
|
-
readonly ChapProcessCodecID:
|
|
293
|
-
readonly ChapProcessPrivate:
|
|
294
|
-
readonly ChapProcessCommand:
|
|
295
|
-
readonly ChapProcessTime:
|
|
296
|
-
readonly ChapProcessData:
|
|
297
|
-
readonly Tags:
|
|
298
|
-
readonly Tag:
|
|
299
|
-
readonly Targets:
|
|
300
|
-
readonly TargetTypeValue:
|
|
301
|
-
readonly TargetType:
|
|
302
|
-
readonly TagTrackUID:
|
|
303
|
-
readonly TagEditionUID:
|
|
304
|
-
readonly TagChapterUID:
|
|
305
|
-
readonly TagAttachmentUID:
|
|
306
|
-
readonly SimpleTag:
|
|
307
|
-
readonly TagName:
|
|
308
|
-
readonly TagLanguage:
|
|
309
|
-
readonly TagLanguageBCP47:
|
|
310
|
-
readonly TagDefault:
|
|
311
|
-
readonly TagDefaultBogus:
|
|
312
|
-
readonly TagString:
|
|
313
|
-
readonly TagBinary:
|
|
314
|
-
readonly Void:
|
|
315
|
-
readonly Crc32:
|
|
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:
|
|
320
|
-
readonly type:
|
|
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:
|
|
328
|
-
readonly type:
|
|
331
|
+
readonly name: 'Targets';
|
|
332
|
+
readonly type: 'children';
|
|
329
333
|
};
|
|
330
334
|
readonly "0x67c8": {
|
|
331
|
-
readonly name:
|
|
332
|
-
readonly type:
|
|
335
|
+
readonly name: 'SimpleTag';
|
|
336
|
+
readonly type: 'children';
|
|
333
337
|
};
|
|
334
338
|
readonly "0x45a3": {
|
|
335
|
-
readonly name:
|
|
336
|
-
readonly type:
|
|
339
|
+
readonly name: 'TagName';
|
|
340
|
+
readonly type: 'string';
|
|
337
341
|
};
|
|
338
342
|
readonly "0x4487": {
|
|
339
|
-
readonly name:
|
|
340
|
-
readonly type:
|
|
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:
|
|
360
|
-
readonly type:
|
|
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:
|
|
372
|
-
readonly type:
|
|
375
|
+
readonly name: 'Cues';
|
|
376
|
+
readonly type: 'children';
|
|
373
377
|
};
|
|
374
378
|
readonly "0xbb": {
|
|
375
|
-
readonly name:
|
|
376
|
-
readonly type:
|
|
379
|
+
readonly name: 'CuePoint';
|
|
380
|
+
readonly type: 'children';
|
|
377
381
|
};
|
|
378
382
|
readonly "0xb3": {
|
|
379
|
-
readonly name:
|
|
380
|
-
readonly type:
|
|
383
|
+
readonly name: 'CueTime';
|
|
384
|
+
readonly type: 'uint';
|
|
381
385
|
};
|
|
382
386
|
readonly "0xb7": {
|
|
383
|
-
readonly name:
|
|
384
|
-
readonly type:
|
|
387
|
+
readonly name: 'CueTrackPositions';
|
|
388
|
+
readonly type: 'children';
|
|
385
389
|
};
|
|
386
390
|
readonly "0xf1": {
|
|
387
|
-
readonly name:
|
|
388
|
-
readonly type:
|
|
391
|
+
readonly name: 'CueClusterPosition';
|
|
392
|
+
readonly type: 'uint';
|
|
389
393
|
};
|
|
390
394
|
readonly "0xf0": {
|
|
391
|
-
readonly name:
|
|
392
|
-
readonly type:
|
|
395
|
+
readonly name: 'CueRelativePosition';
|
|
396
|
+
readonly type: 'uint';
|
|
393
397
|
};
|
|
394
398
|
readonly "0x5378": {
|
|
395
|
-
readonly name:
|
|
396
|
-
readonly type:
|
|
399
|
+
readonly name: 'CueBlockNumber';
|
|
400
|
+
readonly type: 'uint';
|
|
397
401
|
};
|
|
398
402
|
readonly "0xf7": {
|
|
399
|
-
readonly name:
|
|
400
|
-
readonly type:
|
|
403
|
+
readonly name: 'CueTrack';
|
|
404
|
+
readonly type: 'uint';
|
|
401
405
|
};
|
|
402
406
|
readonly "0x4461": {
|
|
403
|
-
readonly name:
|
|
404
|
-
readonly type:
|
|
407
|
+
readonly name: 'DateUTC';
|
|
408
|
+
readonly type: 'uint8array';
|
|
405
409
|
};
|
|
406
410
|
readonly "0x23314f": {
|
|
407
|
-
readonly name:
|
|
408
|
-
readonly type:
|
|
411
|
+
readonly name: 'TrackTimestampScale';
|
|
412
|
+
readonly type: 'float';
|
|
409
413
|
};
|
|
410
414
|
readonly "0x56aa": {
|
|
411
|
-
readonly name:
|
|
412
|
-
readonly type:
|
|
415
|
+
readonly name: 'CodecDelay';
|
|
416
|
+
readonly type: 'uint8array';
|
|
413
417
|
};
|
|
414
418
|
readonly "0x56bb": {
|
|
415
|
-
readonly name:
|
|
416
|
-
readonly type:
|
|
419
|
+
readonly name: 'SeekPreRoll';
|
|
420
|
+
readonly type: 'uint8array';
|
|
417
421
|
};
|
|
418
422
|
readonly "0x75a2": {
|
|
419
|
-
readonly name:
|
|
420
|
-
readonly type:
|
|
423
|
+
readonly name: 'DiscardPadding';
|
|
424
|
+
readonly type: 'uint8array';
|
|
421
425
|
};
|
|
422
426
|
readonly "0x78b5": {
|
|
423
|
-
readonly name:
|
|
424
|
-
readonly type:
|
|
427
|
+
readonly name: 'OutputSamplingFrequency';
|
|
428
|
+
readonly type: 'uint8array';
|
|
425
429
|
};
|
|
426
430
|
readonly "0x258688": {
|
|
427
|
-
readonly name:
|
|
428
|
-
readonly type:
|
|
431
|
+
readonly name: 'CodecName';
|
|
432
|
+
readonly type: 'string';
|
|
429
433
|
};
|
|
430
434
|
readonly "0xa7": {
|
|
431
|
-
readonly name:
|
|
432
|
-
readonly type:
|
|
435
|
+
readonly name: 'Position';
|
|
436
|
+
readonly type: 'uint8array';
|
|
433
437
|
};
|
|
434
438
|
readonly "0xcf": {
|
|
435
|
-
readonly name:
|
|
436
|
-
readonly type:
|
|
439
|
+
readonly name: 'SliceDuration';
|
|
440
|
+
readonly type: 'uint8array';
|
|
437
441
|
};
|
|
438
442
|
readonly "0x63c5": {
|
|
439
|
-
readonly name:
|
|
440
|
-
readonly type:
|
|
443
|
+
readonly name: 'TagTrackUID';
|
|
444
|
+
readonly type: 'hex-string';
|
|
441
445
|
};
|
|
442
446
|
readonly "0x114d9b74": {
|
|
443
|
-
readonly name:
|
|
444
|
-
readonly type:
|
|
447
|
+
readonly name: 'SeekHead';
|
|
448
|
+
readonly type: 'children';
|
|
445
449
|
};
|
|
446
450
|
readonly "0x4dbb": {
|
|
447
|
-
readonly name:
|
|
448
|
-
readonly type:
|
|
451
|
+
readonly name: 'Seek';
|
|
452
|
+
readonly type: 'children';
|
|
449
453
|
};
|
|
450
454
|
readonly "0x53ab": {
|
|
451
|
-
readonly name:
|
|
452
|
-
readonly type:
|
|
455
|
+
readonly name: 'SeekID';
|
|
456
|
+
readonly type: 'hex-string';
|
|
453
457
|
};
|
|
454
458
|
readonly "0x536e": {
|
|
455
|
-
readonly name:
|
|
456
|
-
readonly type:
|
|
459
|
+
readonly name: 'Name';
|
|
460
|
+
readonly type: 'string';
|
|
457
461
|
};
|
|
458
462
|
readonly "0x6de7": {
|
|
459
|
-
readonly name:
|
|
460
|
-
readonly type:
|
|
463
|
+
readonly name: 'MinCache';
|
|
464
|
+
readonly type: 'uint';
|
|
461
465
|
};
|
|
462
466
|
readonly "0x6df8": {
|
|
463
|
-
readonly name:
|
|
464
|
-
readonly type:
|
|
467
|
+
readonly name: 'MaxCache';
|
|
468
|
+
readonly type: 'uint';
|
|
465
469
|
};
|
|
466
470
|
readonly "0x53ac": {
|
|
467
|
-
readonly name:
|
|
468
|
-
readonly type:
|
|
471
|
+
readonly name: 'SeekPosition';
|
|
472
|
+
readonly type: 'uint';
|
|
469
473
|
};
|
|
470
474
|
readonly "0xbf": {
|
|
471
|
-
readonly name:
|
|
472
|
-
readonly type:
|
|
475
|
+
readonly name: 'Crc32';
|
|
476
|
+
readonly type: 'uint8array';
|
|
473
477
|
};
|
|
474
478
|
readonly "0x4d80": {
|
|
475
|
-
readonly name:
|
|
476
|
-
readonly type:
|
|
479
|
+
readonly name: 'MuxingApp';
|
|
480
|
+
readonly type: 'string';
|
|
477
481
|
};
|
|
478
482
|
readonly "0x5741": {
|
|
479
|
-
readonly name:
|
|
480
|
-
readonly type:
|
|
483
|
+
readonly name: 'WritingApp';
|
|
484
|
+
readonly type: 'string';
|
|
481
485
|
};
|
|
482
486
|
readonly "0x73a4": {
|
|
483
|
-
readonly name:
|
|
484
|
-
readonly type:
|
|
487
|
+
readonly name: 'SegmentUUID';
|
|
488
|
+
readonly type: 'string';
|
|
485
489
|
};
|
|
486
490
|
readonly "0x4489": {
|
|
487
|
-
readonly name:
|
|
488
|
-
readonly type:
|
|
491
|
+
readonly name: 'Duration';
|
|
492
|
+
readonly type: 'float';
|
|
489
493
|
};
|
|
490
494
|
readonly "0x86": {
|
|
491
|
-
readonly name:
|
|
492
|
-
readonly type:
|
|
495
|
+
readonly name: 'CodecID';
|
|
496
|
+
readonly type: 'string';
|
|
493
497
|
};
|
|
494
498
|
readonly "0x83": {
|
|
495
|
-
readonly name:
|
|
496
|
-
readonly type:
|
|
499
|
+
readonly name: 'TrackType';
|
|
500
|
+
readonly type: 'uint';
|
|
497
501
|
};
|
|
498
502
|
readonly "0xb0": {
|
|
499
|
-
readonly name:
|
|
500
|
-
readonly type:
|
|
503
|
+
readonly name: 'PixelWidth';
|
|
504
|
+
readonly type: 'uint';
|
|
501
505
|
};
|
|
502
506
|
readonly "0xba": {
|
|
503
|
-
readonly name:
|
|
504
|
-
readonly type:
|
|
507
|
+
readonly name: 'PixelHeight';
|
|
508
|
+
readonly type: 'uint';
|
|
505
509
|
};
|
|
506
510
|
readonly "0x2ad7b1": {
|
|
507
|
-
readonly name:
|
|
508
|
-
readonly type:
|
|
511
|
+
readonly name: 'TimestampScale';
|
|
512
|
+
readonly type: 'uint';
|
|
509
513
|
};
|
|
510
514
|
readonly "0x1549a966": {
|
|
511
|
-
readonly name:
|
|
512
|
-
readonly type:
|
|
515
|
+
readonly name: 'Info';
|
|
516
|
+
readonly type: 'children';
|
|
513
517
|
};
|
|
514
518
|
readonly "0x7ba9": {
|
|
515
|
-
readonly name:
|
|
516
|
-
readonly type:
|
|
519
|
+
readonly name: 'Title';
|
|
520
|
+
readonly type: 'string';
|
|
517
521
|
};
|
|
518
522
|
readonly "0xb5": {
|
|
519
|
-
readonly name:
|
|
520
|
-
readonly type:
|
|
523
|
+
readonly name: 'SamplingFrequency';
|
|
524
|
+
readonly type: 'float';
|
|
521
525
|
};
|
|
522
526
|
readonly "0x9f": {
|
|
523
|
-
readonly name:
|
|
524
|
-
readonly type:
|
|
527
|
+
readonly name: 'Channels';
|
|
528
|
+
readonly type: 'uint';
|
|
525
529
|
};
|
|
526
530
|
readonly "0x53c0": {
|
|
527
|
-
readonly name:
|
|
528
|
-
readonly type:
|
|
531
|
+
readonly name: 'AlphaMode';
|
|
532
|
+
readonly type: 'uint';
|
|
529
533
|
};
|
|
530
534
|
readonly "0x9a": {
|
|
531
|
-
readonly name:
|
|
532
|
-
readonly type:
|
|
535
|
+
readonly name: 'FlagInterlaced';
|
|
536
|
+
readonly type: 'uint';
|
|
533
537
|
};
|
|
534
538
|
readonly "0x6264": {
|
|
535
|
-
readonly name:
|
|
536
|
-
readonly type:
|
|
539
|
+
readonly name: 'BitDepth';
|
|
540
|
+
readonly type: 'uint';
|
|
537
541
|
};
|
|
538
542
|
readonly "0x54ba": {
|
|
539
|
-
readonly name:
|
|
540
|
-
readonly type:
|
|
543
|
+
readonly name: 'DisplayHeight';
|
|
544
|
+
readonly type: 'uint';
|
|
541
545
|
};
|
|
542
546
|
readonly "0x54b0": {
|
|
543
|
-
readonly name:
|
|
544
|
-
readonly type:
|
|
547
|
+
readonly name: 'DisplayWidth';
|
|
548
|
+
readonly type: 'uint';
|
|
545
549
|
};
|
|
546
550
|
readonly "0x54b2": {
|
|
547
|
-
readonly name:
|
|
548
|
-
readonly type:
|
|
551
|
+
readonly name: 'DisplayUnit';
|
|
552
|
+
readonly type: 'uint';
|
|
549
553
|
};
|
|
550
554
|
readonly "0x9c": {
|
|
551
|
-
readonly name:
|
|
552
|
-
readonly type:
|
|
555
|
+
readonly name: 'FlagLacing';
|
|
556
|
+
readonly type: 'uint';
|
|
553
557
|
};
|
|
554
558
|
readonly "0x1254c367": {
|
|
555
|
-
readonly name:
|
|
556
|
-
readonly type:
|
|
559
|
+
readonly name: 'Tags';
|
|
560
|
+
readonly type: 'children';
|
|
557
561
|
};
|
|
558
562
|
readonly "0x7373": {
|
|
559
|
-
readonly name:
|
|
560
|
-
readonly type:
|
|
563
|
+
readonly name: 'Tag';
|
|
564
|
+
readonly type: 'children';
|
|
561
565
|
};
|
|
562
566
|
readonly "0xd7": {
|
|
563
|
-
readonly name:
|
|
564
|
-
readonly type:
|
|
567
|
+
readonly name: 'TrackNumber';
|
|
568
|
+
readonly type: 'uint';
|
|
565
569
|
};
|
|
566
570
|
readonly "0x73c5": {
|
|
567
|
-
readonly name:
|
|
568
|
-
readonly type:
|
|
571
|
+
readonly name: 'TrackUID';
|
|
572
|
+
readonly type: 'hex-string';
|
|
569
573
|
};
|
|
570
574
|
readonly "0x55b0": {
|
|
571
|
-
readonly name:
|
|
572
|
-
readonly type:
|
|
575
|
+
readonly name: 'Colour';
|
|
576
|
+
readonly type: 'children';
|
|
573
577
|
};
|
|
574
578
|
readonly "0x22b59c": {
|
|
575
|
-
readonly name:
|
|
576
|
-
readonly type:
|
|
579
|
+
readonly name: 'Language';
|
|
580
|
+
readonly type: 'string';
|
|
577
581
|
};
|
|
578
582
|
readonly "0x23e383": {
|
|
579
|
-
readonly name:
|
|
580
|
-
readonly type:
|
|
583
|
+
readonly name: 'DefaultDuration';
|
|
584
|
+
readonly type: 'uint';
|
|
581
585
|
};
|
|
582
586
|
readonly "0x63a2": {
|
|
583
|
-
readonly name:
|
|
584
|
-
readonly type:
|
|
587
|
+
readonly name: 'CodecPrivate';
|
|
588
|
+
readonly type: 'uint8array';
|
|
585
589
|
};
|
|
586
590
|
readonly "0x9b": {
|
|
587
|
-
readonly name:
|
|
588
|
-
readonly type:
|
|
591
|
+
readonly name: 'BlockDuration';
|
|
592
|
+
readonly type: 'uint';
|
|
589
593
|
};
|
|
590
594
|
readonly "0x75a1": {
|
|
591
|
-
readonly name:
|
|
592
|
-
readonly type:
|
|
595
|
+
readonly name: 'BlockAdditions';
|
|
596
|
+
readonly type: 'uint8array';
|
|
593
597
|
};
|
|
594
598
|
readonly "0x55ee": {
|
|
595
|
-
readonly name:
|
|
596
|
-
readonly type:
|
|
599
|
+
readonly name: 'MaxBlockAdditionID';
|
|
600
|
+
readonly type: 'uint';
|
|
597
601
|
};
|
|
598
602
|
readonly "0xe1": {
|
|
599
|
-
readonly name:
|
|
600
|
-
readonly type:
|
|
603
|
+
readonly name: 'Audio';
|
|
604
|
+
readonly type: 'children';
|
|
601
605
|
};
|
|
602
606
|
readonly "0xe0": {
|
|
603
|
-
readonly name:
|
|
604
|
-
readonly type:
|
|
607
|
+
readonly name: 'Video';
|
|
608
|
+
readonly type: 'children';
|
|
605
609
|
};
|
|
606
610
|
readonly "0x88": {
|
|
607
|
-
readonly name:
|
|
608
|
-
readonly type:
|
|
611
|
+
readonly name: 'FlagDefault';
|
|
612
|
+
readonly type: 'uint';
|
|
609
613
|
};
|
|
610
614
|
readonly "0xfb": {
|
|
611
|
-
readonly name:
|
|
612
|
-
readonly type:
|
|
615
|
+
readonly name: 'ReferenceBlock';
|
|
616
|
+
readonly type: 'uint';
|
|
613
617
|
};
|
|
614
618
|
readonly "0xae": {
|
|
615
|
-
readonly name:
|
|
616
|
-
readonly type:
|
|
619
|
+
readonly name: 'TrackEntry';
|
|
620
|
+
readonly type: 'children';
|
|
617
621
|
};
|
|
618
622
|
readonly "0xe7": {
|
|
619
|
-
readonly name:
|
|
620
|
-
readonly type:
|
|
623
|
+
readonly name: 'Timestamp';
|
|
624
|
+
readonly type: 'uint';
|
|
621
625
|
};
|
|
622
626
|
readonly "0x1654ae6b": {
|
|
623
|
-
readonly name:
|
|
624
|
-
readonly type:
|
|
627
|
+
readonly name: 'Tracks';
|
|
628
|
+
readonly type: 'children';
|
|
625
629
|
};
|
|
626
630
|
readonly "0xa1": {
|
|
627
|
-
readonly name:
|
|
628
|
-
readonly type:
|
|
631
|
+
readonly name: 'Block';
|
|
632
|
+
readonly type: 'uint8array';
|
|
629
633
|
};
|
|
630
634
|
readonly "0xa3": {
|
|
631
|
-
readonly name:
|
|
632
|
-
readonly type:
|
|
635
|
+
readonly name: 'SimpleBlock';
|
|
636
|
+
readonly type: 'uint8array';
|
|
633
637
|
};
|
|
634
638
|
readonly "0xa0": {
|
|
635
|
-
readonly name:
|
|
636
|
-
readonly type:
|
|
639
|
+
readonly name: 'BlockGroup';
|
|
640
|
+
readonly type: 'children';
|
|
637
641
|
};
|
|
638
642
|
readonly "0x18538067": {
|
|
639
|
-
readonly name:
|
|
640
|
-
readonly type:
|
|
643
|
+
readonly name: 'Segment';
|
|
644
|
+
readonly type: 'children';
|
|
641
645
|
};
|
|
642
646
|
readonly "0x1f43b675": {
|
|
643
|
-
readonly name:
|
|
644
|
-
readonly type:
|
|
647
|
+
readonly name: 'Cluster';
|
|
648
|
+
readonly type: 'children';
|
|
645
649
|
};
|
|
646
650
|
readonly "0x55ba": {
|
|
647
|
-
readonly name:
|
|
648
|
-
readonly type:
|
|
651
|
+
readonly name: 'TransferCharacteristics';
|
|
652
|
+
readonly type: 'uint';
|
|
649
653
|
};
|
|
650
654
|
readonly "0x55b1": {
|
|
651
|
-
readonly name:
|
|
652
|
-
readonly type:
|
|
655
|
+
readonly name: 'MatrixCoefficients';
|
|
656
|
+
readonly type: 'uint';
|
|
653
657
|
};
|
|
654
658
|
readonly "0x55bb": {
|
|
655
|
-
readonly name:
|
|
656
|
-
readonly type:
|
|
659
|
+
readonly name: 'Primaries';
|
|
660
|
+
readonly type: 'uint';
|
|
657
661
|
};
|
|
658
662
|
readonly "0x55b9": {
|
|
659
|
-
readonly name:
|
|
660
|
-
readonly type:
|
|
663
|
+
readonly name: 'Range';
|
|
664
|
+
readonly type: 'uint';
|
|
661
665
|
};
|
|
662
666
|
readonly "0x55b7": {
|
|
663
|
-
readonly name:
|
|
664
|
-
readonly type:
|
|
667
|
+
readonly name: 'ChromaSitingHorz';
|
|
668
|
+
readonly type: 'uint';
|
|
665
669
|
};
|
|
666
670
|
readonly "0x55b8": {
|
|
667
|
-
readonly name:
|
|
668
|
-
readonly type:
|
|
671
|
+
readonly name: 'ChromaSitingVert';
|
|
672
|
+
readonly type: 'uint';
|
|
669
673
|
};
|
|
670
674
|
};
|
|
671
|
-
parseTkhd:
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
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
|
};
|