Documentation ¶
Index ¶
- type ClientSession
- func (tis *ClientSession) Close(cause error)
- func (tis *ClientSession) CreateOffer(offer *rtcsdp.Session)
- func (tis *ClientSession) GetReceiveStreamMuxer() streammuxer.StreamMuxer
- func (tis *ClientSession) GetReceiver() []*track.Receiver
- func (tis *ClientSession) GetSender() []*track.Sender
- func (tis *ClientSession) OnOrderPacketRTP(cb func(value *OrderPacketRTP))
- func (tis *ClientSession) OnPacketRTP(cb func(value *OrderPacketRTP))
- func (tis *ClientSession) Open() error
- func (tis *ClientSession) PacketNTP(pkt *rtp.Packet) (time.Time, bool)
- func (tis *ClientSession) PacketPTS(pkt *rtp.Packet) (time.Duration, bool)
- func (tis *ClientSession) PacketPTSAndNTP(r *track.Receiver, pkt *rtp.Packet) PacketTime
- func (tis *ClientSession) ParsePacket(data []byte) ([]rtcp.Packet, *rtp.Packet, error)
- func (tis *ClientSession) ReadPacketRTCP(packets []rtcp.Packet, addr net.Addr)
- func (tis *ClientSession) ReadPacketRTP(pkt *rtp.Packet, addr net.Addr)
- func (tis *ClientSession) SetRemoteAnswer(answer *rtcsdp.Session)
- func (tis *ClientSession) Wait() error
- func (tis *ClientSession) WritePacketRTP(pkt *rtp.Packet, ntp time.Time) error
- type OrderPacketRTP
- type PacketTime
- type RtcConnection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientSession ¶
type ClientSession struct {
// contains filtered or unexported fields
}
func NewClientSession ¶
func NewClientSession(writer track.RtpRtcpWriter) *ClientSession
func (*ClientSession) Close ¶
func (tis *ClientSession) Close(cause error)
func (*ClientSession) CreateOffer ¶
func (tis *ClientSession) CreateOffer(offer *rtcsdp.Session)
CreateOffer [1] offer
func (*ClientSession) GetReceiveStreamMuxer ¶
func (tis *ClientSession) GetReceiveStreamMuxer() streammuxer.StreamMuxer
GetReceiveStreamMuxer 流路由, 发送流/接收流
func (*ClientSession) GetReceiver ¶
func (tis *ClientSession) GetReceiver() []*track.Receiver
func (*ClientSession) GetSender ¶
func (tis *ClientSession) GetSender() []*track.Sender
func (*ClientSession) OnOrderPacketRTP ¶
func (tis *ClientSession) OnOrderPacketRTP(cb func(value *OrderPacketRTP))
OnOrderPacketRTP [3] 接收有序rtp包
func (*ClientSession) OnPacketRTP ¶
func (tis *ClientSession) OnPacketRTP(cb func(value *OrderPacketRTP))
OnPacketRTP 接收网络rtp包(udp可能乱序)
func (*ClientSession) PacketPTSAndNTP ¶
func (tis *ClientSession) PacketPTSAndNTP(r *track.Receiver, pkt *rtp.Packet) PacketTime
PacketPTSAndNTP 获取数据包的pts/ntp
func (*ClientSession) ParsePacket ¶
ParsePacket 解析packet
func (*ClientSession) ReadPacketRTCP ¶
func (tis *ClientSession) ReadPacketRTCP(packets []rtcp.Packet, addr net.Addr)
ReadPacketRTCP 接收到rtcp包
func (*ClientSession) ReadPacketRTP ¶
func (tis *ClientSession) ReadPacketRTP(pkt *rtp.Packet, addr net.Addr)
ReadPacketRTP [5] 接收到rtp包
func (*ClientSession) SetRemoteAnswer ¶
func (tis *ClientSession) SetRemoteAnswer(answer *rtcsdp.Session)
SetRemoteAnswer [2] answer
func (*ClientSession) Wait ¶
func (tis *ClientSession) Wait() error
func (*ClientSession) WritePacketRTP ¶
WritePacketRTP [5] 发送rtp包
type OrderPacketRTP ¶
type OrderPacketRTP struct { PacketTime Packet *rtp.Packet Receiver *track.Receiver }
type RtcConnection ¶
type RtcConnection struct {
// contains filtered or unexported fields
}
func NewRtcConnection ¶
func NewRtcConnection(reader track.RtpRtcpReader) *RtcConnection
func (*RtcConnection) Close ¶
func (tis *RtcConnection) Close(cause error)
Click to show internal directories.
Click to hide internal directories.