backend

package
v0.0.0-...-b65b91e Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	Init(path string, additionalArgs []string) error
	Teardown()
	Play(path string) error
	Pause() error
	Stop() error
	Seek(value int) error
}

func New

func New(config *cfg.Config) (Backend, error)

type MpvBackend

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

func (*MpvBackend) Init

func (m *MpvBackend) Init(path string, additionalArgs []string) error

func (*MpvBackend) Pause

func (m *MpvBackend) Pause() error

func (*MpvBackend) Play

func (m *MpvBackend) Play(path string) error

func (*MpvBackend) Seek

func (m *MpvBackend) Seek(value int) error

func (*MpvBackend) Stop

func (m *MpvBackend) Stop() error

func (*MpvBackend) Teardown

func (m *MpvBackend) Teardown()

Jump to

Keyboard shortcuts

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