This commit is contained in:
aler9
2020-07-19 18:01:49 +02:00
parent 511d109e8d
commit e5d15bc157
6 changed files with 14 additions and 13 deletions

View File

@@ -15,13 +15,13 @@ const (
type StreamProtocol int
const (
// invalid protocol
// StreamProtocolInvalid is an invalid protocol
StreamProtocolInvalid StreamProtocol = iota
// UDP protocol
// StreamProtocolUdp means that the stream uses the UDP\ protocol
StreamProtocolUdp
// TCP protocol
// StreamProtocolTcp means that the stream uses the TCP protocol
StreamProtocolTcp
)
@@ -37,10 +37,10 @@ func (sp StreamProtocol) String() string {
type StreamType int
const (
// stream that contains RTP packets
// StreamTypeRtp means that the stream contains RTP packets
StreamTypeRtp StreamType = iota + 1
// stream that contains RTCP packets
// StreamTypeRtp means that the stream contains RTCP packets
StreamTypeRtcp
)