Closed joeyskeys closed 4 years ago
just checked the source code, line 22 of videoStream.js is
this.startMpeg1Stream()
which is defined later in line 36, I'm totally new to js, but this looks correct to me, can anyone help?
i think you forgot to create an object from instance.
const Stream = require('node-rtsp-stream');
//const stream = Stream(); will throw the "is not function" error.
const stream = new Stream({...config});
This seems to be resolved so I am closing. Feel free to open another issue if need be.
hi guys, I'm trying to use node-rtsp-stream and got following error on my web page.
my server is just simply a express server which respond to requests and send the html back, I init the stream in the new connection callback of server. my html is just like the example provided in the README.
Any ideas? Thanks in advance.