Sending headers, then content ? (streaming output)

Hey guys,

I’ve been trying to set up proper html5 range header support for streaming videos but I can’t seem to be able to send the headers then ob_flush() my content out in a while loop.

Response::send() just sends everything and stops execution. Using ob_flush() or any combination will output the data but no headers.

Am I missing something? Or should I just suck it up and ignore Yii’s response methods and use php header() methods instead?

Anyone have an idea?