calls

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package calls renders PairUX video calls as truecolor ASCII in the terminal: `ssh video-<code>@host` joins directly, `ssh video@host` prompts for a code. Codes are minted by PairUX — the SSH surface never creates calls, it only joins existing ones.

LiveKit subscriber: joins a PairUX room, takes the first remote VP8 video track, remuxes RTP into IVF, and has ffmpeg decode + scale it into raw RGB24 frames sized for the terminal grid.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(s ssh.Session, code, identity string) error

Handle runs the call UI on the session. Standalone surface: leaving the call ends the SSH session.

func RouteCode

func RouteCode(username string) (string, bool)

RouteCode extracts the call code from an SSH username: "video" → "", "video-abc123" → "abc123". Second return is false when the username is not a video route at all.

Types

type Config

type Config struct {
	URL, Key, Secret string
}

Config is the LiveKit deployment shared with PairUX.

func ConfigFromEnv

func ConfigFromEnv() Config

ConfigFromEnv reads AGENTBBS_LIVEKIT_* with LIVEKIT_* fallbacks, matching PairUX's env shape (LIVEKIT_API_KEY / LIVEKIT_API_SECRET).

Jump to

Keyboard shortcuts

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