rtp.js
TypeScript icon, indicating that this package has built-in type declarations

0.12.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i rtp.js

Weekly Downloads

301

Version

0.12.0

License

ISC

Unpacked Size

666 kB

Total Files

184

Last publish

Collaborators

  • ibc