Will range requests be issued for 4-6 second TS files?
That's the question, here's some background if it helps...
So... I load the intro and extro (each a single TS) into a tmp file on the box, along with creating my custom m3u8s, and added a small webserver segment to rovideoplayer to feed these documents on request, and this works fine. I send the 'Accept-Ranges: bytes' header on binary calls to make the box happy, but don't actually deal with a range request actually happening. Since I am only feeding a single short TS file, which would have a size well under 2mb, I'm assuming a range request wont happen, that the box uses them for large file playback (MP4, etc).
Is my assumption correct? I would hate to add the code to deal with this if I don't have to, as it would complicates the code (harder to maintain later).
I don't believe range requests are ever used for TS files, but I'm not sure I'd be comfortable depending on that. I'd be more concerned about downloading video files to tmp:. They must be very small files for this to work at all, and if your videos ever get bigger, you may find this solution suddenly failing due to lack of memory. Why can't you send all the cookies that are need for both types of files? Do the cookie names conflict?
Yes, it uses the same name for its security cookies, and to pull all three videos (intro, primary, and extro) it's 3 distinct values, messed with it a bit, trying to send them on the same m3u8 call, and couldn't get it to work. As far as downloading the files to tmp, they total about 3mb, I look for the filenames, and download (since I can run the request chain with a single security cookie) them if they don't exist, so once per session. With them being about 3Mb total, and I don't expect them to stay past the session (obviously), is that too large? Since the smallest of the boxes have 256Mb if memory serves me right, I thought those would be essentially insignificant.