Documentation ¶
Index ¶
- Constants
- type Backend
- type Builtin
- type LibVLC
- func (*LibVLC) Close(ctx context.Context) error
- func (*LibVLC) EndChan(ctx context.Context) (<-chan struct{}, error)
- func (p *LibVLC) GetLength(ctx context.Context) (time.Duration, error)
- func (p *LibVLC) GetLink(ctx context.Context) (string, error)
- func (*LibVLC) GetPause(ctx context.Context) (bool, error)
- func (p *LibVLC) GetPosition(ctx context.Context) (time.Duration, error)
- func (*LibVLC) GetSpeed(ctx context.Context) (float64, error)
- func (*LibVLC) IsEnded(ctx context.Context) (bool, error)
- func (*LibVLC) OpenURL(ctx context.Context, link string) error
- func (p *LibVLC) ProcessTitle(ctx context.Context) (string, error)
- func (*LibVLC) SetPause(ctx context.Context, pause bool) error
- func (*LibVLC) SetSpeed(ctx context.Context, speed float64) error
- func (*LibVLC) SetupForStreaming(ctx context.Context) error
- func (*LibVLC) Stop(ctx context.Context) error
- type MPV
- func (p *MPV) Close(ctx context.Context) (_err error)
- func (p *MPV) EndChan(ctx context.Context) (<-chan struct{}, error)
- func (p *MPV) GetDisplayScale(ctx context.Context) (float64, error)
- func (p *MPV) GetLength(ctx context.Context) (time.Duration, error)
- func (p *MPV) GetLink(ctx context.Context) (string, error)
- func (p *MPV) GetPause(ctx context.Context) (bool, error)
- func (p *MPV) GetPosition(ctx context.Context) (time.Duration, error)
- func (p *MPV) GetSpeed(ctx context.Context) (float64, error)
- func (p *MPV) IsEnded(ctx context.Context) (bool, error)
- func (p *MPV) OpenURL(ctx context.Context, link string) error
- func (p *MPV) Quit(ctx context.Context, exitCode uint8) error
- func (p *MPV) SetDisplayScale(ctx context.Context, scale float64) error
- func (p *MPV) SetPause(ctx context.Context, pause bool) error
- func (p *MPV) SetSpeed(ctx context.Context, speed float64) error
- func (p *MPV) SetupForStreaming(ctx context.Context) (_err error)
- func (p *MPV) Stop(ctx context.Context) error
- type Manager
- func (m *Manager) NewBuiltin(ctx context.Context, title string) (*Builtin, error)
- func (*Manager) NewLibVLC(ctx context.Context, title string) (*LibVLC, error)
- func (m *Manager) NewMPV(ctx context.Context, title string) (*MPV, error)
- func (m *Manager) NewPlayer(ctx context.Context, title string, backend Backend) (Player, error)
- func (m *Manager) SupportedBackends() []Backend
- type Player
- type PlayerCommon
Constants ¶
View Source
const ( BackendUndefined = types.BackendUndefined BackendLibVLC = types.BackendLibVLC BackendMPV = types.BackendMPV BackendBuiltin = types.BackendBuiltin )
View Source
const SupportedBuiltin = true
View Source
const SupportedLibVLC = false
View Source
const SupportedMPV = true
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
func SupportedBackends ¶
func SupportedBackends() []Backend
type MPV ¶
type MPV struct { PlayerCommon PathToMPV string SocketPath string Cmd *exec.Cmd IPCClient *mpv.IPCClient MPVClient *mpv.Client MPVConn *mpvipc.Connection CancelFunc context.CancelFunc EndChInitialized bool EndChMutex xsync.Mutex EndCh chan struct{} OpenLinkOnRerun string // contains filtered or unexported fields }
func (*MPV) SetDisplayScale ¶
func (*MPV) SetupForStreaming ¶
type Manager ¶
func NewManager ¶
func (*Manager) NewBuiltin ¶
func (*Manager) SupportedBackends ¶
type PlayerCommon ¶
type PlayerCommon = types.PlayerCommon
Click to show internal directories.
Click to hide internal directories.