Skip to main content

Type Alias: TrackInput

TrackInput = { config: VideoConfig; kind: "video"; track: MediaStreamTrack; } | { config: AudioConfig; kind: "audio"; track: MediaStreamTrack; }

Interface for adding tracks for producing. Can be either audio or video, but must match the kind of the MediaStreamTrack.