mirror of
https://github.com/aler9/gortsplib
synced 2025-09-27 03:25:52 +08:00

* switch from v4 to v5 * remove deprecated entities * remove "2" suffix from entities * rename TransportProtocol into Protocol
39 lines
874 B
Go
39 lines
874 B
Go
package gortsplib
|
|
|
|
import (
|
|
"github.com/bluenviron/gortsplib/v5/pkg/description"
|
|
"github.com/bluenviron/gortsplib/v5/pkg/format"
|
|
)
|
|
|
|
// ServerStreamStatsFormat are stream format statistics.
|
|
type ServerStreamStatsFormat struct {
|
|
// number of sent RTP packets
|
|
RTPPacketsSent uint64
|
|
// local SSRC
|
|
LocalSSRC uint32
|
|
}
|
|
|
|
// 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
|
|
}
|