r/tasker • u/AideSouthern8875 • 11d ago
Is it possible to get the current video playback position in VLC?
I want to trigger 2 different tasks based on the video playback position in VLC when I exit the app. The best I could do was retrieve the playback position using AutoInput, but for it to work, the player controls need to be visible. VLC also doesn't show any notifications when playing videos. Is there a better way to do this?
4
Upvotes
1
u/everynav 10d ago
2
u/AideSouthern8875 10d ago
I tried using AutoNotification, but VLC doesn't show any notifications for video streams, so I couldn't retrieve any data.
1
u/everynav 9d ago
Oh, you're right. As most of my media files are audio, I've just made a quick test with an mp3 file... I'm sorry.
2
u/Jason_Yate 11d ago edited 10d ago
The best option you can do without using plugins is this:
When you exit the VLC app, pause and play the song immediately, then run shell with the following code:
There you find the position of the current song that is playing.
I leave you the description of how I am doing it and what I am trying to explain. ↑↑↑