handling

package
v0.0.0-...-3807ea0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2017 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

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