Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/watson/rtsp-server
A low level module for creating RTSP servers
https://github.com/watson/rtsp-server
Last synced: 17 days ago
JSON representation
A low level module for creating RTSP servers
- Host: GitHub
- URL: https://github.com/watson/rtsp-server
- Owner: watson
- License: mit
- Created: 2015-09-02T22:10:20.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-24T00:52:42.000Z (about 9 years ago)
- Last Synced: 2024-05-12T06:40:39.515Z (6 months ago)
- Language: JavaScript
- Size: 152 KB
- Stars: 31
- Watchers: 6
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-network-js - rtsp-server
README
# rtsp-server
A low level module for creating [RTSP
servers](https://en.wikipedia.org/wiki/Real_Time_Streaming_Protocol).This project aims for 100% compliance with [RFC
2326](https://tools.ietf.org/html/rfc2326). If you find something
missing, please [open an
issue](https://github.com/watson/rtsp-server/issues).[![Build status](https://travis-ci.org/watson/rtsp-server.svg?branch=master)](https://travis-ci.org/watson/rtsp-server)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)## Installation
```
npm install rtsp-server
```## Usage
```js
var rtsp = require('rtsp-server')var server = rtsp.createServer(function (req, res) {
console.log(req.method, req.url)switch (req.method) {
case 'OPTIONS':
res.setHeader('Public', 'OPTIONS')
break
default:
res.statusCode = 501 // Not implemented
}res.end() // will echo the CSeq header used in the request
})server.listen(5000, function () {
var port = server.address().port
console.log('RTSP server is running on port:', port)
})
```## Out of scope
This project is not:
- An RTSP client
- A functional RTSP server you can just run out of the box (think of
this module more like the core `http` module without the client part)
- A discovery service: I.e. no mDNS/Bonjour/Zeroconf technology included## Todo
- UDP support: Currently only TCP is supported.
- ??? Did I forget to add an item to this to-do list? [Open an
issue](https://github.com/watson/rtsp-server/issues).## License
MIT