selectPlaylist() function
Select the playlist streams in a media context.
With no options (or when passed by reference as a sourceSelector) this returns ALL playlist streams, preserving the historical behaviour. Pass { from: 'local' } or { from: 'remote' } to restrict to a single origin — e.g. against an NorskOutput.hlsTsCombinedPush() node, which exposes both its locally-served and its remotely-pushed media playlists.
Signature:
export declare function selectPlaylist(streams: readonly StreamMetadata[], opts?: {
from?: PlaylistFrom;
}): StreamKey[];
Parameters
| Parameter | Type | Description |
|---|---|---|
streams |
readonly StreamMetadata[] |
|
opts |
{ from?: PlaylistFrom; } |
(Optional) |
Returns: