versatica / rtp.js

RTP stack for Node and browser written in TypeScript

Home Page:https://versatica.github.io/rtp.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rtp.js

RTP stack for Node.js and browser written in TypeScript. rtp.js provides with an API to parse, generate and modify RTP and RTCP packets.

Installation

npm install rtp.js

Usage

  • API documentation

  • All RTP and RTCP classes, types and packet related helpers are exported by the packets module.

    import { packets } from 'rtp.js';
    
    const {
    	isRtp,
    	isRtcp,
    	RtpPacket,
    	CompoundPacket,
    	ReceiverReportPacket,
    	SenderReportPacket,
    	ReceptionReport,
    	ByePacket,
    	SdesPacket,
    	NackPacket,
    	SrReqPacket,
    	EcnPacket,
    	PliPacket,
    	SliPacket,
    	RpsiPacket,
    	XrPacket,
    	ExtendedJitterReportsPacket,
    	GenericPacket,
    	// etc.
    } = packets;
  • The utils module exports some generic helpers and utilities.

    import { utils } from 'rtp.js';
    
    const view = utils.stringToDataView('foo');

Authors

License

ISC

About

RTP stack for Node and browser written in TypeScript

https://versatica.github.io/rtp.js/

License:ISC License


Languages

Language:TypeScript 97.5%Language:JavaScript 2.4%Language:CSS 0.1%