Function: avSdpCreate()
avSdpCreate(
contexts
):null
|string
Defined in: src/lib/utilities.ts:892
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
Array of format contexts
Returns
null
| string
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