UNPKG

krtp

Version:

Node implementation of rtp protocol. RFC 3550

10 lines (9 loc) 290 B
import { Session, ReadRTPStream, WriteRTPStream } from "../index.js"; const s = new Session(1372); const r = new ReadRTPStream(s); const w = new WriteRTPStream(s, "127.0.0.1"); r.on("data", (chunk) => { console.log(chunk.toString()); }); w.write("Hello Elahe"); w.write("I am Parham");