Files
gortsplib/defs.go
2020-11-07 12:35:10 +01:00

39 lines
1019 B
Go

package gortsplib
import (
"github.com/aler9/gortsplib/base"
)
// StreamProtocol is the protocol of a stream.
type StreamProtocol = base.StreamProtocol
const (
// StreamProtocolUDP means that the stream uses the UDP protocol
StreamProtocolUDP StreamProtocol = base.StreamProtocolUDP
// StreamProtocolTCP means that the stream uses the TCP protocol
StreamProtocolTCP StreamProtocol = base.StreamProtocolTCP
)
// StreamCast is the cast method of a stream.
type StreamCast = base.StreamCast
const (
// StreamUnicast means that the stream is unicasted
StreamUnicast StreamCast = base.StreamUnicast
// StreamMulticast means that the stream is multicasted
StreamMulticast StreamCast = base.StreamMulticast
)
// StreamType is the stream type.
type StreamType = base.StreamType
const (
// StreamTypeRtp means that the stream contains RTP packets
StreamTypeRtp StreamType = base.StreamTypeRtp
// StreamTypeRtcp means that the stream contains RTCP packets
StreamTypeRtcp StreamType = base.StreamTypeRtcp
)