Show on title main form VLC current time positon, length track, pause or playing file

Discuss your Lua playlist, album art and interface scripts.
korp2
New Cone
New Cone
Posts: 2
Joined: 09 Feb 2018 11:17

Show on title main form VLC current time positon, length track, pause or playing file

Postby korp2 » 09 Feb 2018 12:10

Show on the title main form VLC current time positon, length track, pause or playing file.

I don't find it in menu Preference VLC.

I assume some way's to solve the task:
Write a script in lua. I find how get time
vlc.var.get(input,"time")
and status
vlc.playlist.status()

How i can send it to title main form VLC? If it's impossible, then to my created form with function Create_dialog()
And how a script always autorun?
Is necessary create thread or use "repeat" with "wait"?

What algorithm better to do this task?

P.S. Sorry, for my bad English

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Show on title main form VLC current time positon, length track, pause or playing file

Postby mederi » 12 Feb 2018 15:03

You can set meta title for current media:
input.item(): Get the current input item. Input item methods are:
:set_meta(key, value): Set meta data.
You need to write an Interface script as it allows a periodic activity to update the running time and it supports autorun in VLC preferences.
Check the Filename Forcer in my WIP collection package: https://addons.videolan.org/p/1167844/
And Time: https://addons.videolan.org/p/1154032/


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 14 guests