node-av / api / MediaFrameSource
Interface: MediaFrameSource
Defined in: src/api/types.ts:13
Pre-composited frame sources for the streaming classes (RTPStream, WebRTCStream, FMP4Stream).
Use this instead of a URL/Demuxer to stream already-decoded/filtered frames (e.g. a picture-in-picture composite from FilterComplexAPI). Provide a video and/or audio async iterable of frames; each is encoded and sent to the output. There is no input codec, so the frames are always encoded (no passthrough).
Properties
audio?
optionalaudio?:AsyncIterable<Frame|null,any,any>
Defined in: src/api/types.ts:17
Audio frame source (encoded to the class's audio target codec).
video?
optionalvideo?:AsyncIterable<Frame|null,any,any>
Defined in: src/api/types.ts:15
Video frame source (encoded to the class's video target codec).
