Module ipc

Source
Expand description

IPC handling thread/task. Handles communication between Mpv instances and mpvโ€™s unix socket

Structsยง

MpvIpc ๐Ÿ”’
Container for all state that regards communication with the mpv IPC socket and message passing with Mpv controllers.
MpvIpcEvent ๐Ÿ”’
A deserialized and partially parsed event from mpv.
MpvIpcResponse ๐Ÿ”’
MpvIpcโ€™s response to a MpvIpcCommand.

Enumsยง

MpvIpcCommand ๐Ÿ”’
Commands that can be sent to MpvIpc

Functionsยง

parse_mpv_response_data ๐Ÿ”’
This function does the most basic JSON parsing and error handling for status codes and errors that all responses from mpv are expected to contain.