models

package
v0.6.13 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultChannelCount = 2
	OpusSampleRate      = 48000
	OpusFrameDurationMs = 20
	OpusPayloadType     = 111
	VP8PayloadType      = 100
)

Variables

View Source
var (
	ErrConnectionExists   = errors.New("gotgcall: call already exists for chat")
	ErrConnectionNotFound = errors.New("gotgcall: no call for chat")
	ErrConnectionTimeout  = errors.New("gotgcall: ICE/DTLS timeout")
	ErrConnectionFailed   = errors.New("gotgcall: ICE failed permanently")
	ErrInvalidParams      = errors.New("gotgcall: malformed telegram params")
	ErrFFmpegSpawn        = errors.New("gotgcall: ffmpeg failed to start")
	ErrFFmpegCrashed      = errors.New("gotgcall: ffmpeg exited non-zero")
	ErrFile               = errors.New("gotgcall: input file unreadable")
	ErrClosed             = errors.New("gotgcall: client closed")
	ErrInternal           = errors.New("gotgcall: internal error")
	ErrNotConnected       = errors.New("gotgcall: call not connected")
	ErrWrongMode          = errors.New("gotgcall: operation not valid for call mode")
)

Functions

This section is empty.

Types

type CallInfo

type CallInfo struct {
	CaptureTimeMs uint64
}

type ConnState

type ConnState int
const (
	Connecting ConnState = iota
	Connected
	Disconnected
	Failed
	Closed
	Timeout
)

func (ConnState) String

func (s ConnState) String() string

type Device

type Device int
const (
	Microphone Device = iota
	Camera
)

func (Device) String

func (d Device) String() string

type MediaState

type MediaState struct {
	Muted        bool
	Paused       bool
	VideoStopped bool
}

type NetworkInfo

type NetworkInfo struct {
	State ConnState
}

type StreamType

type StreamType int
const (
	Audio StreamType = iota
	Video
)

func (StreamType) String

func (s StreamType) String() string

Jump to

Keyboard shortcuts

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