To introduce myself:
Normaly I do 2D and 3D Animation for television but at the Moment I tempory lost my Job (German Kurzarbeit) and so I have a lot of time which I want to use for a small personal scripting Project. I did Action Script long ago ... very long
I started 8 hours ago with lua and VLC and I think this is the Platform for my little Project. I want to create a script which is looping the beginning of the video till a Hotkey (Spacebar) is pressed, then finishing the loop and continue the Video (normal playback and no loop anymore).
I read a lot about Hotkeys and it seams to be a big problem to solve this in Lua. So I think I will hack this with this Code
Code: Select all
if vlc.playlist.status()=="paused" then
-- play
-- set Variable KeyWasHit to 1
But I have a big Problem with calling a specific function when a specific Timecode is reached
Is it possible to call a Function on every Frame to check if the End of the loop (Timecode) is reached?
I only found the While Function but, as far as I know programming-Loops are not what is needed here cause they call the Function a lot to often.
Please excuse me for being such a big noob but I really started just today
Thanks for your time