-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thumbnails #43
Comments
A dirty way would be to just throw stuff after the compiled |
Maybe a protocol for inter-script communication would suffice? I mean, the progressbar knows where it is being hovered, so it should be simple enough to just forward these events to the thumbnail script along with some parameters (i.e. (relative) position in the slider, position on-screen for determining position to render the thumbnail at, and ofc when the thumbnail should be hidden again). |
Taking a look at how you patched it into the default OSC, it should be trivial to add support, though I don't understand the purpose of all the ass generation that Also, as a side note, you've got |
https://youtu.be/a9cmt176WDI?t=23 I'll ponder about the API later. Could be neat. Oh, right, I forgot about that typo. I was aware of it, but because the iteration back then had inter-file references I didn't bother to stop and fix it, and it faded away... |
Okay, I've had a thought or two. Some notes.
So I'm going for something wild - the host will send a piece of Lua which the client-wannabe will The user would have three relevant files in their scripts directory: |
I'm ideologically opposed to usage of The filesystem:
Then, within local Thumbnailer = require( 'mpv_thumbnail_script_api.thumbnailer' )
-- connect to the server via mpv's script_message ipc mechanism
Thumbnailer:init( )
-- run the command to draw the thumbnail for the given timestamp at the given coordinates.
Thumbnailer:drawThumbnail( x, y, timestamp ) |
Any progress with this? I use both of these scripts. It'd be kick ass to have them work together. |
any update on this? |
There is a thumbnail script out: https://github.com/TheAMM/mpv_thumbnail_script
From an earlier discussion in some IRC channel, I thought you'd like to take a look into it for how much work it might be to add this here. Currently, it replaces the OSC with a custom one since it needs to accurately determine the hover regions of the hover bars, or something.
The text was updated successfully, but these errors were encountered: