Without looking at the code I believe the leaching protection is what could make this harder. At the end a byte-range is what it needs, unless I'm missing something (like read and send the file trough a PHP script).
.:: I met php the 03 December 2003 :: Unforgettable day! ::.
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS
Joined: Apr 19, 2004