I have a .m3u8 URL(for track) and a .vtt URL(for track details). I am developing a radio in android where details of every track comes with .vtt file.
So my question is how can I synchronize both track url and .vtt url in MediaPlayer
.
My radio is playing good but I am unable to get the details of track.
Q.What is need of using .vtt file?
Ans. Because the radio contains infinite songs and every song has its own details. thats why there is need to synchronize tracks and its details.
Here is my .vtt file structure.
WEBVTT
1
00:00:00.000 --> 00:03:22.176
NOW PLAYING: <b>Don't Go</b> - Jon Tarifa
NOTE https://play.unplug.de/images/artwork.php?id=113043444&w=400
2
00:03:22.176 --> 00:06:28.725
NOW PLAYING: <b>Treat You Better</b> - Shawn Mendes
NOTE https://play.unplug.de/images/artwork.php?id=112983776&w=400
3
00:06:28.725 --> 00:09:46.954
NOW PLAYING: <b>Used To Have It All</b> - Fais & Afrojack
NOTE https://play.unplug.de/images/artwork.php?id=113044015&w=400
4
00:09:46.954 --> 00:13:45.330
NOW PLAYING: <b>Hurts</b> - Emeli Sandé
NOTE https://play.unplug.de/images/artwork.php?id=113029897&w=400
...
...
If anyone knows how to, please answer.
Thanks in Advance.