moqtrelay

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGroupReader

func NewGroupReader(buf GroupBuffer) moqt.GroupReader

Types

type GroupBuffer

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

func NewGroupBuffer

func NewGroupBuffer(seq moqt.GroupSequence, buf []byte) GroupBuffer

func (*GroupBuffer) Close

func (w *GroupBuffer) Close() error

func (*GroupBuffer) GroupSequence

func (g *GroupBuffer) GroupSequence() moqt.GroupSequence

func (*GroupBuffer) Read

func (r *GroupBuffer) Read(buf []byte) (int, error)

func (*GroupBuffer) ReadFrame

func (r *GroupBuffer) ReadFrame() ([]byte, error)

func (*GroupBuffer) Write

func (w *GroupBuffer) Write(buf []byte) (int, error)

func (*GroupBuffer) WriteFrame

func (w *GroupBuffer) WriteFrame(frame []byte) error

type RelayManager

type RelayManager interface {
	RelayAnnouncements(moqt.Session, moqt.AnnounceConfig) error

	/*
	 * Serve subscription to the relay manager
	 */
	RelayTrack(moqt.Session, moqt.SubscribeConfig) error

	TrackManager
}

func NewRelayManager

func NewRelayManager() RelayManager

type TrackBuffer

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

func NewTrackBuffer

func NewTrackBuffer(subscription moqt.SubscribeConfig) *TrackBuffer

func (*TrackBuffer) AddGroup

func (t *TrackBuffer) AddGroup(g GroupBuffer) error

func (*TrackBuffer) RemoveGroup

func (t *TrackBuffer) RemoveGroup(seq moqt.GroupSequence)

type TrackManager

type TrackManager interface {
	//
	ServeAnnouncements([]moqt.Announcement) error

	ServeTrack(moqt.SubscribeConfig, *TrackBuffer) error
}

Jump to

Keyboard shortcuts

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