k-yle / rtsp-relay

📽 View an RTSP stream in your web browser using an express.js server
https://npm.im/rtsp-relay
MIT License
324 stars 58 forks source link

Client Always disconected and stream canot appear #276

Open osenbal opened 1 month ago

osenbal commented 1 month ago

I run my code like documentations :

But stream can't appear and socket not send the data

image

My Code :

`const express = require('express'); const app = express();

const { proxy, scriptUrl } = require('rtsp-relay')(app);

const handler = proxy({ url: rtsp://admin:GMK304@192.168.100.240: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);

anzal1 commented 1 week ago

The canvas is present, but its display is hidden , change it to block @osenbal