mpv

package module
v0.0.0-...-22ed61d Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2019 License: MIT Imports: 13 Imported by: 0

README

mpv

Package for controlling mpv using JSON IPC

I plan on using it for a different project but there has not been a lot of testing yet. I wrote some examples if you need help.

Check the mpv reference manual for a complete reference.

Here's a quick look at how to use it. More detail can be found in the examples directory:

// create context for shutting down mpv
ctx, cancel := context.WithCancel(context.Background())
defer cancel()

// start new mpv process and connect to it
client, err := mpv.NewClient(ctx, "/tmp/mpv-sock")
if err != nil {
	panic(err)
}
defer client.Close()

// use client to send commands to mpv
if v, err := client.Version(); err == nil {
	fmt.Println("version:", v)
}
// here we stop after we are done with mpv
cancel()

Documentation

Overview

Code generated by go generate; DO NOT EDIT. 2019-01-27 23:08:03.583769765 -0500 EST m=+0.008207642

Code generated by go generate; DO NOT EDIT. 2019-01-27 23:08:03.583425106 -0500 EST m=+0.007862972

Code generated by go generate; DO NOT EDIT. 2019-01-27 23:08:03.577051096 -0500 EST m=+0.001488989

Index

Constants

View Source
const WaitForOpen = 5 * time.Second

WaitForOpen is how we should wait for mpv to open

View Source
const WaitForReply = 5 * time.Second

WaitForReply is how long we should wait for mpv to reply

Variables

View Source
var AudioReconfig = make(chan struct{}, 1)

AudioReconfig is the channel for the 'audio-reconfig' event

View Source
var ClientMessage = make(chan struct{}, 1)

ClientMessage is the channel for the 'client-message' event

View Source
var Closed = make(chan struct{}, 1)

Closed recv when mpv after closed

View Source
var CommandReply = make(chan struct{}, 1)

CommandReply is the channel for the 'command-reply' event

View Source
var EndFile = make(chan struct{}, 1)

EndFile is the channel for the 'end-file' event

View Source
var FileLoaded = make(chan struct{}, 1)

FileLoaded is the channel for the 'file-loaded' event

View Source
var GetPropertyReply = make(chan struct{}, 1)

GetPropertyReply is the channel for the 'get-property-reply' event

View Source
var Idle = make(chan struct{}, 1)

Idle is the channel for the 'idle' event

View Source
var Log = func(string, ...interface{}) {}

Log function

View Source
var LogMessage = make(chan struct{}, 1)

LogMessage is the channel for the 'log-message' event

View Source
var PlaybackRestart = make(chan struct{}, 1)

PlaybackRestart is the channel for the 'playback-restart' event

View Source
var Seek = make(chan struct{}, 1)

Seek is the channel for the 'seek' event

View Source
var SetPropertyReply = make(chan struct{}, 1)

SetPropertyReply is the channel for the 'set-property-reply' event

View Source
var Shutdown = make(chan struct{}, 1)

Shutdown is the channel for the 'shutdown' event

View Source
var StartFile = make(chan struct{}, 1)

StartFile is the channel for the 'start-file' event

View Source
var Tick = make(chan struct{}, 1)

Tick is the channel for the 'tick' event

View Source
var VideoReconfig = make(chan struct{}, 1)

VideoReconfig is the channel for the 'video-reconfig' event

View Source
var WaitForExit = 2 * time.Second

WaitForExit is how long we should wait for mpv to close

Functions

This section is empty.

Types

type Client

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

Client controls mpv over unix socket

func NewClient

func NewClient(ctx context.Context, sockfn string) (client *Client, err error)

NewClient starts an mpv instance and establishes a connection to it over a unix socket the socket is removed if it already exists

func NewClientConnect

func NewClientConnect(ctx context.Context, sockfn string) (client *Client, err error)

NewClientConnect to an existing mpv player socket or wait until it is avaliable

func NewClientWithFlags

func NewClientWithFlags(ctx context.Context, sockfn string, newProcess bool, flags ...string) (client *Client, err error)

NewClientWithFlags starts and mpv with custom flags the socket is removed if it already exists

func (*Client) AbLoop

func (c *Client) AbLoop(params ...interface{}) error

AbLoop runs 'ab-loop' command

func (*Client) AbLoopA

func (c *Client) AbLoopA() (prop interface{}, err error)

AbLoopA gets 'ab-loop-a' property

func (*Client) AbLoopB

func (c *Client) AbLoopB() (prop interface{}, err error)

AbLoopB gets 'ab-loop-b' property

func (*Client) Add

func (c *Client) Add(params ...interface{}) error

Add runs 'add' command

func (*Client) AddFile

func (c *Client) AddFile(fn string) error

AddFile appends to playlist

func (*Client) Af

func (c *Client) Af(params ...interface{}) error

Af runs 'af' command

func (*Client) AfCommand

func (c *Client) AfCommand(params ...interface{}) error

AfCommand runs 'af-command' command

func (*Client) AfMetadata

func (c *Client) AfMetadata() (prop interface{}, err error)

AfMetadata gets 'af-metadata' property

func (*Client) Aid

func (c *Client) Aid() (prop interface{}, err error)

Aid gets 'aid' property

func (*Client) Angle

func (c *Client) Angle() (prop interface{}, err error)

Angle gets 'angle' property

func (*Client) ApplyProfile

func (c *Client) ApplyProfile(params ...interface{}) error

ApplyProfile runs 'apply-profile' command

func (*Client) AssForceMargins

func (c *Client) AssForceMargins() (prop interface{}, err error)

AssForceMargins gets 'ass-force-margins' property

func (*Client) AssStyleOverride

func (c *Client) AssStyleOverride() (prop interface{}, err error)

AssStyleOverride gets 'ass-style-override' property

func (*Client) AssVsfilterAspectCompat

func (c *Client) AssVsfilterAspectCompat() (prop interface{}, err error)

AssVsfilterAspectCompat gets 'ass-vsfilter-aspect-compat' property

func (*Client) Audio

func (c *Client) Audio() (prop interface{}, err error)

Audio gets 'audio' property

func (*Client) AudioAdd

func (c *Client) AudioAdd(params ...interface{}) error

AudioAdd runs 'audio-add' command

func (*Client) AudioBitrate

func (c *Client) AudioBitrate() (prop interface{}, err error)

AudioBitrate gets 'audio-bitrate' property

func (*Client) AudioChannels

func (c *Client) AudioChannels() (prop interface{}, err error)

AudioChannels gets 'audio-channels' property

func (*Client) AudioCodec

func (c *Client) AudioCodec() (prop interface{}, err error)

AudioCodec gets 'audio-codec' property

func (*Client) AudioCodecName

func (c *Client) AudioCodecName() (prop interface{}, err error)

AudioCodecName gets 'audio-codec-name' property

func (*Client) AudioDelay

func (c *Client) AudioDelay() (prop interface{}, err error)

AudioDelay gets 'audio-delay' property

func (*Client) AudioDevice

func (c *Client) AudioDevice() (prop interface{}, err error)

AudioDevice gets 'audio-device' property

func (*Client) AudioDeviceList

func (c *Client) AudioDeviceList() (prop interface{}, err error)

AudioDeviceList gets 'audio-device-list' property

func (*Client) AudioFormat

func (c *Client) AudioFormat() (prop interface{}, err error)

AudioFormat gets 'audio-format' property

func (*Client) AudioOutDetectedDevice

func (c *Client) AudioOutDetectedDevice() (prop interface{}, err error)

AudioOutDetectedDevice gets 'audio-out-detected-device' property

func (*Client) AudioOutParams

func (c *Client) AudioOutParams() (prop interface{}, err error)

AudioOutParams gets 'audio-out-params' property

func (*Client) AudioParams

func (c *Client) AudioParams() (prop interface{}, err error)

AudioParams gets 'audio-params' property

func (*Client) AudioReload

func (c *Client) AudioReload(params ...interface{}) error

AudioReload runs 'audio-reload' command

func (*Client) AudioRemove

func (c *Client) AudioRemove(params ...interface{}) error

AudioRemove runs 'audio-remove' command

func (*Client) AudioSamplerate

func (c *Client) AudioSamplerate() (prop interface{}, err error)

AudioSamplerate gets 'audio-samplerate' property

func (*Client) AudioSpeedCorrection

func (c *Client) AudioSpeedCorrection() (prop interface{}, err error)

AudioSpeedCorrection gets 'audio-speed-correction' property

func (*Client) Avsync

func (c *Client) Avsync() (prop interface{}, err error)

Avsync gets 'avsync' property

func (*Client) Balance

func (c *Client) Balance() (prop interface{}, err error)

Balance gets 'balance' property

func (*Client) Border

func (c *Client) Border() (prop interface{}, err error)

Border gets 'border' property

func (*Client) Brightness

func (c *Client) Brightness() (prop interface{}, err error)

Brightness gets 'brightness' property

func (*Client) Cache

func (c *Client) Cache() (prop interface{}, err error)

Cache gets 'cache' property

func (*Client) CacheBufferingState

func (c *Client) CacheBufferingState() (prop interface{}, err error)

CacheBufferingState gets 'cache-buffering-state' property

func (*Client) CacheFree

func (c *Client) CacheFree() (prop interface{}, err error)

CacheFree gets 'cache-free' property

func (*Client) CacheIdle

func (c *Client) CacheIdle() (prop interface{}, err error)

CacheIdle gets 'cache-idle' property

func (*Client) CacheSize

func (c *Client) CacheSize() (prop interface{}, err error)

CacheSize gets 'cache-size' property

func (*Client) CacheUsed

func (c *Client) CacheUsed() (prop interface{}, err error)

CacheUsed gets 'cache-used' property

func (*Client) ChangeList

func (c *Client) ChangeList(params ...interface{}) error

ChangeList runs 'change-list' command

func (*Client) Chapter

func (c *Client) Chapter() (prop interface{}, err error)

Chapter gets 'chapter' property

func (*Client) ChapterList

func (c *Client) ChapterList() (prop interface{}, err error)

ChapterList gets 'chapter-list' property

func (*Client) ChapterMetadata

func (c *Client) ChapterMetadata() (prop interface{}, err error)

ChapterMetadata gets 'chapter-metadata' property

func (*Client) Chapters

func (c *Client) Chapters() (prop interface{}, err error)

Chapters gets 'chapters' property

func (*Client) Clock

func (c *Client) Clock() (prop interface{}, err error)

Clock gets 'clock' property

func (*Client) Close

func (c *Client) Close() error

Close mpv client

func (*Client) Colormatrix

func (c *Client) Colormatrix() (prop interface{}, err error)

Colormatrix gets 'colormatrix' property

func (*Client) ColormatrixGamma

func (c *Client) ColormatrixGamma() (prop interface{}, err error)

ColormatrixGamma gets 'colormatrix-gamma' property

func (*Client) ColormatrixInputRange

func (c *Client) ColormatrixInputRange() (prop interface{}, err error)

ColormatrixInputRange gets 'colormatrix-input-range' property

func (*Client) ColormatrixPrimaries

func (c *Client) ColormatrixPrimaries() (prop interface{}, err error)

ColormatrixPrimaries gets 'colormatrix-primaries' property

func (*Client) Contrast

func (c *Client) Contrast() (prop interface{}, err error)

Contrast gets 'contrast' property

func (*Client) CoreIdle

func (c *Client) CoreIdle() (prop interface{}, err error)

CoreIdle gets 'core-idle' property

func (*Client) CurrentAo

func (c *Client) CurrentAo() (prop interface{}, err error)

CurrentAo gets 'current-ao' property

func (*Client) CurrentVo

func (c *Client) CurrentVo() (prop interface{}, err error)

CurrentVo gets 'current-vo' property

func (*Client) CursorAutohide

func (c *Client) CursorAutohide() (prop interface{}, err error)

CursorAutohide gets 'cursor-autohide' property

func (*Client) Cycle

func (c *Client) Cycle(params ...interface{}) error

Cycle runs 'cycle' command

func (*Client) CycleValues

func (c *Client) CycleValues(params ...interface{}) error

CycleValues runs 'cycle-values' command

func (*Client) DefineSection

func (c *Client) DefineSection(params ...interface{}) error

DefineSection runs 'define-section' command

func (*Client) Deinterlace

func (c *Client) Deinterlace() (prop interface{}, err error)

Deinterlace gets 'deinterlace' property

func (*Client) Demuxer

func (c *Client) Demuxer() (prop interface{}, err error)

Demuxer gets 'demuxer' property

func (*Client) DemuxerCacheDuration

func (c *Client) DemuxerCacheDuration() (prop interface{}, err error)

DemuxerCacheDuration gets 'demuxer-cache-duration' property

func (*Client) DemuxerCacheIdle

func (c *Client) DemuxerCacheIdle() (prop interface{}, err error)

DemuxerCacheIdle gets 'demuxer-cache-idle' property

func (*Client) DemuxerCacheTime

func (c *Client) DemuxerCacheTime() (prop interface{}, err error)

DemuxerCacheTime gets 'demuxer-cache-time' property

func (*Client) Dheight

func (c *Client) Dheight() (prop interface{}, err error)

Dheight gets 'dheight' property

func (*Client) DisableSection

func (c *Client) DisableSection(params ...interface{}) error

DisableSection runs 'disable-section' command

func (*Client) DiscTitle

func (c *Client) DiscTitle() (prop interface{}, err error)

DiscTitle gets 'disc-title' property

func (*Client) DiscTitleList

func (c *Client) DiscTitleList() (prop interface{}, err error)

DiscTitleList gets 'disc-title-list' property

func (*Client) DiscTitles

func (c *Client) DiscTitles() (prop interface{}, err error)

DiscTitles gets 'disc-titles' property

func (*Client) DisplayFps

func (c *Client) DisplayFps() (prop interface{}, err error)

DisplayFps gets 'display-fps' property

func (*Client) DisplayNames

func (c *Client) DisplayNames() (prop interface{}, err error)

DisplayNames gets 'display-names' property

func (*Client) DisplaySyncActive

func (c *Client) DisplaySyncActive() (prop interface{}, err error)

DisplaySyncActive gets 'display-sync-active' property

func (*Client) DropBuffers

func (c *Client) DropBuffers(params ...interface{}) error

DropBuffers runs 'drop-buffers' command

func (*Client) DropFrameCount

func (c *Client) DropFrameCount() (prop interface{}, err error)

DropFrameCount gets 'drop-frame-count' property

func (*Client) Duration

func (c *Client) Duration() (prop interface{}, err error)

Duration gets 'duration' property

func (*Client) DvbChannel

func (c *Client) DvbChannel() (prop interface{}, err error)

DvbChannel gets 'dvb-channel' property

func (*Client) Dwidth

func (c *Client) Dwidth() (prop interface{}, err error)

Dwidth gets 'dwidth' property

func (*Client) Edition

func (c *Client) Edition() (prop interface{}, err error)

Edition gets 'edition' property

func (*Client) EditionList

func (c *Client) EditionList() (prop interface{}, err error)

EditionList gets 'edition-list' property

func (*Client) Editions

func (c *Client) Editions() (prop interface{}, err error)

Editions gets 'editions' property

func (*Client) EnableSection

func (c *Client) EnableSection(params ...interface{}) error

EnableSection runs 'enable-section' command

func (*Client) EofReached

func (c *Client) EofReached() (prop interface{}, err error)

EofReached gets 'eof-reached' property

func (*Client) EstimatedDisplayFps

func (c *Client) EstimatedDisplayFps() (prop interface{}, err error)

EstimatedDisplayFps gets 'estimated-display-fps' property

func (*Client) EstimatedFrameCount

func (c *Client) EstimatedFrameCount() (prop interface{}, err error)

EstimatedFrameCount gets 'estimated-frame-count' property

func (*Client) EstimatedFrameNumber

func (c *Client) EstimatedFrameNumber() (prop interface{}, err error)

EstimatedFrameNumber gets 'estimated-frame-number' property

func (*Client) EstimatedVfFps

func (c *Client) EstimatedVfFps() (prop interface{}, err error)

EstimatedVfFps gets 'estimated-vf-fps' property

func (*Client) Execute

func (c *Client) Execute(name string, params ...interface{}) (chan Reply, error)

Execute sends a command over ipc. { "command": ["command_name", "param1", "param2", ...] }

func (*Client) ExpandText

func (c *Client) ExpandText(params ...interface{}) error

ExpandText runs 'expand-text' command

func (*Client) FfAid

func (c *Client) FfAid() (prop interface{}, err error)

FfAid gets 'ff-aid' property

func (*Client) FfSid

func (c *Client) FfSid() (prop interface{}, err error)

FfSid gets 'ff-sid' property

func (*Client) FfVid

func (c *Client) FfVid() (prop interface{}, err error)

FfVid gets 'ff-vid' property

func (*Client) FieldDominance

func (c *Client) FieldDominance() (prop interface{}, err error)

FieldDominance gets 'field-dominance' property

func (*Client) FileFormat

func (c *Client) FileFormat() (prop interface{}, err error)

FileFormat gets 'file-format' property

func (*Client) FileLocalOptions

func (c *Client) FileLocalOptions() (prop interface{}, err error)

FileLocalOptions gets 'file-local-options' property

func (*Client) FileSize

func (c *Client) FileSize() (prop interface{}, err error)

FileSize gets 'file-size' property

func (*Client) Filename

func (c *Client) Filename() (prop interface{}, err error)

Filename gets 'filename' property

func (*Client) FilteredMetadata

func (c *Client) FilteredMetadata() (prop interface{}, err error)

FilteredMetadata gets 'filtered-metadata' property

func (*Client) Fps

func (c *Client) Fps() (prop interface{}, err error)

Fps gets 'fps' property

func (*Client) FrameBackStep

func (c *Client) FrameBackStep(params ...interface{}) error

FrameBackStep runs 'frame-back-step' command

func (*Client) FrameStep

func (c *Client) FrameStep(params ...interface{}) error

FrameStep runs 'frame-step' command

func (*Client) Framedrop

func (c *Client) Framedrop() (prop interface{}, err error)

Framedrop gets 'framedrop' property

func (*Client) Fullscreen

func (c *Client) Fullscreen() (prop interface{}, err error)

Fullscreen gets 'fullscreen' property

func (*Client) Gamma

func (c *Client) Gamma() (prop interface{}, err error)

Gamma gets 'gamma' property

func (*Client) GetProperty

func (c *Client) GetProperty(name string) (prop interface{}, err error)

property getters

func (*Client) Height

func (c *Client) Height() (prop interface{}, err error)

Height gets 'height' property

func (*Client) HrSeek

func (c *Client) HrSeek() (prop interface{}, err error)

HrSeek gets 'hr-seek' property

func (*Client) Hue

func (c *Client) Hue() (prop interface{}, err error)

Hue gets 'hue' property

func (*Client) Hwdec

func (c *Client) Hwdec() (prop interface{}, err error)

Hwdec gets 'hwdec' property

func (*Client) HwdecActive

func (c *Client) HwdecActive() (prop interface{}, err error)

HwdecActive gets 'hwdec-active' property

func (*Client) HwdecDetected

func (c *Client) HwdecDetected() (prop interface{}, err error)

HwdecDetected gets 'hwdec-detected' property

func (*Client) Idle

func (c *Client) Idle() (prop interface{}, err error)

Idle gets 'idle' property

func (*Client) Ignore

func (c *Client) Ignore(params ...interface{}) error

Ignore runs 'ignore' command

func (*Client) Keydown

func (c *Client) Keydown(params ...interface{}) error

Keydown runs 'keydown' command

func (*Client) Keypress

func (c *Client) Keypress(params ...interface{}) error

Keypress runs 'keypress' command

func (*Client) Keyup

func (c *Client) Keyup(params ...interface{}) error

Keyup runs 'keyup' command

func (*Client) Kill

func (c *Client) Kill() error

Kill running mpv process

func (*Client) Length

func (c *Client) Length() (prop interface{}, err error)

Length gets 'length' property

func (*Client) LoadFile

func (c *Client) LoadFile(params ...interface{}) error

LoadFile runs 'loadfile' command

func (*Client) LoadList

func (c *Client) LoadList(params ...interface{}) error

LoadList runs 'loadlist' command

func (*Client) LoadScript

func (c *Client) LoadScript(params ...interface{}) error

LoadScript runs 'load-script' command

func (*Client) Loadfile

func (c *Client) Loadfile(params ...interface{}) error

Loadfile runs 'loadfile' command

func (*Client) Loadlist

func (c *Client) Loadlist(params ...interface{}) error

Loadlist runs 'loadlist' command

func (*Client) Loop

func (c *Client) Loop() (prop interface{}, err error)

Loop gets 'loop' property

func (*Client) LoopFile

func (c *Client) LoopFile() (prop interface{}, err error)

LoopFile gets 'loop-file' property

func (*Client) MediaTitle

func (c *Client) MediaTitle() (prop interface{}, err error)

MediaTitle gets 'media-title' property

func (*Client) Metadata

func (c *Client) Metadata() (prop interface{}, err error)

Metadata gets 'metadata' property

func (*Client) MistimedFrameCount

func (c *Client) MistimedFrameCount() (prop interface{}, err error)

MistimedFrameCount gets 'mistimed-frame-count' property

func (*Client) Mouse

func (c *Client) Mouse(params ...interface{}) error

Mouse runs 'mouse' command

func (*Client) MpvConfiguration

func (c *Client) MpvConfiguration() (prop interface{}, err error)

MpvConfiguration gets 'mpv-configuration' property

func (*Client) MpvVersion

func (c *Client) MpvVersion() (prop interface{}, err error)

MpvVersion gets 'mpv-version' property

func (*Client) Multiply

func (c *Client) Multiply(params ...interface{}) error

Multiply runs 'multiply' command

func (*Client) Mute

func (c *Client) Mute() (prop interface{}, err error)

Mute gets 'mute' property

func (*Client) OnAllWorkspaces

func (c *Client) OnAllWorkspaces() (prop interface{}, err error)

OnAllWorkspaces gets 'on-all-workspaces' property

func (*Client) Ontop

func (c *Client) Ontop() (prop interface{}, err error)

Ontop gets 'ontop' property

func (*Client) OptionInfo

func (c *Client) OptionInfo() (prop interface{}, err error)

OptionInfo gets 'option-info' property

func (*Client) Options

func (c *Client) Options() (prop interface{}, err error)

Options gets 'options' property

func (*Client) OsdAssCc

func (c *Client) OsdAssCc() (prop interface{}, err error)

OsdAssCc gets 'osd-ass-cc' property

func (*Client) OsdHeight

func (c *Client) OsdHeight() (prop interface{}, err error)

OsdHeight gets 'osd-height' property

func (*Client) OsdLevel

func (c *Client) OsdLevel() (prop interface{}, err error)

OsdLevel gets 'osd-level' property

func (*Client) OsdPar

func (c *Client) OsdPar() (prop interface{}, err error)

OsdPar gets 'osd-par' property

func (*Client) OsdScale

func (c *Client) OsdScale() (prop interface{}, err error)

OsdScale gets 'osd-scale' property

func (*Client) OsdSymCc

func (c *Client) OsdSymCc() (prop interface{}, err error)

OsdSymCc gets 'osd-sym-cc' property

func (*Client) OsdWidth

func (c *Client) OsdWidth() (prop interface{}, err error)

OsdWidth gets 'osd-width' property

func (*Client) OverlayAdd

func (c *Client) OverlayAdd(params ...interface{}) error

OverlayAdd runs 'overlay-add' command

func (*Client) OverlayRemove

func (c *Client) OverlayRemove(params ...interface{}) error

OverlayRemove runs 'overlay-remove' command

func (*Client) PacketAudioBitrate

func (c *Client) PacketAudioBitrate() (prop interface{}, err error)

PacketAudioBitrate gets 'packet-audio-bitrate' property

func (*Client) PacketSubBitrate

func (c *Client) PacketSubBitrate() (prop interface{}, err error)

PacketSubBitrate gets 'packet-sub-bitrate' property

func (*Client) PacketVideoBitrate

func (c *Client) PacketVideoBitrate() (prop interface{}, err error)

PacketVideoBitrate gets 'packet-video-bitrate' property

func (*Client) Panscan

func (c *Client) Panscan() (prop interface{}, err error)

Panscan gets 'panscan' property

func (*Client) PartiallySeekable

func (c *Client) PartiallySeekable() (prop interface{}, err error)

PartiallySeekable gets 'partially-seekable' property

func (*Client) Path

func (c *Client) Path() (prop interface{}, err error)

Path gets 'path' property

func (*Client) Pause

func (c *Client) Pause() (prop interface{}, err error)

Pause gets 'pause' property

func (*Client) PausedForCache

func (c *Client) PausedForCache() (prop interface{}, err error)

PausedForCache gets 'paused-for-cache' property

func (*Client) PercentPos

func (c *Client) PercentPos() (prop interface{}, err error)

PercentPos gets 'percent-pos' property

func (*Client) PlayFile

func (c *Client) PlayFile(fn string) error

PlayFile overwrites playlist with one file

func (*Client) PlaybackAbort

func (c *Client) PlaybackAbort() (prop interface{}, err error)

PlaybackAbort gets 'playback-abort' property

func (*Client) PlaybackTime

func (c *Client) PlaybackTime() (prop interface{}, err error)

PlaybackTime gets 'playback-time' property

func (*Client) Playlist

func (c *Client) Playlist() (prop interface{}, err error)

Playlist gets 'playlist' property

func (*Client) PlaylistClear

func (c *Client) PlaylistClear(params ...interface{}) error

PlaylistClear runs 'playlist-clear' command

func (*Client) PlaylistCount

func (c *Client) PlaylistCount() (prop interface{}, err error)

PlaylistCount gets 'playlist-count' property

func (*Client) PlaylistMove

func (c *Client) PlaylistMove(params ...interface{}) error

PlaylistMove runs 'playlist-move' command

func (*Client) PlaylistNext

func (c *Client) PlaylistNext(params ...interface{}) error

PlaylistNext runs 'playlist-next' command

func (*Client) PlaylistPos

func (c *Client) PlaylistPos() (prop interface{}, err error)

PlaylistPos gets 'playlist-pos' property

func (*Client) PlaylistPrev

func (c *Client) PlaylistPrev(params ...interface{}) error

PlaylistPrev runs 'playlist-prev' command

func (*Client) PlaylistRemove

func (c *Client) PlaylistRemove(params ...interface{}) error

PlaylistRemove runs 'playlist-remove' command

func (*Client) PlaylistShuffle

func (c *Client) PlaylistShuffle(params ...interface{}) error

PlaylistShuffle runs 'playlist-shuffle' command

func (*Client) PlaytimeRemaining

func (c *Client) PlaytimeRemaining() (prop interface{}, err error)

PlaytimeRemaining gets 'playtime-remaining' property

func (*Client) PrintText

func (c *Client) PrintText(params ...interface{}) error

PrintText runs 'print-text' command

func (*Client) Program

func (c *Client) Program() (prop interface{}, err error)

Program gets 'program' property

func (*Client) PropertyList

func (c *Client) PropertyList() (prop interface{}, err error)

PropertyList gets 'property-list' property

func (*Client) ProtocolList

func (c *Client) ProtocolList() (prop interface{}, err error)

ProtocolList gets 'protocol-list' property

func (*Client) Quit

func (c *Client) Quit(params ...interface{}) error

Quit runs 'quit' command

func (*Client) QuitWatchLater

func (c *Client) QuitWatchLater(params ...interface{}) error

QuitWatchLater runs 'quit-watch-later' command

func (*Client) RescanExternalFiles

func (c *Client) RescanExternalFiles(params ...interface{}) error

RescanExternalFiles runs 'rescan-external-files' command

func (*Client) RevertSeek

func (c *Client) RevertSeek(params ...interface{}) error

RevertSeek runs 'revert-seek' command

func (*Client) Run

func (c *Client) Run(params ...interface{}) error

Run runs 'run' command

func (*Client) Saturation

func (c *Client) Saturation() (prop interface{}, err error)

Saturation gets 'saturation' property

func (*Client) Screenshot

func (c *Client) Screenshot(params ...interface{}) error

Screenshot runs 'screenshot' command

func (*Client) ScreenshotRaw

func (c *Client) ScreenshotRaw(params ...interface{}) error

ScreenshotRaw runs 'screenshot-raw' command

func (*Client) ScreenshotToFile

func (c *Client) ScreenshotToFile(params ...interface{}) error

ScreenshotToFile runs 'screenshot-to-file' command

func (*Client) ScriptBinding

func (c *Client) ScriptBinding(params ...interface{}) error

ScriptBinding runs 'script-binding' command

func (*Client) ScriptMessage

func (c *Client) ScriptMessage(params ...interface{}) error

ScriptMessage runs 'script-message' command

func (*Client) ScriptMessageTo

func (c *Client) ScriptMessageTo(params ...interface{}) error

ScriptMessageTo runs 'script-message-to' command

func (*Client) SecondarySid

func (c *Client) SecondarySid() (prop interface{}, err error)

SecondarySid gets 'secondary-sid' property

func (*Client) Seek

func (c *Client) Seek(params ...interface{}) error

Seek runs 'seek' command

func (*Client) Seekable

func (c *Client) Seekable() (prop interface{}, err error)

Seekable gets 'seekable' property

func (*Client) Seeking

func (c *Client) Seeking() (prop interface{}, err error)

Seeking gets 'seeking' property

func (*Client) SendCommand

func (c *Client) SendCommand(name string, args ...interface{}) error

SendCommand using Execute then wait for a reply

func (*Client) Set

func (c *Client) Set(params ...interface{}) error

Set runs 'set' command

func (*Client) SetAbLoopA

func (c *Client) SetAbLoopA(value interface{}) error

SetAbLoopA sets 'ab-loop-a' property

func (*Client) SetAbLoopB

func (c *Client) SetAbLoopB(value interface{}) error

SetAbLoopB sets 'ab-loop-b' property

func (*Client) SetAfMetadata

func (c *Client) SetAfMetadata(value interface{}) error

SetAfMetadata sets 'af-metadata' property

func (*Client) SetAid

func (c *Client) SetAid(value interface{}) error

SetAid sets 'aid' property

func (*Client) SetAngle

func (c *Client) SetAngle(value interface{}) error

SetAngle sets 'angle' property

func (*Client) SetAssForceMargins

func (c *Client) SetAssForceMargins(value interface{}) error

SetAssForceMargins sets 'ass-force-margins' property

func (*Client) SetAssStyleOverride

func (c *Client) SetAssStyleOverride(value interface{}) error

SetAssStyleOverride sets 'ass-style-override' property

func (*Client) SetAssVsfilterAspectCompat

func (c *Client) SetAssVsfilterAspectCompat(value interface{}) error

SetAssVsfilterAspectCompat sets 'ass-vsfilter-aspect-compat' property

func (*Client) SetAudio

func (c *Client) SetAudio(value interface{}) error

SetAudio sets 'audio' property

func (*Client) SetAudioBitrate

func (c *Client) SetAudioBitrate(value interface{}) error

SetAudioBitrate sets 'audio-bitrate' property

func (*Client) SetAudioChannels

func (c *Client) SetAudioChannels(value interface{}) error

SetAudioChannels sets 'audio-channels' property

func (*Client) SetAudioCodec

func (c *Client) SetAudioCodec(value interface{}) error

SetAudioCodec sets 'audio-codec' property

func (*Client) SetAudioCodecName

func (c *Client) SetAudioCodecName(value interface{}) error

SetAudioCodecName sets 'audio-codec-name' property

func (*Client) SetAudioDelay

func (c *Client) SetAudioDelay(value interface{}) error

SetAudioDelay sets 'audio-delay' property

func (*Client) SetAudioDevice

func (c *Client) SetAudioDevice(value interface{}) error

SetAudioDevice sets 'audio-device' property

func (*Client) SetAudioDeviceList

func (c *Client) SetAudioDeviceList(value interface{}) error

SetAudioDeviceList sets 'audio-device-list' property

func (*Client) SetAudioFormat

func (c *Client) SetAudioFormat(value interface{}) error

SetAudioFormat sets 'audio-format' property

func (*Client) SetAudioOutDetectedDevice

func (c *Client) SetAudioOutDetectedDevice(value interface{}) error

SetAudioOutDetectedDevice sets 'audio-out-detected-device' property

func (*Client) SetAudioOutParams

func (c *Client) SetAudioOutParams(value interface{}) error

SetAudioOutParams sets 'audio-out-params' property

func (*Client) SetAudioParams

func (c *Client) SetAudioParams(value interface{}) error

SetAudioParams sets 'audio-params' property

func (*Client) SetAudioSamplerate

func (c *Client) SetAudioSamplerate(value interface{}) error

SetAudioSamplerate sets 'audio-samplerate' property

func (*Client) SetAudioSpeedCorrection

func (c *Client) SetAudioSpeedCorrection(value interface{}) error

SetAudioSpeedCorrection sets 'audio-speed-correction' property

func (*Client) SetAvsync

func (c *Client) SetAvsync(value interface{}) error

SetAvsync sets 'avsync' property

func (*Client) SetBalance

func (c *Client) SetBalance(value interface{}) error

SetBalance sets 'balance' property

func (*Client) SetBorder

func (c *Client) SetBorder(value interface{}) error

SetBorder sets 'border' property

func (*Client) SetBrightness

func (c *Client) SetBrightness(value interface{}) error

SetBrightness sets 'brightness' property

func (*Client) SetCache

func (c *Client) SetCache(value interface{}) error

SetCache sets 'cache' property

func (*Client) SetCacheBufferingState

func (c *Client) SetCacheBufferingState(value interface{}) error

SetCacheBufferingState sets 'cache-buffering-state' property

func (*Client) SetCacheFree

func (c *Client) SetCacheFree(value interface{}) error

SetCacheFree sets 'cache-free' property

func (*Client) SetCacheIdle

func (c *Client) SetCacheIdle(value interface{}) error

SetCacheIdle sets 'cache-idle' property

func (*Client) SetCacheSize

func (c *Client) SetCacheSize(value interface{}) error

SetCacheSize sets 'cache-size' property

func (*Client) SetCacheUsed

func (c *Client) SetCacheUsed(value interface{}) error

SetCacheUsed sets 'cache-used' property

func (*Client) SetChapter

func (c *Client) SetChapter(value interface{}) error

SetChapter sets 'chapter' property

func (*Client) SetChapterList

func (c *Client) SetChapterList(value interface{}) error

SetChapterList sets 'chapter-list' property

func (*Client) SetChapterMetadata

func (c *Client) SetChapterMetadata(value interface{}) error

SetChapterMetadata sets 'chapter-metadata' property

func (*Client) SetChapters

func (c *Client) SetChapters(value interface{}) error

SetChapters sets 'chapters' property

func (*Client) SetClock

func (c *Client) SetClock(value interface{}) error

SetClock sets 'clock' property

func (*Client) SetColormatrix

func (c *Client) SetColormatrix(value interface{}) error

SetColormatrix sets 'colormatrix' property

func (*Client) SetColormatrixGamma

func (c *Client) SetColormatrixGamma(value interface{}) error

SetColormatrixGamma sets 'colormatrix-gamma' property

func (*Client) SetColormatrixInputRange

func (c *Client) SetColormatrixInputRange(value interface{}) error

SetColormatrixInputRange sets 'colormatrix-input-range' property

func (*Client) SetColormatrixPrimaries

func (c *Client) SetColormatrixPrimaries(value interface{}) error

SetColormatrixPrimaries sets 'colormatrix-primaries' property

func (*Client) SetContrast

func (c *Client) SetContrast(value interface{}) error

SetContrast sets 'contrast' property

func (*Client) SetCoreIdle

func (c *Client) SetCoreIdle(value interface{}) error

SetCoreIdle sets 'core-idle' property

func (*Client) SetCurrentAo

func (c *Client) SetCurrentAo(value interface{}) error

SetCurrentAo sets 'current-ao' property

func (*Client) SetCurrentVo

func (c *Client) SetCurrentVo(value interface{}) error

SetCurrentVo sets 'current-vo' property

func (*Client) SetCursorAutohide

func (c *Client) SetCursorAutohide(value interface{}) error

SetCursorAutohide sets 'cursor-autohide' property

func (*Client) SetDeinterlace

func (c *Client) SetDeinterlace(value interface{}) error

SetDeinterlace sets 'deinterlace' property

func (*Client) SetDemuxer

func (c *Client) SetDemuxer(value interface{}) error

SetDemuxer sets 'demuxer' property

func (*Client) SetDemuxerCacheDuration

func (c *Client) SetDemuxerCacheDuration(value interface{}) error

SetDemuxerCacheDuration sets 'demuxer-cache-duration' property

func (*Client) SetDemuxerCacheIdle

func (c *Client) SetDemuxerCacheIdle(value interface{}) error

SetDemuxerCacheIdle sets 'demuxer-cache-idle' property

func (*Client) SetDemuxerCacheTime

func (c *Client) SetDemuxerCacheTime(value interface{}) error

SetDemuxerCacheTime sets 'demuxer-cache-time' property

func (*Client) SetDheight

func (c *Client) SetDheight(value interface{}) error

SetDheight sets 'dheight' property

func (*Client) SetDiscTitle

func (c *Client) SetDiscTitle(value interface{}) error

SetDiscTitle sets 'disc-title' property

func (*Client) SetDiscTitleList

func (c *Client) SetDiscTitleList(value interface{}) error

SetDiscTitleList sets 'disc-title-list' property

func (*Client) SetDiscTitles

func (c *Client) SetDiscTitles(value interface{}) error

SetDiscTitles sets 'disc-titles' property

func (*Client) SetDisplayFps

func (c *Client) SetDisplayFps(value interface{}) error

SetDisplayFps sets 'display-fps' property

func (*Client) SetDisplayNames

func (c *Client) SetDisplayNames(value interface{}) error

SetDisplayNames sets 'display-names' property

func (*Client) SetDisplaySyncActive

func (c *Client) SetDisplaySyncActive(value interface{}) error

SetDisplaySyncActive sets 'display-sync-active' property

func (*Client) SetDropFrameCount

func (c *Client) SetDropFrameCount(value interface{}) error

SetDropFrameCount sets 'drop-frame-count' property

func (*Client) SetDuration

func (c *Client) SetDuration(value interface{}) error

SetDuration sets 'duration' property

func (*Client) SetDvbChannel

func (c *Client) SetDvbChannel(value interface{}) error

SetDvbChannel sets 'dvb-channel' property

func (*Client) SetDwidth

func (c *Client) SetDwidth(value interface{}) error

SetDwidth sets 'dwidth' property

func (*Client) SetEdition

func (c *Client) SetEdition(value interface{}) error

SetEdition sets 'edition' property

func (*Client) SetEditionList

func (c *Client) SetEditionList(value interface{}) error

SetEditionList sets 'edition-list' property

func (*Client) SetEditions

func (c *Client) SetEditions(value interface{}) error

SetEditions sets 'editions' property

func (*Client) SetEofReached

func (c *Client) SetEofReached(value interface{}) error

SetEofReached sets 'eof-reached' property

func (*Client) SetEstimatedDisplayFps

func (c *Client) SetEstimatedDisplayFps(value interface{}) error

SetEstimatedDisplayFps sets 'estimated-display-fps' property

func (*Client) SetEstimatedFrameCount

func (c *Client) SetEstimatedFrameCount(value interface{}) error

SetEstimatedFrameCount sets 'estimated-frame-count' property

func (*Client) SetEstimatedFrameNumber

func (c *Client) SetEstimatedFrameNumber(value interface{}) error

SetEstimatedFrameNumber sets 'estimated-frame-number' property

func (*Client) SetEstimatedVfFps

func (c *Client) SetEstimatedVfFps(value interface{}) error

SetEstimatedVfFps sets 'estimated-vf-fps' property

func (*Client) SetFfAid

func (c *Client) SetFfAid(value interface{}) error

SetFfAid sets 'ff-aid' property

func (*Client) SetFfSid

func (c *Client) SetFfSid(value interface{}) error

SetFfSid sets 'ff-sid' property

func (*Client) SetFfVid

func (c *Client) SetFfVid(value interface{}) error

SetFfVid sets 'ff-vid' property

func (*Client) SetFieldDominance

func (c *Client) SetFieldDominance(value interface{}) error

SetFieldDominance sets 'field-dominance' property

func (*Client) SetFileFormat

func (c *Client) SetFileFormat(value interface{}) error

SetFileFormat sets 'file-format' property

func (*Client) SetFileLocalOptions

func (c *Client) SetFileLocalOptions(value interface{}) error

SetFileLocalOptions sets 'file-local-options' property

func (*Client) SetFileSize

func (c *Client) SetFileSize(value interface{}) error

SetFileSize sets 'file-size' property

func (*Client) SetFilename

func (c *Client) SetFilename(value interface{}) error

SetFilename sets 'filename' property

func (*Client) SetFilteredMetadata

func (c *Client) SetFilteredMetadata(value interface{}) error

SetFilteredMetadata sets 'filtered-metadata' property

func (*Client) SetFps

func (c *Client) SetFps(value interface{}) error

SetFps sets 'fps' property

func (*Client) SetFramedrop

func (c *Client) SetFramedrop(value interface{}) error

SetFramedrop sets 'framedrop' property

func (*Client) SetFullscreen

func (c *Client) SetFullscreen(value interface{}) error

SetFullscreen sets 'fullscreen' property

func (*Client) SetGamma

func (c *Client) SetGamma(value interface{}) error

SetGamma sets 'gamma' property

func (*Client) SetHeight

func (c *Client) SetHeight(value interface{}) error

SetHeight sets 'height' property

func (*Client) SetHrSeek

func (c *Client) SetHrSeek(value interface{}) error

SetHrSeek sets 'hr-seek' property

func (*Client) SetHue

func (c *Client) SetHue(value interface{}) error

SetHue sets 'hue' property

func (*Client) SetHwdec

func (c *Client) SetHwdec(value interface{}) error

SetHwdec sets 'hwdec' property

func (*Client) SetHwdecActive

func (c *Client) SetHwdecActive(value interface{}) error

SetHwdecActive sets 'hwdec-active' property

func (*Client) SetHwdecDetected

func (c *Client) SetHwdecDetected(value interface{}) error

SetHwdecDetected sets 'hwdec-detected' property

func (*Client) SetIdle

func (c *Client) SetIdle(value interface{}) error

SetIdle sets 'idle' property

func (*Client) SetLength

func (c *Client) SetLength(value interface{}) error

SetLength sets 'length' property

func (*Client) SetLoop

func (c *Client) SetLoop(value interface{}) error

SetLoop sets 'loop' property

func (*Client) SetLoopFile

func (c *Client) SetLoopFile(value interface{}) error

SetLoopFile sets 'loop-file' property

func (*Client) SetMediaTitle

func (c *Client) SetMediaTitle(value interface{}) error

SetMediaTitle sets 'media-title' property

func (*Client) SetMetadata

func (c *Client) SetMetadata(value interface{}) error

SetMetadata sets 'metadata' property

func (*Client) SetMistimedFrameCount

func (c *Client) SetMistimedFrameCount(value interface{}) error

SetMistimedFrameCount sets 'mistimed-frame-count' property

func (*Client) SetMpvConfiguration

func (c *Client) SetMpvConfiguration(value interface{}) error

SetMpvConfiguration sets 'mpv-configuration' property

func (*Client) SetMpvVersion

func (c *Client) SetMpvVersion(value interface{}) error

SetMpvVersion sets 'mpv-version' property

func (*Client) SetMute

func (c *Client) SetMute(value interface{}) error

SetMute sets 'mute' property

func (*Client) SetOnAllWorkspaces

func (c *Client) SetOnAllWorkspaces(value interface{}) error

SetOnAllWorkspaces sets 'on-all-workspaces' property

func (*Client) SetOntop

func (c *Client) SetOntop(value interface{}) error

SetOntop sets 'ontop' property

func (*Client) SetOptionInfo

func (c *Client) SetOptionInfo(value interface{}) error

SetOptionInfo sets 'option-info' property

func (*Client) SetOptions

func (c *Client) SetOptions(value interface{}) error

SetOptions sets 'options' property

func (*Client) SetOsdAssCc

func (c *Client) SetOsdAssCc(value interface{}) error

SetOsdAssCc sets 'osd-ass-cc' property

func (*Client) SetOsdHeight

func (c *Client) SetOsdHeight(value interface{}) error

SetOsdHeight sets 'osd-height' property

func (*Client) SetOsdLevel

func (c *Client) SetOsdLevel(value interface{}) error

SetOsdLevel sets 'osd-level' property

func (*Client) SetOsdPar

func (c *Client) SetOsdPar(value interface{}) error

SetOsdPar sets 'osd-par' property

func (*Client) SetOsdScale

func (c *Client) SetOsdScale(value interface{}) error

SetOsdScale sets 'osd-scale' property

func (*Client) SetOsdSymCc

func (c *Client) SetOsdSymCc(value interface{}) error

SetOsdSymCc sets 'osd-sym-cc' property

func (*Client) SetOsdWidth

func (c *Client) SetOsdWidth(value interface{}) error

SetOsdWidth sets 'osd-width' property

func (*Client) SetPacketAudioBitrate

func (c *Client) SetPacketAudioBitrate(value interface{}) error

SetPacketAudioBitrate sets 'packet-audio-bitrate' property

func (*Client) SetPacketSubBitrate

func (c *Client) SetPacketSubBitrate(value interface{}) error

SetPacketSubBitrate sets 'packet-sub-bitrate' property

func (*Client) SetPacketVideoBitrate

func (c *Client) SetPacketVideoBitrate(value interface{}) error

SetPacketVideoBitrate sets 'packet-video-bitrate' property

func (*Client) SetPanscan

func (c *Client) SetPanscan(value interface{}) error

SetPanscan sets 'panscan' property

func (*Client) SetPartiallySeekable

func (c *Client) SetPartiallySeekable(value interface{}) error

SetPartiallySeekable sets 'partially-seekable' property

func (*Client) SetPath

func (c *Client) SetPath(value interface{}) error

SetPath sets 'path' property

func (*Client) SetPause

func (c *Client) SetPause(value interface{}) error

SetPause sets 'pause' property

func (*Client) SetPausedForCache

func (c *Client) SetPausedForCache(value interface{}) error

SetPausedForCache sets 'paused-for-cache' property

func (*Client) SetPercentPos

func (c *Client) SetPercentPos(value interface{}) error

SetPercentPos sets 'percent-pos' property

func (*Client) SetPlaybackAbort

func (c *Client) SetPlaybackAbort(value interface{}) error

SetPlaybackAbort sets 'playback-abort' property

func (*Client) SetPlaybackTime

func (c *Client) SetPlaybackTime(value interface{}) error

SetPlaybackTime sets 'playback-time' property

func (*Client) SetPlaylist

func (c *Client) SetPlaylist(value interface{}) error

SetPlaylist sets 'playlist' property

func (*Client) SetPlaylistCount

func (c *Client) SetPlaylistCount(value interface{}) error

SetPlaylistCount sets 'playlist-count' property

func (*Client) SetPlaylistPos

func (c *Client) SetPlaylistPos(value interface{}) error

SetPlaylistPos sets 'playlist-pos' property

func (*Client) SetPlaytimeRemaining

func (c *Client) SetPlaytimeRemaining(value interface{}) error

SetPlaytimeRemaining sets 'playtime-remaining' property

func (*Client) SetProgram

func (c *Client) SetProgram(value interface{}) error

SetProgram sets 'program' property

func (*Client) SetProperty

func (c *Client) SetProperty(name string, value interface{}) (err error)

property setters

func (*Client) SetPropertyList

func (c *Client) SetPropertyList(value interface{}) error

SetPropertyList sets 'property-list' property

func (*Client) SetProtocolList

func (c *Client) SetProtocolList(value interface{}) error

SetProtocolList sets 'protocol-list' property

func (*Client) SetSaturation

func (c *Client) SetSaturation(value interface{}) error

SetSaturation sets 'saturation' property

func (*Client) SetSecondarySid

func (c *Client) SetSecondarySid(value interface{}) error

SetSecondarySid sets 'secondary-sid' property

func (*Client) SetSeekable

func (c *Client) SetSeekable(value interface{}) error

SetSeekable sets 'seekable' property

func (*Client) SetSeeking

func (c *Client) SetSeeking(value interface{}) error

SetSeeking sets 'seeking' property

func (*Client) SetSid

func (c *Client) SetSid(value interface{}) error

SetSid sets 'sid' property

func (*Client) SetSpeed

func (c *Client) SetSpeed(value interface{}) error

SetSpeed sets 'speed' property

func (*Client) SetStreamCapture

func (c *Client) SetStreamCapture(value interface{}) error

SetStreamCapture sets 'stream-capture' property

func (*Client) SetStreamEnd

func (c *Client) SetStreamEnd(value interface{}) error

SetStreamEnd sets 'stream-end' property

func (*Client) SetStreamOpenFilename

func (c *Client) SetStreamOpenFilename(value interface{}) error

SetStreamOpenFilename sets 'stream-open-filename' property

func (*Client) SetStreamPath

func (c *Client) SetStreamPath(value interface{}) error

SetStreamPath sets 'stream-path' property

func (*Client) SetStreamPos

func (c *Client) SetStreamPos(value interface{}) error

SetStreamPos sets 'stream-pos' property

func (*Client) SetSub

func (c *Client) SetSub(value interface{}) error

SetSub sets 'sub' property

func (*Client) SetSubBitrate

func (c *Client) SetSubBitrate(value interface{}) error

SetSubBitrate sets 'sub-bitrate' property

func (*Client) SetSubDelay

func (c *Client) SetSubDelay(value interface{}) error

SetSubDelay sets 'sub-delay' property

func (*Client) SetSubForcedOnly

func (c *Client) SetSubForcedOnly(value interface{}) error

SetSubForcedOnly sets 'sub-forced-only' property

func (*Client) SetSubPos

func (c *Client) SetSubPos(value interface{}) error

SetSubPos sets 'sub-pos' property

func (*Client) SetSubScale

func (c *Client) SetSubScale(value interface{}) error

SetSubScale sets 'sub-scale' property

func (*Client) SetSubUseMargins

func (c *Client) SetSubUseMargins(value interface{}) error

SetSubUseMargins sets 'sub-use-margins' property

func (*Client) SetSubVisibility

func (c *Client) SetSubVisibility(value interface{}) error

SetSubVisibility sets 'sub-visibility' property

func (*Client) SetTimePos

func (c *Client) SetTimePos(value interface{}) error

SetTimePos sets 'time-pos' property

func (*Client) SetTimeRemaining

func (c *Client) SetTimeRemaining(value interface{}) error

SetTimeRemaining sets 'time-remaining' property

func (*Client) SetTimeStart

func (c *Client) SetTimeStart(value interface{}) error

SetTimeStart sets 'time-start' property

func (*Client) SetTotalAvsyncChange

func (c *Client) SetTotalAvsyncChange(value interface{}) error

SetTotalAvsyncChange sets 'total-avsync-change' property

func (*Client) SetTrackList

func (c *Client) SetTrackList(value interface{}) error

SetTrackList sets 'track-list' property

func (*Client) SetTvBrightness

func (c *Client) SetTvBrightness(value interface{}) error

SetTvBrightness sets 'tv-brightness' property

func (*Client) SetTvChannel

func (c *Client) SetTvChannel(value interface{}) error

SetTvChannel sets 'tv-channel' property

func (*Client) SetTvContrast

func (c *Client) SetTvContrast(value interface{}) error

SetTvContrast sets 'tv-contrast' property

func (*Client) SetTvFreq

func (c *Client) SetTvFreq(value interface{}) error

SetTvFreq sets 'tv-freq' property

func (*Client) SetTvHue

func (c *Client) SetTvHue(value interface{}) error

SetTvHue sets 'tv-hue' property

func (*Client) SetTvNorm

func (c *Client) SetTvNorm(value interface{}) error

SetTvNorm sets 'tv-norm' property

func (*Client) SetTvSaturation

func (c *Client) SetTvSaturation(value interface{}) error

SetTvSaturation sets 'tv-saturation' property

func (*Client) SetTvScan

func (c *Client) SetTvScan(value interface{}) error

SetTvScan sets 'tv-scan' property

func (*Client) SetVfMetadata

func (c *Client) SetVfMetadata(value interface{}) error

SetVfMetadata sets 'vf-metadata' property

func (*Client) SetVid

func (c *Client) SetVid(value interface{}) error

SetVid sets 'vid' property

func (*Client) SetVideo

func (c *Client) SetVideo(value interface{}) error

SetVideo sets 'video' property

func (*Client) SetVideoAlignX

func (c *Client) SetVideoAlignX(value interface{}) error

SetVideoAlignX sets 'video-align-x' property

func (*Client) SetVideoAlignY

func (c *Client) SetVideoAlignY(value interface{}) error

SetVideoAlignY sets 'video-align-y' property

func (*Client) SetVideoAspect

func (c *Client) SetVideoAspect(value interface{}) error

SetVideoAspect sets 'video-aspect' property

func (*Client) SetVideoBitrate

func (c *Client) SetVideoBitrate(value interface{}) error

SetVideoBitrate sets 'video-bitrate' property

func (*Client) SetVideoCodec

func (c *Client) SetVideoCodec(value interface{}) error

SetVideoCodec sets 'video-codec' property

func (*Client) SetVideoFormat

func (c *Client) SetVideoFormat(value interface{}) error

SetVideoFormat sets 'video-format' property

func (*Client) SetVideoFrameInfo

func (c *Client) SetVideoFrameInfo(value interface{}) error

SetVideoFrameInfo sets 'video-frame-info' property

func (*Client) SetVideoOutParams

func (c *Client) SetVideoOutParams(value interface{}) error

SetVideoOutParams sets 'video-out-params' property

func (*Client) SetVideoOutputLevels

func (c *Client) SetVideoOutputLevels(value interface{}) error

SetVideoOutputLevels sets 'video-output-levels' property

func (*Client) SetVideoPanX

func (c *Client) SetVideoPanX(value interface{}) error

SetVideoPanX sets 'video-pan-x' property

func (*Client) SetVideoPanY

func (c *Client) SetVideoPanY(value interface{}) error

SetVideoPanY sets 'video-pan-y' property

func (*Client) SetVideoParams

func (c *Client) SetVideoParams(value interface{}) error

SetVideoParams sets 'video-params' property

func (*Client) SetVideoRotate

func (c *Client) SetVideoRotate(value interface{}) error

SetVideoRotate sets 'video-rotate' property

func (*Client) SetVideoSpeedCorrection

func (c *Client) SetVideoSpeedCorrection(value interface{}) error

SetVideoSpeedCorrection sets 'video-speed-correction' property

func (*Client) SetVideoUnscaled

func (c *Client) SetVideoUnscaled(value interface{}) error

SetVideoUnscaled sets 'video-unscaled' property

func (*Client) SetVideoZoom

func (c *Client) SetVideoZoom(value interface{}) error

SetVideoZoom sets 'video-zoom' property

func (*Client) SetVoConfigured

func (c *Client) SetVoConfigured(value interface{}) error

SetVoConfigured sets 'vo-configured' property

func (*Client) SetVoDelayedFrameCount

func (c *Client) SetVoDelayedFrameCount(value interface{}) error

SetVoDelayedFrameCount sets 'vo-delayed-frame-count' property

func (*Client) SetVoDropFrameCount

func (c *Client) SetVoDropFrameCount(value interface{}) error

SetVoDropFrameCount sets 'vo-drop-frame-count' property

func (*Client) SetVolume

func (c *Client) SetVolume(value interface{}) error

SetVolume sets 'volume' property

func (*Client) SetVolumeRestoreData

func (c *Client) SetVolumeRestoreData(value interface{}) error

SetVolumeRestoreData sets 'volume-restore-data' property

func (*Client) SetVsyncJitter

func (c *Client) SetVsyncJitter(value interface{}) error

SetVsyncJitter sets 'vsync-jitter' property

func (*Client) SetVsyncRatio

func (c *Client) SetVsyncRatio(value interface{}) error

SetVsyncRatio sets 'vsync-ratio' property

func (*Client) SetWidth

func (c *Client) SetWidth(value interface{}) error

SetWidth sets 'width' property

func (*Client) SetWindowMinimized

func (c *Client) SetWindowMinimized(value interface{}) error

SetWindowMinimized sets 'window-minimized' property

func (*Client) SetWindowScale

func (c *Client) SetWindowScale(value interface{}) error

SetWindowScale sets 'window-scale' property

func (*Client) SetWorkingDirectory

func (c *Client) SetWorkingDirectory(value interface{}) error

SetWorkingDirectory sets 'working-directory' property

func (*Client) ShowProgress

func (c *Client) ShowProgress(params ...interface{}) error

ShowProgress runs 'show-progress' command

func (*Client) ShowText

func (c *Client) ShowText(params ...interface{}) error

ShowText runs 'show-text' command

func (*Client) Sid

func (c *Client) Sid() (prop interface{}, err error)

Sid gets 'sid' property

func (*Client) Speed

func (c *Client) Speed() (prop interface{}, err error)

Speed gets 'speed' property

func (*Client) Stop

func (c *Client) Stop(params ...interface{}) error

Stop runs 'stop' command

func (*Client) StreamCapture

func (c *Client) StreamCapture() (prop interface{}, err error)

StreamCapture gets 'stream-capture' property

func (*Client) StreamEnd

func (c *Client) StreamEnd() (prop interface{}, err error)

StreamEnd gets 'stream-end' property

func (*Client) StreamOpenFilename

func (c *Client) StreamOpenFilename() (prop interface{}, err error)

StreamOpenFilename gets 'stream-open-filename' property

func (*Client) StreamPath

func (c *Client) StreamPath() (prop interface{}, err error)

StreamPath gets 'stream-path' property

func (*Client) StreamPos

func (c *Client) StreamPos() (prop interface{}, err error)

StreamPos gets 'stream-pos' property

func (*Client) Sub

func (c *Client) Sub() (prop interface{}, err error)

Sub gets 'sub' property

func (*Client) SubAdd

func (c *Client) SubAdd(params ...interface{}) error

SubAdd runs 'sub-add' command

func (*Client) SubBitrate

func (c *Client) SubBitrate() (prop interface{}, err error)

SubBitrate gets 'sub-bitrate' property

func (*Client) SubDelay

func (c *Client) SubDelay() (prop interface{}, err error)

SubDelay gets 'sub-delay' property

func (*Client) SubForcedOnly

func (c *Client) SubForcedOnly() (prop interface{}, err error)

SubForcedOnly gets 'sub-forced-only' property

func (*Client) SubPos

func (c *Client) SubPos() (prop interface{}, err error)

SubPos gets 'sub-pos' property

func (*Client) SubReload

func (c *Client) SubReload(params ...interface{}) error

SubReload runs 'sub-reload' command

func (*Client) SubRemove

func (c *Client) SubRemove(params ...interface{}) error

SubRemove runs 'sub-remove' command

func (*Client) SubScale

func (c *Client) SubScale() (prop interface{}, err error)

SubScale gets 'sub-scale' property

func (*Client) SubSeek

func (c *Client) SubSeek(params ...interface{}) error

SubSeek runs 'sub-seek' command

func (*Client) SubStep

func (c *Client) SubStep(params ...interface{}) error

SubStep runs 'sub-step' command

func (*Client) SubUseMargins

func (c *Client) SubUseMargins() (prop interface{}, err error)

SubUseMargins gets 'sub-use-margins' property

func (*Client) SubVisibility

func (c *Client) SubVisibility() (prop interface{}, err error)

SubVisibility gets 'sub-visibility' property

func (*Client) TimePos

func (c *Client) TimePos() (prop interface{}, err error)

TimePos gets 'time-pos' property

func (*Client) TimeRemaining

func (c *Client) TimeRemaining() (prop interface{}, err error)

TimeRemaining gets 'time-remaining' property

func (*Client) TimeStart

func (c *Client) TimeStart() (prop interface{}, err error)

TimeStart gets 'time-start' property

func (*Client) TotalAvsyncChange

func (c *Client) TotalAvsyncChange() (prop interface{}, err error)

TotalAvsyncChange gets 'total-avsync-change' property

func (*Client) TrackList

func (c *Client) TrackList() (prop interface{}, err error)

TrackList gets 'track-list' property

func (*Client) TvBrightness

func (c *Client) TvBrightness() (prop interface{}, err error)

TvBrightness gets 'tv-brightness' property

func (*Client) TvChannel

func (c *Client) TvChannel() (prop interface{}, err error)

TvChannel gets 'tv-channel' property

func (*Client) TvContrast

func (c *Client) TvContrast() (prop interface{}, err error)

TvContrast gets 'tv-contrast' property

func (*Client) TvFreq

func (c *Client) TvFreq() (prop interface{}, err error)

TvFreq gets 'tv-freq' property

func (*Client) TvHue

func (c *Client) TvHue() (prop interface{}, err error)

TvHue gets 'tv-hue' property

func (*Client) TvNorm

func (c *Client) TvNorm() (prop interface{}, err error)

TvNorm gets 'tv-norm' property

func (*Client) TvSaturation

func (c *Client) TvSaturation() (prop interface{}, err error)

TvSaturation gets 'tv-saturation' property

func (*Client) TvScan

func (c *Client) TvScan() (prop interface{}, err error)

TvScan gets 'tv-scan' property

func (*Client) Version

func (c *Client) Version() (version string, err error)

Version gets 'mpv-version' property

func (*Client) Vf

func (c *Client) Vf(params ...interface{}) error

Vf runs 'vf' command

func (*Client) VfCommand

func (c *Client) VfCommand(params ...interface{}) error

VfCommand runs 'vf-command' command

func (*Client) VfMetadata

func (c *Client) VfMetadata() (prop interface{}, err error)

VfMetadata gets 'vf-metadata' property

func (*Client) Vid

func (c *Client) Vid() (prop interface{}, err error)

Vid gets 'vid' property

func (*Client) Video

func (c *Client) Video() (prop interface{}, err error)

Video gets 'video' property

func (*Client) VideoAlignX

func (c *Client) VideoAlignX() (prop interface{}, err error)

VideoAlignX gets 'video-align-x' property

func (*Client) VideoAlignY

func (c *Client) VideoAlignY() (prop interface{}, err error)

VideoAlignY gets 'video-align-y' property

func (*Client) VideoAspect

func (c *Client) VideoAspect() (prop interface{}, err error)

VideoAspect gets 'video-aspect' property

func (*Client) VideoBitrate

func (c *Client) VideoBitrate() (prop interface{}, err error)

VideoBitrate gets 'video-bitrate' property

func (*Client) VideoCodec

func (c *Client) VideoCodec() (prop interface{}, err error)

VideoCodec gets 'video-codec' property

func (*Client) VideoFormat

func (c *Client) VideoFormat() (prop interface{}, err error)

VideoFormat gets 'video-format' property

func (*Client) VideoFrameInfo

func (c *Client) VideoFrameInfo() (prop interface{}, err error)

VideoFrameInfo gets 'video-frame-info' property

func (*Client) VideoOutParams

func (c *Client) VideoOutParams() (prop interface{}, err error)

VideoOutParams gets 'video-out-params' property

func (*Client) VideoOutputLevels

func (c *Client) VideoOutputLevels() (prop interface{}, err error)

VideoOutputLevels gets 'video-output-levels' property

func (*Client) VideoPanX

func (c *Client) VideoPanX() (prop interface{}, err error)

VideoPanX gets 'video-pan-x' property

func (*Client) VideoPanY

func (c *Client) VideoPanY() (prop interface{}, err error)

VideoPanY gets 'video-pan-y' property

func (*Client) VideoParams

func (c *Client) VideoParams() (prop interface{}, err error)

VideoParams gets 'video-params' property

func (*Client) VideoRotate

func (c *Client) VideoRotate() (prop interface{}, err error)

VideoRotate gets 'video-rotate' property

func (*Client) VideoSpeedCorrection

func (c *Client) VideoSpeedCorrection() (prop interface{}, err error)

VideoSpeedCorrection gets 'video-speed-correction' property

func (*Client) VideoUnscaled

func (c *Client) VideoUnscaled() (prop interface{}, err error)

VideoUnscaled gets 'video-unscaled' property

func (*Client) VideoZoom

func (c *Client) VideoZoom() (prop interface{}, err error)

VideoZoom gets 'video-zoom' property

func (*Client) VoConfigured

func (c *Client) VoConfigured() (prop interface{}, err error)

VoConfigured gets 'vo-configured' property

func (*Client) VoDelayedFrameCount

func (c *Client) VoDelayedFrameCount() (prop interface{}, err error)

VoDelayedFrameCount gets 'vo-delayed-frame-count' property

func (*Client) VoDropFrameCount

func (c *Client) VoDropFrameCount() (prop interface{}, err error)

VoDropFrameCount gets 'vo-drop-frame-count' property

func (*Client) Volume

func (c *Client) Volume() (prop interface{}, err error)

Volume gets 'volume' property

func (*Client) VolumeRestoreData

func (c *Client) VolumeRestoreData() (prop interface{}, err error)

VolumeRestoreData gets 'volume-restore-data' property

func (*Client) VsyncJitter

func (c *Client) VsyncJitter() (prop interface{}, err error)

VsyncJitter gets 'vsync-jitter' property

func (*Client) VsyncRatio

func (c *Client) VsyncRatio() (prop interface{}, err error)

VsyncRatio gets 'vsync-ratio' property

func (*Client) Width

func (c *Client) Width() (prop interface{}, err error)

Width gets 'width' property

func (*Client) WindowMinimized

func (c *Client) WindowMinimized() (prop interface{}, err error)

WindowMinimized gets 'window-minimized' property

func (*Client) WindowScale

func (c *Client) WindowScale() (prop interface{}, err error)

WindowScale gets 'window-scale' property

func (*Client) WorkingDirectory

func (c *Client) WorkingDirectory() (prop interface{}, err error)

WorkingDirectory gets 'working-directory' property

func (*Client) WriteWatchLaterConfig

func (c *Client) WriteWatchLaterConfig(params ...interface{}) error

WriteWatchLaterConfig runs 'write-watch-later-config' command

type Reply

type Reply struct {
	Event     string      `json:"event"`
	Error     string      `json:"error"`
	Data      interface{} `json:"data"`
	RequestID int         `json:"request_id"`
}

Reply to a mpv request { "error": "success", "data": null } { "event": "event_name" }

func ReplyOrTimeout

func ReplyOrTimeout(ch chan Reply, wait time.Duration) (Reply, error)

ReplyOrTimeout waits for a reply from mpv or gives an error

Directories

Path Synopsis
example

Jump to

Keyboard shortcuts

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