Skip to content

Instantly share code, notes, and snippets.

@lukirs95
lukirs95 / ptp.js
Created March 8, 2022 16:46 — forked from philhartung/ptp.js
PTPv2 client and RTP relay with timestamping for AES67. Also includes SAP/SDP.
var sdp = require('./sdp');
//SDP Stuff
var samplerate = 48000;
var channels = 2;
var multicastAddr = '239.69.0.111';
var addr = '192.168.1.1';
var encoding = 'L24';
var name = 'RPi 4';
var sessID = Math.floor(Date.now() / 1000);