obsws

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetHost() string
	ListScenes(ctx context.Context) ([]Scene, error)
	MoveSceneToNext(ctx context.Context) error
	GetRemainingTimeOnCurrentScene(ctx context.Context) (*DurationAndCursor, error)
}

func NewObsWebSocketClient

func NewObsWebSocketClient(host, password string) (Client, error)

type ClientImpl

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

func (*ClientImpl) GetHost

func (c *ClientImpl) GetHost() string

func (*ClientImpl) GetRemainingTimeOnCurrentScene

func (c *ClientImpl) GetRemainingTimeOnCurrentScene(ctx context.Context) (*DurationAndCursor, error)

func (*ClientImpl) ListScenes

func (c *ClientImpl) ListScenes(ctx context.Context) ([]Scene, error)

ListScenes is output list of scenes. It is sorted order by as shown in OBS.

func (*ClientImpl) MoveSceneToNext

func (c *ClientImpl) MoveSceneToNext(ctx context.Context) error

type DurationAndCursor

type DurationAndCursor struct {
	DurationMilliSecond float64
	CursorMilliSecond   float64
}

type Scene

type Scene struct {
	Name             string
	SceneIndex       int
	IsCurrentProgram bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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