video

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Name  string
	Value interface{}
}

type MPVPlayer

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

func (*MPVPlayer) IsPlaying

func (m *MPVPlayer) IsPlaying() bool

func (*MPVPlayer) Listener

func (m *MPVPlayer) Listener() chan Event

func (*MPVPlayer) Pause

func (m *MPVPlayer) Pause() error

func (*MPVPlayer) Play

func (m *MPVPlayer) Play() error

func (*MPVPlayer) Progress

func (m *MPVPlayer) Progress() (int, error)

func (*MPVPlayer) Seek

func (m *MPVPlayer) Seek(seekTo int) error

func (*MPVPlayer) StartVideo

func (m *MPVPlayer) StartVideo(video string) error

type VideoPlayer

type VideoPlayer interface {
	StartVideo(string) error
	Pause() error
	Play() error
	Seek(int) error
	Progress() (int, error)
	IsPlaying() bool
	Listener() chan Event
}

func NewMPVPlayer

func NewMPVPlayer(filename string) VideoPlayer

Jump to

Keyboard shortcuts

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