Skip to content

RTSP Stream not coming up  #246

@JoelCherian

Description

@JoelCherian

I have a rtsp stream working in VLC media player. When opening express it comes with an empty page with no errors. When i turn the verbose :true i get Stream died - will recreate when the next client connects.

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

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

const handler = proxy({
url: rtsp://1.1.1:554/live1.sdp,
// if your RTSP stream need credentials, include them in the URL as above
verbose: false,
});

// the endpoint our RTSP uses
app.ws('/api/stream', handler);

// this is an example html page to view the stream
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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions