-1

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

lanjes
  • 81
  • 1
  • 8

1 Answers1

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