k-yle / rtsp-relay

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

Client Always disconected and stream canot appear #276

Open osenbal opened 3 months ago

osenbal commented 3 months 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 2 months ago

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