docs: include StreamType enum description in new docs (#9457)

This commit is contained in:
RanAS
2023-04-27 15:29:27 -03:00
committed by GitHub
parent 6212bffa30
commit 36216c0e1a

View File

@@ -24,19 +24,27 @@ const FFMPEG_OPUS_ARGUMENTS = [
/**
* The different types of stream that can exist within the pipeline.
*
* @remarks
* - `Arbitrary` - the type of the stream at this point is unknown.
* - `Raw` - the stream at this point is s16le PCM.
* - `OggOpus` - the stream at this point is Opus audio encoded in an Ogg wrapper.
* - `WebmOpus` - the stream at this point is Opus audio encoded in a WebM wrapper.
* - `Opus` - the stream at this point is Opus audio, and the stream is in object-mode. This is ready to play.
*/
export enum StreamType {
/**
* The type of the stream at this point is unknown.
*/
Arbitrary = 'arbitrary',
/**
* The stream at this point is Opus audio encoded in an Ogg wrapper.
*/
OggOpus = 'ogg/opus',
/**
* The stream at this point is Opus audio, and the stream is in object-mode. This is ready to play.
*/
Opus = 'opus',
/**
* The stream at this point is s16le PCM.
*/
Raw = 'raw',
/**
* The stream at this point is Opus audio encoded in a WebM wrapper.
*/
WebmOpus = 'webm/opus',
}