show lyrics from lrc files

Discuss your Lua playlist, album art and interface scripts.
dafengche
New Cone
New Cone
Posts: 6
Joined: 17 Feb 2012 15:05

show lyrics from lrc files

Postby dafengche » 17 Feb 2012 15:17

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

dafengche
New Cone
New Cone
Posts: 6
Joined: 17 Feb 2012 15:05

Re: show lyrics from lrc files

Postby dafengche » 17 Feb 2012 16:43

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?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: show lyrics from lrc files

Postby Jean-Baptiste Kempf » 17 Feb 2012 18:07

Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

dafengche
New Cone
New Cone
Posts: 6
Joined: 17 Feb 2012 15:05

Re: show lyrics from lrc files

Postby dafengche » 17 Feb 2012 20:03

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.

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 lyrics from lrc files

Postby mederi » 17 Feb 2012 20:37

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?

dafengche
New Cone
New Cone
Posts: 6
Joined: 17 Feb 2012 15:05

Re: show lyrics from lrc files

Postby dafengche » 18 Feb 2012 11:53

btw, i'm using vlc 1.1.13

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 lyrics from lrc files

Postby mederi » 18 Feb 2012 12:56

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.


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 3 guests