🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

is-rtp

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-rtp

Check if a Buffer is a RTP/RTCP message.

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

is-rtp

Build Status npm node license downloads

Check if a Buffer is a RTP/RTCP message. Used for demultiplex packets that are arriving on the same port. Follows RFC7983.

Usage

const dgram = require('dgram')
const is_rtp = require('is-rtp')

const socket = dgram.createSocket('udp4')

socket.on('message', (packet) => {
  if (is_rtp(packet)) {
    // handle RTP...
  }
})

socket.bind(0)
  • is-dtls - Check if a Buffer is a DTLS message.
  • is-turn - Check if a Buffer is a TURN message.
  • is-stun - Check if a Buffer is a STUN message.

License

MIT, 2017 (c) Dmitry Tsvettsikh

Keywords

rtp

FAQs

Package last updated on 13 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts