Improve RTSP consumer logic

This commit is contained in:
Alexey Khit
2023-02-17 09:21:43 +03:00
parent e43b1e4ab6
commit c1b810a5fe
2 changed files with 19 additions and 9 deletions
+4 -4
View File
@@ -35,11 +35,11 @@ const (
type Mode byte
const (
ModeUnknown Mode = iota
ModeClientProducer
ModeUnknown Mode = iota
ModeClientProducer // conn act as RTSP client that receive data from RTSP server (ex. camera)
ModeServerUnknown
ModeServerProducer
ModeServerConsumer
ModeServerProducer // conn act as RTSP server that reseive data from RTSP client (ex. ffmpeg output)
ModeServerConsumer // conn act as RTSP server that send data to RTSP client (ex. ffmpeg input)
)
type State byte