I have a .m3u8 URL (for a track) and a .vtt URL (for track information). I am developing a radio in android where information about each track comes with a .vtt file.
So my question is how can I synchronize the track URL and .vtt-url in MediaPlayer.
My radio plays well, but I can’t get track information.
Q. What is needed to use the .vtt file?
Repl. Because the radio contains endless songs, and each song has its own details. therefore, it is necessary to synchronize the tracks and their 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:
2
00:03:22.176 --> 00:06:28.725
NOW PLAYING: <b>Treat You Better</b> - Shawn Mendes
NOTE https:
3
00:06:28.725 --> 00:09:46.954
NOW PLAYING: <b>Used To Have It All</b> - Fais & Afrojack
NOTE https:
4
00:09:46.954 --> 00:13:45.330
NOW PLAYING: <b>Hurts</b> - Emeli Sandé
NOTE https:
...
...
If someone knows how to do this, answer.
Thanks at Advance.