mirror of
https://github.com/aler9/gortsplib
synced 2025-11-03 01:04:00 +08:00
This commit is contained in:
36
server_stream_stats.go
Normal file
36
server_stream_stats.go
Normal file
@@ -0,0 +1,36 @@
|
||||
package gortsplib
|
||||
|
||||
import (
|
||||
"github.com/bluenviron/gortsplib/v4/pkg/description"
|
||||
"github.com/bluenviron/gortsplib/v4/pkg/format"
|
||||
)
|
||||
|
||||
// ServerStreamStatsFormat are stream format statistics.
|
||||
type ServerStreamStatsFormat struct {
|
||||
// number of sent RTP packets
|
||||
RTPPacketsSent uint64
|
||||
}
|
||||
|
||||
// ServerStreamStatsMedia are stream media statistics.
|
||||
type ServerStreamStatsMedia struct {
|
||||
// sent bytes
|
||||
BytesSent uint64
|
||||
// number of sent RTCP packets
|
||||
RTCPPacketsSent uint64
|
||||
|
||||
// format statistics
|
||||
Formats map[format.Format]ServerStreamStatsFormat
|
||||
}
|
||||
|
||||
// ServerStreamStats are stream statistics.
|
||||
type ServerStreamStats struct {
|
||||
// sent bytes
|
||||
BytesSent uint64
|
||||
// number of sent RTP packets
|
||||
RTPPacketsSent uint64
|
||||
// number of sent RTCP packets
|
||||
RTCPPacketsSent uint64
|
||||
|
||||
// media statistics
|
||||
Medias map[*description.Media]ServerStreamStatsMedia
|
||||
}
|
||||
Reference in New Issue
Block a user