sdp-parser2
v1.6.3
Published
SDP parsing/printing library, implemented based on the JavaScript Session Establishment Protocol(JSEP).
Downloads
10
Readme
SDP parser
SDP parsing/printing library, implemented based on the JavaScript Session Establishment Protocol(JSEP).
parsing
import { parse } from "sdp-parser";
const sessionDescription = parse(sdp);
printing
import { print } from "sdp-parser";
const sdp = print(sessionDescription);
munging
import { parse, print } from "sdp-parser";
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