audioStreams() function

Filters a context to only the audio streams within it

Signature:

export declare function audioStreams(streams: readonly StreamMetadata[]): StreamMetadata[];

Parameters

Parameter Type Description

streams

readonly StreamMetadata[]

The media context from which to return the streams

Returns:

The audio streams in the media context