Documentation
¶
Index ¶
- Variables
- func CheckPlugins(config plugins.Config) error
- func Close()
- func DelRouter(id string)
- func InitIce(iceServers []webrtc.ICEServer, icePortStart, icePortEnd uint16) error
- func InitPlugins(config plugins.Config)
- func InitRTP(port int, kcpKey, kcpSalt string) error
- func MapRouter(fn func(id string, r *Router))
- type Router
- func (r *Router) AddPub(id string, t transport.Transport) transport.Transport
- func (r *Router) AddSub(id string, t transport.Transport) transport.Transport
- func (r *Router) Alive() bool
- func (r *Router) Close()
- func (r *Router) DelPub()
- func (r *Router) DelSub(id string)
- func (r *Router) DelSubs()
- func (r *Router) GetPub() transport.Transport
- func (r *Router) GetSub(id string) transport.Transport
- func (r *Router) GetSubs() map[string]transport.Transport
- func (r *Router) HasNoneSub() bool
- func (r *Router) InitPlugins(config plugins.Config) error
- func (r *Router) ReSendRTP(sid string, ssrc uint32, sn uint16) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //CleanChannel return the dead pub's mid CleanChannel = make(chan string, maxCleanSize) )
Functions ¶
func CheckPlugins ¶ added in v0.2.0
CheckPlugins plugins config
func InitPlugins ¶ added in v0.2.0
InitPlugins plugins config
Types ¶
type Router ¶ added in v0.2.0
type Router struct {
// contains filtered or unexported fields
}
+--->sub |
pub--->pubCh-->pluginChain-->subCh---+--->sub
| +--->sub
Router is rtp router
func GetOrNewRouter ¶ added in v0.2.0
func (*Router) HasNoneSub ¶ added in v0.2.0
HasNoneSub check if sub == 0
func (*Router) InitPlugins ¶ added in v0.2.0
Directories
¶
Path | Synopsis |
---|---|
deadline
Package deadline provides deadline timer used to implement net.Conn compatible connection
|
Package deadline provides deadline timer used to implement net.Conn compatible connection |
udp
Package udp provides a connection-oriented listener over a UDP PacketConn
|
Package udp provides a connection-oriented listener over a UDP PacketConn |
Click to show internal directories.
Click to hide internal directories.