- RTSPSession.outboundRTPPacketsDiscarded - Path.inboundFramesInError - SRTConn.outboundFramesDiscarded - WebRTCSession.outboundFramesDiscarded - RTMPConn.outboundFramesDiscarded - HLSMuxer.outboundFramesDiscarded
28 lines
836 B
Go
28 lines
836 B
Go
package defs
|
|
|
|
import "time"
|
|
|
|
// APIHLSServer contains methods used by the API and Metrics server.
|
|
type APIHLSServer interface {
|
|
APIMuxersList() (*APIHLSMuxerList, error)
|
|
APIMuxersGet(string) (*APIHLSMuxer, error)
|
|
}
|
|
|
|
// APIHLSMuxer is an HLS muxer.
|
|
type APIHLSMuxer struct {
|
|
Path string `json:"path"`
|
|
Created time.Time `json:"created"`
|
|
LastRequest time.Time `json:"lastRequest"`
|
|
OutboundBytes uint64 `json:"outboundBytes"`
|
|
OutboundFramesDiscarded uint64 `json:"outboundFramesDiscarded"`
|
|
// deprecated
|
|
BytesSent uint64 `json:"bytesSent" deprecated:"true"`
|
|
}
|
|
|
|
// APIHLSMuxerList is a list of HLS muxers.
|
|
type APIHLSMuxerList struct {
|
|
ItemCount int `json:"itemCount"`
|
|
PageCount int `json:"pageCount"`
|
|
Items []APIHLSMuxer `json:"items"`
|
|
}
|