@seydx/rtsp / StreamInfo
Interface: StreamInfo
Defined in: types.ts:295
A resolved description of everything a source carries.
Returned by Source.open and handed to each sink's init, it enumerates the source's tracks and, when available, the upstream's talkback format. Sinks use this to configure themselves before any packet is written.
Example
import { Source } from '@seydx/rtsp';
const info = await source.open();
console.log(`${info.tracks.length} tracks, backchannel: ${!!info.backchannel}`);See
- TrackInfo For per-track metadata
- BackchannelInfo For the talkback format
Properties
backchannel?
optionalbackchannel?:BackchannelInfo
Defined in: types.ts:310
The upstream's talkback format, when supported.
Present only if the source exposes a backchannel; describes the audio format the upstream expects to receive. Absent for one-way sources.
tracks
tracks:
TrackInfo[]
Defined in: types.ts:302
The elementary streams carried by the source.
One TrackInfo per demuxed stream, in source order. Sinks iterate this list to set up muxers, encoders, or output channels.