在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
里这个地址是什么地址?,求大神
相关分类