rtpconn

package
v0.0.0-...-0c36166 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 32 Imported by: 0

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")

Functions

func StartClient

func StartClient(conn *websocket.Conn) (err error)

Types

type WhipClient

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

func NewWhipClient

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

func (*WhipClient) Close

func (c *WhipClient) Close() error

func (*WhipClient) Data

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

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) 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) SetPermissions

func (c *WhipClient) SetPermissions(perms []string)

func (*WhipClient) SetUsername

func (c *WhipClient) SetUsername(username string)

func (*WhipClient) Token

func (c *WhipClient) Token() string

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