mpromonet / webrtc-streamer

WebRTC streamer for V4L2 capture devices, RTSP sources and Screen Capture
https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/?layout=2x2
The Unlicense
2.81k stars 581 forks source link

Notified in web app about dead rtsp streams. question. #175

Open ohadlahav opened 5 years ago

ohadlahav commented 5 years ago

NOT A BUG Just a question.

Is there an elegant way where i could get notified (in js web app) when a IP camera RTSP stream is down ? In my implementation i stream multiple ip cameras and would like to notify the user about "dead" rtsp streams.

The peerconnection is still connected in those scenarios as the webrtc-streamer working fine.

Thanks in advance !!

mpromonet commented 5 years ago

Hi,

Maybe you can use the webrtc stats ?

Or I guess it could be to use the datachannel or add some additionnal status in getPeerConnectionList API.

Best Regards, Michel.