-
Notifications
You must be signed in to change notification settings - Fork 262
Expand file tree
/
Copy pathserver_stream_stats.go
More file actions
53 lines (44 loc) · 1.22 KB
/
server_stream_stats.go
File metadata and controls
53 lines (44 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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 {
// outbound RTP packets
OutboundRTPPackets uint64
// local SSRC
LocalSSRC uint32
// Deprecated: use OutboundRTPPackets.
RTPPacketsSent uint64
}
// ServerStreamStatsMedia are stream media statistics.
type ServerStreamStatsMedia struct {
// outbound bytes
OutboundBytes uint64
// outbound RTCP packets
OutboundRTCPPackets uint64
// format statistics
Formats map[format.Format]ServerStreamStatsFormat
// Deprecated: use OutboundBytes.
BytesSent uint64
// Deprecated: use OutboundRTCPPackets.
RTCPPacketsSent uint64
}
// ServerStreamStats are stream statistics.
type ServerStreamStats struct {
// outbound bytes
OutboundBytes uint64
// outbound RTP packets
OutboundRTPPackets uint64
// outbound RTCP packets
OutboundRTCPPackets uint64
// media statistics
Medias map[*description.Media]ServerStreamStatsMedia
// Deprecated: use OutboundBytes.
BytesSent uint64
// Deprecated: use OutboundRTPPackets.
RTPPacketsSent uint64
// Deprecated: use OutboundRTCPPackets.
RTCPPacketsSent uint64
}