https://github.com/1995parham/krtp
node.js implementation of rtp, rtcp protocols. RFC 3550
https://github.com/1995parham/krtp
realtime-protocol rtcp rtcp-packets rtp rtp-packet rtp-session
Last synced: 11 months ago
JSON representation
node.js implementation of rtp, rtcp protocols. RFC 3550
- Host: GitHub
- URL: https://github.com/1995parham/krtp
- Owner: 1995parham
- License: gpl-3.0
- Created: 2017-05-30T21:58:41.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2024-06-18T10:22:41.000Z (almost 2 years ago)
- Last Synced: 2024-12-11T21:01:58.545Z (over 1 year ago)
- Topics: realtime-protocol, rtcp, rtcp-packets, rtp, rtp-packet, rtp-session
- Language: TypeScript
- Homepage:
- Size: 1.1 MB
- Stars: 34
- Watchers: 3
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Koochooloo RTP

[](https://www.npmjs.com/package/krtp)
[](https://www.npmjs.com/package/krtp)
- [Introduction](#introduction)
- [Example](#example)
- [Protocol Documentation](https://github.com/1995parham/krtp/blob/master/docs/RTP.md)
## Introduction
RealTime Protocol implementation based on [RFC 3550](https://tools.ietf.org/html/rfc3550) in NodeJS.
It supports RTP and SR message of RTCP. All contributions are welcome.
KRTP has support for rxjs.
## Example
```javascript
const Session = require("../dist").Session;
const s = new Session(1373);
s.on("message", (msg) => {
console.log(msg);
s.close();
});
s.sendSR("192.168.73.4").catch((err) => {
console.log(err);
});
s.send(Buffer.from("Hello world"));
```
```typescript
import { Session } from "..";
const s = new Session(1372);
s.message$.subscribe((msg) => console.log(msg));
```