Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client Always disconected and stream canot appear #276

Open
osenbal opened this issue Aug 6, 2024 · 1 comment
Open

Client Always disconected and stream canot appear #276

osenbal opened this issue Aug 6, 2024 · 1 comment
Labels
question Further information is requested

Comments

@osenbal
Copy link

osenbal commented Aug 6, 2024

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:[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(`

<script src='${scriptUrl}'></script> <script> loadPlayer({ url: 'ws://' + location.host + '/api/stream', canvas: document.getElementById('canvas') }); </script>

) ); app.listen(2000);

@k-yle k-yle added the question Further information is requested label Aug 6, 2024
@anzal1
Copy link

anzal1 commented Sep 21, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants