Page 1 of 1

show lyrics from lrc files

Posted: 17 Feb 2012 15:17
by dafengche
Hi all,

I'm looking for a lyrics extension for vlc but couldn't find one. Has anybody already done this?

I'm trying to write an extension but got stuck with some issues:
1) How to open an extension dialog when a file is opened in vlc? I know it can be opened through the view menu.
2) How to set the width and height of the extension dialog? Ideally the same width as the main vlc windows.
3) How to update lyrics in the extension dialog? I'm having problems using misc.timer(callback) and var.add_callback( object, name, function, data ).

Any help will be very much appreciated.
dafengche

Re: show lyrics from lrc files

Posted: 17 Feb 2012 16:43
by dafengche
Point 1) I mean to start up the extension automatically when vlc is started. I did a search and it seems this is not possible at this moment. Andy idea?

Re: show lyrics from lrc files

Posted: 17 Feb 2012 18:07
by Jean-Baptiste Kempf

Re: show lyrics from lrc files

Posted: 17 Feb 2012 20:03
by dafengche
Thanks, but there is no timestamp in those lyrics. In fact I hope to parse and render LRC files while a song is being played.

Re: show lyrics from lrc files

Posted: 17 Feb 2012 20:37
by mederi
I think there is a bug and a Misc object does not work. VLC 2 always reports an error in Messages window:
...\lua\extensions\test2.lua:25: attempt to index field 'misc' (a nil value)
--- EDIT ---
Should I report it through VLC bug reporting site? It's a bug, isn't it?

Re: show lyrics from lrc files

Posted: 18 Feb 2012 11:53
by dafengche
btw, i'm using vlc 1.1.13

Re: show lyrics from lrc files

Posted: 18 Feb 2012 12:56
by mederi
I am on VLC 1.1.10, but testing VLC 2. You should find "README.txt" in lua folder in your VLC 1.1.13 and compare it with the README document available on the Internet concerning latest VLC release, that is VLC 2. Hopefully it will be officially published soon.