rtpconn

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 43 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrClientDead = errors.New("client is dead")
View Source
var ErrRateLimited = errors.New("rate limited")
View Source
var ErrUnknownId = errors.New("unknown id")
View Source
var ErrUnknownTrack = errors.New("unknown track")
View Source
var ErrUnsupportedFeedback = errors.New("unsupported feedback type")
View Source
var ErrUserMismatch = errors.New("user id mismatch")
View Source
var ErrWriterBusy = errors.New("writer is busy")
View Source
var ErrWriterDead = errors.New("writer is dead")
View Source
var LogConnections bool

LogConnections turns the connection log on.

Functions

func StartClient

func StartClient(conn *websocket.Conn, addr net.Addr) (err error)

Types

type WhipClient

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

func NewWhipClient

func NewWhipClient(g *group.Group, id string, token string, addr net.Addr) *WhipClient

func (*WhipClient) Addr

func (c *WhipClient) Addr() net.Addr

func (*WhipClient) Close

func (c *WhipClient) Close() error

func (*WhipClient) Data

func (c *WhipClient) Data() map[string]interface{}

func (*WhipClient) ETag

func (c *WhipClient) ETag() string

func (*WhipClient) GotICECandidate

func (c *WhipClient) GotICECandidate(init webrtc.ICECandidateInit) error

func (*WhipClient) GotOffer

func (c *WhipClient) GotOffer(ctx context.Context, offer []byte) ([]byte, error)

func (*WhipClient) Group

func (c *WhipClient) Group() *group.Group

func (*WhipClient) Id

func (c *WhipClient) Id() string

func (*WhipClient) Init

func (c *WhipClient) Init(username string, perms []string)

func (*WhipClient) Joined

func (c *WhipClient) Joined(group, kind string) error

func (*WhipClient) Kick

func (c *WhipClient) Kick(id string, user *string, message string) error

func (*WhipClient) NewConnection

func (c *WhipClient) NewConnection(ctx context.Context, offer []byte) ([]byte, error)

func (*WhipClient) Permissions

func (c *WhipClient) Permissions() []string

func (*WhipClient) PushClient

func (c *WhipClient) PushClient(group, kind, id, username string, permissions []string, status map[string]interface{}) error

func (*WhipClient) PushConn

func (c *WhipClient) PushConn(g *group.Group, id string, conn conn.Up, tracks []conn.UpTrack, replace string) error

func (*WhipClient) RequestConns

func (c *WhipClient) RequestConns(target group.Client, g *group.Group, id string) error

func (*WhipClient) Restart

func (c *WhipClient) Restart(ctx context.Context, frag sdpfrag.SDPFrag) (sdpfrag.SDPFrag, error)

func (*WhipClient) SetETag

func (c *WhipClient) SetETag(etag string)

func (*WhipClient) Token

func (c *WhipClient) Token() string

func (*WhipClient) UFragPwd

func (c *WhipClient) UFragPwd() (string, string, error)

func (*WhipClient) Username

func (c *WhipClient) Username() string

Jump to

Keyboard shortcuts

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