How can I display a M3U playlist from a url like this http://siptv.app/lists/example.m3u into text using javascript? Im using phonegap so cors is not an issue
Asked
Active
Viewed 1,232 times
1 Answers
1
If you try to open m3u file with notepad you will notice that it contains a human-readable text: a list of links. Try to simply parse it as regular text.
$.ajax({
type: "GET",
url: ' http://siptv.app/lists/example.m3u',
success: function(message, text, response) {
//and then parse
}
});

vadzim dvorak
- 939
- 6
- 24
-
yes but how is that done? could you show me an example? – lanjes Aug 10 '18 at 14:50
-
its showing nothing, what do i put in the parse area to receive the full data? – lanjes Aug 10 '18 at 15:01
-
@lanjes `console.log()` the variables and pick out the relevant data – austin Mar 04 '20 at 04:36