mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 19:03:46 +02:00
Fix API docs some more
This commit is contained in:
@@ -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
@@ -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}.
|
||||
|
||||
Reference in New Issue
Block a user