Open PeterCodar opened 8 years ago
@PeterCodar This will likely be quite difficult as addons have limited functionality via the API
Thanks a lot for all your answers, @jez500 Where can I have a look at the functionalities of the API?
here you go: http://kodi.wiki/view/JSON-RPC_API/v6
I have found another webinterface (awxi) which claims to be able to show lyrics: https://github.com/mizaki/awxi/search?utf8=%E2%9C%93&q=lyrics The autor Mizaki talks on the first 3 pages with Ronnie about it: http://forum.kodi.tv/showthread.php?tid=147340
It seems they use the http://kodi.wiki/index.php?title=InfoLabels for displaying Lyrics:
MusicPlayer.Lyrics Lyrics of current song stored in ID tag info
Maybe you can see something in Mizaki's code that can help?
Another awxi code source that could help: https://sourceforge.net/p/xbmc/webinterfaces/ci/gotham/tree/webinterface.awxi/js/addons.js starting at line 167
+1 - maybe just offering a link to the lyrics of the song in one of tthe online services, as a starting point E.g. http://lyrics.wikia.com
This service offers APIs and is used by some popular opensource music players (e.g. audacious) and works really well.
Idea - if Lyrics is active in Chorus, the right-side bar that contains the playlist could be split in top/bottom, with the lyrics inside the bottom part / small font. For every change of track, a query would be done (javascript in the page) and if a match is found, the lyrics are retrieved and displayed in the Lyrics area.
I noticed some of the lyrics in the wiki contain timing info that players can optionally use to show the currently playing "phrase". That would be the ultimate integration
I have installed http://kodi.wiki/view/Add-on:CU_LRC_Lyrics and it works fine on my Raspberry Pi-KODI using a direct attached TV screen.
Could you please show the same lyrics (scraped from on online source or read from the id3tag of the song) in Chorus2 and a browser?