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") 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 MediaState ¶
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
Click to show internal directories.
Click to hide internal directories.