dec05eba cf9955dbc3 Convert to meson project il y a 1 semaine
..
include 2030684b16 Finish video player il y a 3 ans
jsoncpp @ 98e28b38ff cf9955dbc3 Convert to meson project il y a 1 semaine
src 4c37a5463c Autoskip youtube sponsors il y a 11 mois
README.md a26d0fcc0a Save youtube watch progress and resume next time the video is played il y a 3 ans
project.conf 5061e1ad91 Allow mpv version 1 for video player il y a 3 ans

README.md

QuickMedia Video Player

The video player internally used by QuickMedia. Uses libmpv.\ The video player window is embedded inside QuickMedia and QuickMedia and this video player communicate over a file descriptor (socketpair) using json (json without newline formatting; one command per line).

IPC commands

time-pos

Return seeking position in file in seconds

request

{
    "command": "time-pos",
    "request_id": 232                       // Optional
}

response on success

{
    "status": "success",
    "data": 112.432,
    "request_id": 232,                      // Optional. Its provided if request_id was provided in the request
}

duration

Return duration of file in seconds

request

{
    "command": "duration",
    "request_id": 232                       // Optional
}

response on success

{
    "status": "success",
    "data": 112.432,
    "request_id": 232,                      // Optional. Its provided if request_id was provided in the request
}

sub-add

Add a subtitle file/url that is loaded asynchronously

request

{
    "command": "sub-add",
    "data": {
        "file": "path/to/file/or/url",
        "title": "title",                   // Optional
        "language": "en_us"                 // Optional
    },
    "request_id": 233                       // Optional
}

response on success

{
    "status": "success",
    "request_id": 233                       // Optional. Its provided if request_id was provided in the request
}

cycle-fullscreen

Return seeking position in file in seconds

request

{
    "command": "cycle-fullscreen",
    "request_id": 232                       // Optional
}

response on success

{
    "status": "success",
    "request_id": 232,                      // Optional. Its provided if request_id was provided in the request
}

Response on error in every command

{
    "status": "error",
    "message": "error message",
    "request_id": 233                       // Optional. Its provided if request_id was provided in the request
}

IPC event

{
    "event": "file-loaded",
    "args": []                              // A list of strings
}