Skip to content

nodertc/is-rtp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Check if a Buffer is a RTP/RTCP message.

Topics

Resources

License

Stars

5 stars

Watchers

2 watching

Forks

Packages

 
 
 

Contributors