mirror of
				https://github.com/aler9/gortsplib
				synced 2025-10-31 02:26:57 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			722 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			722 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package gortsplib
 | |
| 
 | |
| import (
 | |
| 	"github.com/aler9/gortsplib/pkg/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
 | |
| )
 | |
| 
 | |
| // 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
 | |
| )
 | 
