rtssession

package
v0.0.0-...-e0b6167 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerSessionPacket

type ServerSessionPacket struct {
	// contains filtered or unexported fields
}

func NewServerSessionPacket

func NewServerSessionPacket(mediaPath string, mux streammuxer.StreamMuxer, writer track.RtpRtcpWriter) *ServerSessionPacket

func (*ServerSessionPacket) Close

func (tis *ServerSessionPacket) Close(cause error)

func (*ServerSessionPacket) OnOffer

func (tis *ServerSessionPacket) OnOffer(offer *rtcsdp.Session)

func (*ServerSessionPacket) WriteRTCP

func (tis *ServerSessionPacket) WriteRTCP(pkt []rtcp.Packet, addr net.Addr) error

WriteRTCP 实现接口 track.RtpRtcpWriter

func (*ServerSessionPacket) WriteRTP

func (tis *ServerSessionPacket) WriteRTP(pkt *rtp.Packet, addr net.Addr) error

WriteRTP 实现接口 track.RtpRtcpWriter

type ServerSessionRTP

type ServerSessionRTP struct {
	// contains filtered or unexported fields
}

ServerSessionRTP 绑定一个客户端连接(拉流/推流/双向流)

func NewServerSessionRTP

func NewServerSessionRTP(mediaPath string, mux streammuxer.StreamMuxer, writer track.RtpRtcpWriter) *ServerSessionRTP

func (*ServerSessionRTP) Close

func (tis *ServerSessionRTP) Close(cause error)

func (*ServerSessionRTP) OnOffer

func (tis *ServerSessionRTP) OnOffer(offer *rtcsdp.Session)

func (*ServerSessionRTP) SetRemoteAddr

func (tis *ServerSessionRTP) SetRemoteAddr(addr net.Addr)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL