"renojim" wrote:
Um... there's only 6 segments in that file that just repeat over and over again. It's no wonder it repeats after a minute. I'm not sure it's even "legal" to repeat segments within the m3u8 playlist file.
I'm not sure it's illegal, although it does seem rather strange to keep repeating the same sequence numbers without removing files that previously used those same sequence numbers. The key point for this to work is that the client would need to read the playlist file starting near the end (not less than 3 target durations from the end of the playlist file I believe the spec says). For a "live" playlist I'd think you'd want to start as close to the end as you can safely do so anyway. I'd be curious to know whether the Roku player agrees, or whether it just starts reading from the start of the file no matter what, no matter how long the playlist file is. If I were a Roku person, it's something I'd be looking into. I don't think the spec requires that you have to delete segment Urls from the playlist file at any specific intervals. In the case of this stream, it doesn't look like the server is deleting anything from the file, just adding to the end, so even if the segment files were uniquely numbered, you wouldn't really have a "live" stream, rather a "delayed" stream, delayed by the total length of the playlist file. I wouldn't think that would be desirable behavior. If it were me implementing an HLS client, I'd start reading from closer to the end of the file.
"httpslash" wrote:
Hi thanks for taking the time to help. I really appreciate it. I am very new to roku, where would I paste your code? I'm using simple video player...?
EDIT: I pasted it in appmain.brs in simplevideoplayer, all i get is a loading... screen. Did i do it worng?
I wouldn't bother. It won't work, due to the way HLS operates. The m3u8 playlist file is updated every few seconds as new media segment files are added. It's not a "static" playlist file. Even if you could download it from the server every few seconds, create a new version of the file and write it out to a "tmp" file, I don't know whether the roVideoPlayer would be able to handle a local file as a stream Url, and even if it did, you'd have to do something about the fact that the segment files it references aren't local, but served from a remote url. I think you're out of luck, unfortunately.