Versions in this module Expand all Collapse all v0 v0.0.3 Sep 4, 2021 v0.0.2 Jan 7, 2021 Changes in this version + const LOG_LEVEL_DEBUG + const LOG_LEVEL_ERROR + const LOG_LEVEL_FATAL + const LOG_LEVEL_INFO + const LOG_LEVEL_NONE + const LOG_LEVEL_TRACE + const LOG_LEVEL_V + const LOG_LEVEL_WARN + func FreeMpvNode(cnode *C.mpv_node) + func GetCNodeList(list []*Node) *C.mpv_node_list + func GetNodeMap(cmap C.mpv_node_list) (map[string]*Node, error) + func GetValue(node *C.mpv_node) (interface{}, error) + func NewError(errcode C.int) error + type EndFileReason int + const END_FILE_REASON_EOF + const END_FILE_REASON_ERROR + const END_FILE_REASON_QUIT + const END_FILE_REASON_REDIRECT + const END_FILE_REASON_STOP + func (efr EndFileReason) String() string + type Error int + const ERROR_AO_INIT_FAILED + const ERROR_COMMAND + const ERROR_EVENT_QUEUE_FULL + const ERROR_INVALID_PARAMETER + const ERROR_LOADING_FAILED + const ERROR_NOMEM + const ERROR_NOTHING_TO_PLAY + const ERROR_OPTION_ERROR + const ERROR_OPTION_FORMAT + const ERROR_OPTION_NOT_FOUND + const ERROR_PROPERTY_ERROR + const ERROR_PROPERTY_FORMAT + const ERROR_PROPERTY_NOT_FOUND + const ERROR_PROPERTY_UNAVAILABLE + const ERROR_SUCCESS + const ERROR_UNINITIALIZED + const ERROR_UNKNOWN_FORMAT + const ERROR_UNSUPPORTED + const ERROR_VO_INIT_FAILED + const MPV_ERROR_NOT_IMPLEMENTED + func (m Error) Error() string + type Event struct + Data interface{} + Error error + Event_Id EventId + Reply_Userdata uint64 + type EventEndFile struct + ErrCode Error + Reason EndFileReason + type EventId int + const EVENT_AUDIO_RECONFIG + const EVENT_CHAPTER_CHANGE + const EVENT_CLIENT_MESSAGE + const EVENT_COMMAND_REPLY + const EVENT_END_FILE + const EVENT_FILE_LOADED + const EVENT_GET_PROPERTY_REPLY + const EVENT_IDLE + const EVENT_LOG_MESSAGE + const EVENT_METADATA_UPDATE + const EVENT_NONE + const EVENT_PAUSE + const EVENT_PLAYBACK_RESTART + const EVENT_PROPERTY_CHANGE + const EVENT_QUEUE_OVERFLOW + const EVENT_SCRIPT_INPUT_DISPATCH + const EVENT_SEEK + const EVENT_SET_PROPERTY_REPLY + const EVENT_SHUTDOWN + const EVENT_START_FILE + const EVENT_TICK + const EVENT_TRACKS_CHANGED + const EVENT_TRACK_SWITCHED + const EVENT_UNPAUSE + const EVENT_VIDEO_RECONFIG + func (eid EventId) String() string + type EventProperty struct + Data interface{} + Format Format + Name string + type Format int + const FORMAT_BYTE_ARRAY + const FORMAT_DOUBLE + const FORMAT_FLAG + const FORMAT_INT64 + const FORMAT_NODE + const FORMAT_NODE_ARRAY + const FORMAT_NODE_MAP + const FORMAT_NONE + const FORMAT_OSD_STRING + const FORMAT_STRING + type Mpv struct + func Create() *Mpv + func (m *Mpv) ClientName() string + func (m *Mpv) Command(command []string) error + func (m *Mpv) CommandAsync(replyUserdata uint64, command []string) error + func (m *Mpv) CommandNode(command []string) int + func (m *Mpv) CommandNodeAsync(command []string) int + func (m *Mpv) CommandString(command string) error + func (m *Mpv) CreateClient(name string) *Mpv + func (m *Mpv) DetachDestroy() + func (m *Mpv) GetProperty(name string, format Format) (interface{}, error) + func (m *Mpv) GetPropertyAsync(name string, replyUserdata uint64, format Format) error + func (m *Mpv) GetPropertyOsdString(name string) string + func (m *Mpv) GetPropertyString(name string) string + func (m *Mpv) GetSubApi(api SubApi) unsafe.Pointer + func (m *Mpv) GetSubApiGL() *MpvGL + func (m *Mpv) GetTimeUS() int64 + func (m *Mpv) GetWakeupPipe() int + func (m *Mpv) Initialize() error + func (m *Mpv) LoadConfigFile(fileName string) error + func (m *Mpv) ObserveProperty(replyUserdata uint64, name string, format Format) error + func (m *Mpv) RequestEvent(event EventId, enable bool) error + func (m *Mpv) RequestLogMessages(minLevel string) error + func (m *Mpv) Resume() + func (m *Mpv) SetOption(name string, format Format, data interface{}) error + func (m *Mpv) SetOptionString(name, data string) error + func (m *Mpv) SetProperty(name string, format Format, data interface{}) error + func (m *Mpv) SetPropertyAsync(name string, replyUserdata uint64, format Format, data interface{}) error + func (m *Mpv) SetPropertyString(name, data string) error + func (m *Mpv) SetWakeupCallback(callback func(d interface{}), d interface{}) + func (m *Mpv) Suspend() + func (m *Mpv) TerminateDestroy() + func (m *Mpv) UnObserveProperty(registeredReplyUserdata uint64) error + func (m *Mpv) WaitAsyncRequests() + func (m *Mpv) WaitEvent(timeout float32) *Event + func (m *Mpv) Wakeup() + type MpvGL struct + func (mgl *MpvGL) Draw(fbo, width, height int) int + func (mgl *MpvGL) InitGL() error + func (mgl *MpvGL) Render(fbo int, vp []int) int + func (mgl *MpvGL) ReportFlip(time int64) error + func (mgl *MpvGL) UninitGL() error + type Node struct + func GetNode(node *C.mpv_node) (*Node, error) + func GetNodeList(clist *C.mpv_node_list) ([]*Node, error) + func NewNode(value interface{}, format Format) *Node + func (n *Node) GetCNode() *C.mpv_node + func (n *Node) GetVal() interface{} + type SubApi int + const SUB_API_OPENGL_CB