is-rtp

2.0.0 • Public • Published

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)

Related projects

License

MIT, 2017 (c) Dmitry Tsvettsikh

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    112
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    112
  • 1.0.0
    0

Package Sidebar

Install

npm i is-rtp

Weekly Downloads

112

Version

2.0.0

License

MIT

Last publish

Collaborators

  • reklatsmasters