rtsp-relay
rtsp-relay copied to clipboard
Client Always disconected and stream canot appear
I run my code like documentations :
But stream can't appear and socket not send the data
My Code :
`const express = require('express'); const app = express();
const { proxy, scriptUrl } = require('rtsp-relay')(app);
const handler = proxy({
url: rtsp://admin:[email protected]:554/ISAPI/Streaming/tracks/101?starttime=20240806T090000Z&endtime=20240806T090100Z,
// if your RTSP stream need credentials, include them in the URL as above
verbose: true,
transport: 'tcp',
});
// the endpoint our RTSP uses app.ws('/api/stream', handler);
app.get('/', (req, res) => res.send(`
) ); app.listen(2000);