How can I dynamically load and stream large video files to IE which doesn't send a range header?

A while back I found this function in some tutorial for streaming video so that the whole file doesn't need to be loaded into RAM for the file to be served (so you can serve big video files without