diff --git a/DOCS/man/osc.rst b/DOCS/man/osc.rst index 4a23d9f5eeffd..ba7eeeab7bfb0 100644 --- a/DOCS/man/osc.rst +++ b/DOCS/man/osc.rst @@ -777,9 +777,7 @@ script via the following ``user-data`` properties: ``user-data/osc/draw-preview`` Set by the OSC to request a thumbnail within the currently playing file. - The requested thumbnail timestamp in seconds is set in - ``user-data/osc/hover-sec``. The ``draw-preview`` property is a table with - the following fields: + The ``draw-preview`` property is a table with the following fields: ``x``, ``y`` Top-left coordinates (positive integers) to draw the thumbnail at. @@ -789,6 +787,9 @@ script via the following ``user-data`` properties: thumbnail in. Note that this only specifies the drawing width and height, the actual backing thumbnail size may differ. + ``hover-sec`` + Requested thumbnail timestamp in seconds. + ``ass`` Optional ASS string to render alongside the thumbnail, using OSD coordinates. This can be used for decorations such as a thumbnail diff --git a/player/lua/osc.lua b/player/lua/osc.lua index d1677f7e91c27..d13ca12c391a3 100644 --- a/player/lua/osc.lua +++ b/player/lua/osc.lua @@ -1259,6 +1259,7 @@ local function render_elements(master_ass) local thumb_req = { x = math.floor(thumb_x + 0.5), y = math.floor(thumb_y + 0.5), w = math.floor(thumb_w + 0.5), h = math.floor(thumb_h + 0.5), + ["hover-sec"] = hover_sec, } local thumb_ass = assdraw.ass_new()