Fix API docs some more

This commit is contained in:
Vanilagy
2026-07-24 14:53:49 +02:00
parent 2f5e2f0a3e
commit 4b5ef55cf1
3 changed files with 188 additions and 38 deletions
+3 -3
View File
@@ -87,19 +87,19 @@ export abstract class OutputFormat {
abstract get supportsTimestampedMediaData(): boolean;
/** Returns a list of video codecs that this output format can contain. */
getSupportedVideoCodecs() {
getSupportedVideoCodecs(): VideoCodec[] {
return this.getSupportedCodecs()
.filter(codec => (VIDEO_CODECS as readonly string[]).includes(codec)) as VideoCodec[];
}
/** Returns a list of audio codecs that this output format can contain. */
getSupportedAudioCodecs() {
getSupportedAudioCodecs(): AudioCodec[] {
return this.getSupportedCodecs()
.filter(codec => (AUDIO_CODECS as readonly string[]).includes(codec)) as AudioCodec[];
}
/** Returns a list of subtitle codecs that this output format can contain. */
getSupportedSubtitleCodecs() {
getSupportedSubtitleCodecs(): SubtitleCodec[] {
return this.getSupportedCodecs()
.filter(codec => (SUBTITLE_CODECS as readonly string[]).includes(codec)) as SubtitleCodec[];
}
+1 -1
View File
@@ -233,7 +233,7 @@ export type BaseTrackMetadata = {
* tracks can be presented together with other tracks. This is needed for configuring things like HLS master
* playlists.
*
* Two groups are considered pairable if they are in the same group but are of different {@link TrackType}, or if
* Two tracks are considered pairable if they are in the same group but are of different {@link TrackType}, or if
* they are in two separate groups that have been paired with each other.
*
* If left blank, a track is automatically assigned to {@link Output.defaultTrackGroup}.