Dynamically loading playlist
I am trying to create a dynamic loading playlist. The way it works is that I have a looping playlist running a "slate" that runs for 10 seconds then repeats. After each time it completes there is a function that checks if there are any changes in the playlist. To further complicate things I want the playlist in an rss format.
here is what I have:
var random_num = Math.floor((Math.random() * 1000) + 1);
Now when the item completes every 10 seconds it runs the command just fine (tested with a few console.log()s) but I get an error "error loading playlist: no playable sources found" when I make changes to the playlist containing an HLS live stream (m3u8). If I immediately refresh the page it works just fine. If I use another mp4 video it works fine without the refresh.
Is there a way to mix formats or do they all have to be m3u8 files? or something else I dont know of.