mirror of
https://github.com/aler9/gortsplib
synced 2025-11-01 19:12:37 +08:00
update docs (#232)
This commit is contained in:
@@ -221,7 +221,7 @@ type Client struct {
|
||||
OnTransportSwitch func(err error)
|
||||
// called when the client detects lost packets.
|
||||
OnPacketLost func(err error)
|
||||
// called when there's a decode error.
|
||||
// called when a non-fatal decode error occurs.
|
||||
OnDecodeError func(err error)
|
||||
// Deprecated: replaced by OnTransportSwitch, OnPacketLost, OnDecodeError
|
||||
Log ClientLogFunc
|
||||
|
||||
@@ -217,6 +217,7 @@ type ServerHandlerOnPacketLostCtx struct {
|
||||
|
||||
// ServerHandlerOnPacketLost can be implemented by a ServerHandler.
|
||||
type ServerHandlerOnPacketLost interface {
|
||||
// called when the server detects lost packets.
|
||||
OnPacketLost(*ServerHandlerOnPacketLostCtx)
|
||||
}
|
||||
|
||||
@@ -228,5 +229,6 @@ type ServerHandlerOnDecodeErrorCtx struct {
|
||||
|
||||
// ServerHandlerOnDecodeError can be implemented by a ServerHandler.
|
||||
type ServerHandlerOnDecodeError interface {
|
||||
// called when a non-fatal decode error occurs.
|
||||
OnDecodeError(*ServerHandlerOnDecodeErrorCtx)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user