krtp
Version:
Node implementation of rtp protocol. RFC 3550
13 lines (9 loc) • 299 B
text/typescript
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: Buffer) => {
console.log(chunk.toString());
});
w.write("Hello Elahe");
w.write("I am Parham");