bluenviron / gortsplib

RTSP 1.0 client and server library for the Go programming language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Detect closure from server when recording

SijmenHuizenga opened this issue · comments

What is a good way to detect that the connection to the server, after starting streaming with StartRecording, is closed?

For example, in this example, how would I go about reacting to a situation where the rtsp server at port 8554 becomes unavailable?