I would like to create music player, with a textView displaying lyrics of MP3 being played. The lyrics should displayed in sync with music.
I want to know that how to get lyrics and for display the text I refer this example.
Any suggestions on how I can do this? I am stuck in this.
Thanks in advance.
Use the following music metadata library.
http://javamusictag.sourceforge.net/
You can go to documentation and look for Lyrics tag and follow it. Normally you would open the mp3 file and extract the vaule of the Lyrics tag. Note that this may or may not be available inside the mp3. (I suggest you use a tagged mp3 for testing) If the info is there. You will be able to extract it as a String or a buffer.
That info will look like this
[00:02]Let's talk about time
[00:05]tickin away every day
Now you just need to display the line according to the time given at the front of the line. This should be simple enough, just do some string operations.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With