# node-rtsp-stream-es6
First of all, it's a fork of [**node-rtsp-stream**](https://www.npmjs.com/package/node-rtsp-stream)
## Differences with the original module
- Written in ES6 instead of CoffeeScript
- Github repository
## Description
Stream any RTSP stream and output to [WebSocket](https://github.com/websockets/ws) for consumption by [jsmpeg](https://github.com/phoboslab/jsmpeg).
HTML5 streaming video!
## Requirements
You need to download and install [FFMPEG](https://ffmpeg.org/download.html).
## Installation
```shell
npm i node-rtsp-stream-es6
```
## Server
```javascript
const Stream = require('node-rtsp-stream-es6')
const options = {
name: 'streamName',
url: 'rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov',
port: 5000
}
stream = new Stream(options)
stream.start()
```
## Client
```javascript
const WebSocket = require('ws')
const ws = new WebSocket('ws://localhost:5000')
ws.on('open', () => {
console.log('Connected to stream')
})
ws.on('message', (data, flags) => {
console.log(data)
})
```
You can find a live stream JSMPEG example here : https://github.com/phoboslab/jsmpeg/blob/master/view-stream.html
没有合适的资源?快使用搜索试试~ 我知道了~
node-rtsp-stream-es6:流传输任何RTSP流并将其输出到websocket以供jsmpeg使用
共11个文件
js:6个
json:2个
gitattributes:1个
5星 · 超过95%的资源 需积分: 50 10 下载量 54 浏览量
2021-02-05
01:39:41
上传
评论
收藏 6KB ZIP 举报
温馨提示
节点-rtsp-stream-es6 首先,这是的分支 与原始模块的差异 用ES6代替CoffeeScript写 Github仓库 描述 流式传输任何RTSP流并将其输出到以供。 HTML5流视频! 要求 您需要下载并安装 。 安装 npm i node-rtsp-stream-es6 服务器 const Stream = require ( 'node-rtsp-stream-es6' ) const options = { name : 'streamName' , url : 'rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mo
资源推荐
资源详情
资源评论
收起资源包目录
node-rtsp-stream-es6-master.zip (11个子文件)
node-rtsp-stream-es6-master
.gitattributes 378B
src
mpeg1muxer.js 828B
videoStream.js 3KB
test
server.js 258B
client.js 202B
index.js 423B
README.md 1KB
.gitignore 876B
index.js 45B
package-lock.json 857B
package.json 462B
共 11 条
- 1
资源评论
- 小蔡是你吗?2021-08-04用户下载后在一定时间内未进行评价,系统默认好评。
香港键师傅
- 粉丝: 27
- 资源: 4647
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功