0.1.1 • Published 1 year ago

@irbisadm/simple-sdp v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

license MIT npm version npm types bundlephobia min-zip size bundlephobia dependency count bundlephobia tree-shaking

Simple SDP tools

This project is a TypeScript library that provides a comprehensive set of tools for working with Session Description Protocol (SDP) messages in WebRTC applications. SDP is a text-based format that describes the multimedia communication sessions between peers. With this library, you can:

  • Parse and generate SDP messages from and to TypeScript objects
  • Manipulate SDP data by adding, removing, or modifying media streams, codecs, candidates, and other attributes
  • Validate SDP messages according to the RFC 8866 specification and WebRTC best practices
  • Track and verify the SDP history for a single PeerConnection instance

This project aims to help WebRTC beginners learn the SDP format and its components, as well as provide a clear and easy-to-use TypeScript API for advanced users. This project was inspired by the pjsip library written in C++.

You can use the library with Node.js as well in any modern web browser.

SIP disclaimer

Probably this library can be used for parsing and creating SDP for SIP. I can see a theoretical problems here because some SIP devices are complained only with older SDP RFC: RFC 4566 or RFC 2327.

I'm not an expert in SIP and have no test environment to check compatibility with that standards. If you can help with tests or expertise with SIP, please send me a message to i@irbisadm.dev