Skip to content
Advertisement

VLC trigger action when media reaches timestamp

I’d like to the ability to run some code when the timestamp of a file has been reached (i.e. trigger an alert)

How can this be achieved?

I was looking at this https://www.geeksforgeeks.org/python-vl … edia-time/

However, I feel like I’m really looking for some kind of daemon (i.e. start the media file with VLC and then have this “listener” perform an action when timestamp on vlc has been reached)

I’m not opposed to pulling down the code, modifying changes to add a hook, and re-compiling to get what I need. I just need some pointers on where in the codebase this would all live.

What direction may I be pointed to to achieve this? Thanks!

Advertisement

Answer

You want the EventManager class, the documentation for which can be found here. Here’s an example of how to use it to notify you when a video stops playing.

JavaScript

Edit: Could you try this code?

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement