sdp-resolver
v1.6.3
Published
SDP parsing/printing library, implemented based on the JavaScript Session Establishment Protocol(JSEP).
Downloads
1
Readme
SDP resolver
SDP parsing/printing library, implemented based on the JavaScript Session Establishment Protocol(JSEP).
parsing
import { parse } from "sdp-resolver";
const sessionDescription = parse(sdp);
printing
import { print } from "sdp-resolver";
const sdp = print(sessionDescription);
munging
import { parse, print } from "sdp-resolver";
const sessionDescription = parse(sdp);
sessionDescription
.mediaDescription[0]
.attributes
.ssrcs.push({
ssrcId: '1024',
attributeName: 'label',
attributeValue: 'oTwikEfJsdv0'
});
const mungedSdp = print(sessionDescription);
roadmap
- [ ] Better error report while parsing