Handle unavailable stream

Hey there,

I have configured succuessfully the streaming plugin. That plugin publishes an rtsp stream. I would like to handle if the rtsp source is down.
In the logs I can see the following:

[ERR] [plugins/janus_streaming.c:janus_streaming_rtsp_connect_to_server:8164] Couldn't send DESCRIBE request: Couldn't connect to server (Failed to connect to 192.168.178.46 port 8554 after 0 ms: Couldn't connect to server)
[WARN] [99] Reconnection of the RTSP stream failed, trying again in a few seconds...

I have also configured the http event handler. But unfortunately the event handler does not publish this error. I there anything else I can do about?

general: {
enabled = true # By default the module is not enabled
events = “all” # Comma separated list of the events mask you’re interested

Thanks for your help!

Cheers

Robert

Yes, I don’t think we have an event fired for that. If you’d like one to be added, please open an issue on github and we’ll see what can be done about it. Of course we also always welcome pull requests, so if you have a patch to add the feature I’d be happy to review it.

Hey Lorenzo,
thanks for your help. I have created a feature request here.
I really would like to help, but Janus isn’t quite my tech stack :face_with_spiral_eyes:

1 Like