在github上搜到说可以用node-rtsp-stream来转码视频流,根据https://www.npmjs.com/package...上写的,我npm install node-rtsp-stream以后,在node上执行Stream = require('node-rtsp-stream');stream = new Stream({
name: 'name',
streamUrl: 'rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov',
wsPort: 9999
});之后在js里写的client = new Websocket('ws://localhost:9999');
player = new jsmpeg(client, {
canvas: canvas // Canvas should be a canvas DOM element});我不明白Websocket里这个地址是什么地址?,求大神
添加回答
举报
0/150
提交
取消