Forum Discussion

dynamitemedia's avatar
dynamitemedia
Binge Watcher
15 years ago

caching .ts files

is there any way of deleting these? i am having strange behavior with the m3u8 playlist.

i actually delete the playlist and the files but Roku has cached them and even though the playlist will say something totally different it will still try and play the old files so for example

roku-1-1.ts  
roku-1-2.ts
roku-1-3.ts

Then i delete those from the server and the new set will look like this:
roku-2-1.ts
roku-2-2.ts
roku-2-3.ts

and the m3u8 will say roku-2-3.ts but then the roku will be playing roku-1-3.ts

i hope i explained it without adding all the playlist code. is there a way to delete those files once they are not needed from the roku?

4 Replies

  • Neither the Roku box nor the HLS spec does not allow changing the playlist randomly. A "Live" playlist can change by removing the first segment from the list and adding a new last segment.

    The Roku box polls for a new playlist at least once per target duration. This is when you could make the change in the playlist.

    The box will cache all the segments it downloads until it plays them (and even after it plays them to support instant-replay). There is no way to turn this behavior off.

    --Kevin
    • wr6757's avatar
      wr6757
      Newbie

      They need to create an option for deleting cache from the system menu