Documentation ¶
Index ¶
Constants ¶
View Source
const ( RTCP_SR = 200 RTCP_RR = 201 RTCP_SDES = 202 RTCP_BYE = 203 RTCP_APP = 204 )
Variables ¶
This section is empty.
Functions ¶
func ListenAndServe ¶
Types ¶
type RtcpHeader ¶
type RtcpRRPacket ¶
type RtcpRRPacket struct { }
type RtcpSRPacket ¶
type RtcpSRPacket struct { }
type RtpHeader ¶
type RtpHeader struct { V byte //2bit,版本号,0x2 P byte //1bit,填充标志,值为0 X byte //1bit,扩充标识,值为0 CC byte //4bit,CSRC计数,值为0 M byte //1bit,标识位 PT byte //载荷类型 7bit Seq uint16 //序列号 Timestamp uint32 //时间戳 SSRC uint32 //同步源标识符 }
func NewRtpHeader ¶
type RtpPacket ¶
type RtpSession ¶
type RtpSession struct {
// contains filtered or unexported fields
}
func NewRtpSession ¶
func NewRtpSession(conn *net.UDPConn) *RtpSession
func (*RtpSession) Send ¶
func (s *RtpSession) Send(packet *RtpPacket) error
Click to show internal directories.
Click to hide internal directories.