-
-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Description
How can I display an error message when the RTSP connection cannot be connected or is disconnected, and remove the error message if the connection is successful reconnects and continues streaming
I tried to create code to display an error message like this:
loadPlayer({
url: 'ws://' + location.host + '/api/stream',
canvas: document.getElementById('canvas'),
onDisconnect: () => {
$('#error').text('Streaming disconnect');
$('#error').show();
}
});but I can't remove the #error when rtsp reconnect, because there is no function to know whether the stream reconnected successfully or not
Metadata
Metadata
Assignees
Labels
No labels