Automatic run script

Discuss your Lua playlist, album art and interface scripts.
jozka.1
New Cone
New Cone
Posts: 3
Joined: 31 Jul 2012 00:16

Automatic run script

Postby jozka.1 » 31 Jul 2012 00:30

Hi everyone,
is possible automatic run lua script after next play track in the playlist?

Thanks and sorry for my english.

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: Automatic run script

Postby edwardw » 02 Aug 2012 16:12

This is theoretically possible but not currently implemented.

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: Automatic run script

Postby mederi » 03 Aug 2012 12:57

You have to start an extension lua script manually. Then the running script could perform some action when starting/finishing to play each/chosen playlist item.

jozka.1
New Cone
New Cone
Posts: 3
Joined: 31 Jul 2012 00:16

Re: Automatic run script

Postby jozka.1 » 05 Aug 2012 17:10

Yes, but it must be in cycle(while, for) and must test status. Or did you mean something other?

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: Automatic run script

Postby mederi » 05 Aug 2012 23:10

There are some events listeners with predefined functions available in extension script.
viewtopic.php?f=29&t=98644#p343091
..."input-listener"
function input_changed()
...
end

jozka.1
New Cone
New Cone
Posts: 3
Joined: 31 Jul 2012 00:16

Re: Automatic run script

Postby jozka.1 » 06 Aug 2012 10:11

Thanks!
This is what I need!

Why this isn't in readme for lua-vlc?

E: is possible this: "--video-filter=scene --scene-prefix=myimagename --scene-format=jpeg --scene-ratio=25" set in lua?

this doesn't work for me:

Code: Select all

vlc.config.set("video-filter", 'scene' ) vlc.config.set("scene-prefix", 'frame' ) vlc.config.set("scene-format", 'jpeg' ) vlc.config.set("scene-ratio", 25 )


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 28 guests