add OnTransportSwitch, OnPacketLost, OnDecodeError to server and client (#225)

These new hooks replace the generic hooks Log() and OnWarning().
This commit is contained in:
Alessandro Ros
2023-04-04 17:10:37 +02:00
committed by GitHub
parent f905598d2e
commit 2fbba142cc
15 changed files with 185 additions and 92 deletions

16
loglevel.go Normal file
View File

@@ -0,0 +1,16 @@
package gortsplib
// LogLevel is a log level.
//
// Deprecated: Log() is deprecated.
type LogLevel int
// Log levels.
//
// Deprecated: Log() is deprecated.
const (
LogLevelDebug LogLevel = iota + 1
LogLevelInfo
LogLevelWarn
LogLevelError
)