Skip to content

node-av / lib / avSdpCreate

Function: avSdpCreate() ​

avSdpCreate(contexts): string | null

Defined in: src/lib/utilities.ts:1361

Create SDP from format contexts.

Creates an SDP (Session Description Protocol) string from format contexts. Used for RTP/RTSP streaming.

Direct mapping to av_sdp_create().

Parameters ​

contexts ​

FormatContext[]

Array of format contexts

Returns ​

string | null

SDP string, or null on error

Example ​

typescript
const sdp = avSdpCreate([outputContext]);
if (sdp) {
  console.log('SDP:\n' + sdp);
}

See ​

av_sdp_create - FFmpeg Doxygen