mirror of
https://github.com/aler9/gortsplib
synced 2025-10-08 16:40:09 +08:00
add OnTransportSwitch, OnPacketLost, OnDecodeError to server and client (#225)
These new hooks replace the generic hooks Log() and OnWarning().
This commit is contained in:
16
loglevel.go
Normal file
16
loglevel.go
Normal 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
|
||||
)
|
Reference in New Issue
Block a user