Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions DOCS/man/osc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions player/lua/osc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Loading