mirror of
https://github.com/aler9/gortsplib
synced 2025-10-06 15:46:51 +08:00
25 lines
438 B
Go
25 lines
438 B
Go
package base
|
|
|
|
// StreamType is the stream type.
|
|
type StreamType int
|
|
|
|
const (
|
|
// StreamTypeRtp means that the stream contains RTP packets
|
|
StreamTypeRtp StreamType = iota
|
|
|
|
// StreamTypeRtcp means that the stream contains RTCP packets
|
|
StreamTypeRtcp
|
|
)
|
|
|
|
// String implements fmt.Stringer
|
|
func (st StreamType) String() string {
|
|
switch st {
|
|
case StreamTypeRtp:
|
|
return "RTP"
|
|
|
|
case StreamTypeRtcp:
|
|
return "RTCP"
|
|
}
|
|
return "unknown"
|
|
}
|