cmd

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: Apache-2.0 Imports: 49 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CompanionAddr string
View Source
var Debug bool

Debug controls whether or not to enable debug level logging.

View Source
var Port string

Port to listen for OSC messages.

View Source
var ServerPort string

Port to listen for HTTP.

Functions

func ConnectIPC added in v0.2.3

func ConnectIPC(socketName string) (net.Conn, error)

func Execute

func Execute(v string)

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetIPCName added in v0.2.3

func GetIPCName() string

Types

type EmbeddedImage added in v0.2.13

type EmbeddedImage struct {
	DurationTicks    int64
	OriginalFilename string
	FilePath         string
	MimeType         string
	Hash             string
}

EmbeddedImage is media shipped inside the export zip (an image cue).

type Item added in v0.2.13

type Item struct {
	Position       int
	PlaylistItemID int64
	Label          string
	StartTrimTicks int64
	EndTrimTicks   int64
	EndAction      int
	ThumbnailPath  string
	Location       *Location
	Image          *EmbeddedImage
	Markers        []Marker
}

Item is a single cue in playback order.

func (Item) IsImage added in v0.2.13

func (i Item) IsImage() bool

IsImage reports whether the item is an image cue (embedded media) rather than a reference to published video.

type Lighting added in v0.2.12

type Lighting struct{}

func (*Lighting) ServeHTTP added in v0.2.12

func (l *Lighting) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Location added in v0.2.13

type Location struct {
	MajorMultimediaType int
	BaseDurationTicks   int64
	BookNumber          int64
	ChapterNumber       int64
	DocumentID          int64
	Track               int64
	KeySymbol           string
	MepsLanguage        int
	Type                int
}

Location identifies published media referenced from the publisher's catalog. Absent numeric columns are represented as zero; KeySymbol is empty when null.

type Marker added in v0.2.13

type Marker struct {
	Label                      string
	StartTimeTicks             int64
	DurationTicks              int64
	EndTransitionDurationTicks int64
}

Marker is a sub-clip range within a referenced video.

type MpvCommandId added in v0.2.4

type MpvCommandId int
const (
	Position MpvCommandId = iota
	PlaytimeRemaining
)

type Playlist added in v0.2.13

type Playlist struct {
	Name          string
	SchemaVersion int
	DatabaseName  string
	Items         []Item
}

Playlist is the ordered, parsed contents of a purple playlist export.

type Switcher added in v0.2.12

type Switcher struct{}

func (*Switcher) ServeHTTP added in v0.2.12

func (s *Switcher) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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