You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
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: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) =>
<script src='${scriptUrl}'></script> <script> loadPlayer({ url: 'ws://' + location.host + '/api/stream', canvas: document.getElementById('canvas') }); </script>res.send(`
) ); app.listen(2000);
The text was updated successfully, but these errors were encountered: