Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MPCHCHandler ¶
type MPCHCHandler struct { // Handler gets the MPC-HC window's handle to direct the commands to it. Handler controller.Handler // PlaybackControlFunc is the function that changes the playback as required. PlaybackControlFunc PlaybackControlFunc }
MPCHCHandler handles HTTP requests by setting MPC-HC to focus and sending the required key press.
func NewMPCHCHandler ¶
func NewMPCHCHandler(focus controller.Handler, playbackControlFunc PlaybackControlFunc) *MPCHCHandler
NewMPCHCHandler initializes a new MPC-HC handler.
func (*MPCHCHandler) Handle ¶
func (h *MPCHCHandler) Handle(req *restful.Request, resp *restful.Response)
Handle sets the MPC-HC window to focus and sends the required key.
type PlaybackControlFunc ¶
type PlaybackControlFunc func(controller.HWND) error
PlaybackControlFunc is a function that changes the playback.
Click to show internal directories.
Click to hide internal directories.