Document MPEG-TS

This commit is contained in:
Vanilagy
2026-01-16 20:51:27 +01:00
parent 53b04619e1
commit 20e4610da4
5 changed files with 59 additions and 31 deletions
+2
View File
@@ -32,6 +32,7 @@ import {
OGG, // Ogg input format singleton
ADTS, // ADTS input format singleton
FLAC, // FLAC input format singleton
MPEG_TS, // MPEG-TS input format singleton
} from 'mediabunny';
```
@@ -80,6 +81,7 @@ In addition to singletons, input format classes are structured hierarchically:
- `OggInputFormat`
- `AdtsInputFormat`
- `FlacInputFormat`
- `MpegTsInputFormat`
This means you can also perform input format checks using `instanceof` instead of `===` comparisons. For example:
```ts