frontend/controllers/ProxyController.php
/**
     * Convers request headers to query string
     *
     * @return string
     */
Convers request headers to query string
@return string
Convers request headers to query string @return string
private function processHeaders()
    {
        $query = [];
        if (isset($_SERVER['HTTP_RANGE'])) {
            if (preg_match('/^bytes=(\d*)-(\d*)$/', $_SERVER['HTTP_RANGE'], $matches)) {
                $query['range'] = $matches[1].'-'.$matches[2];
            }
        }
        return $query;
    }
private function processHeaders ( ) { $ query = [ ] ; if ( isset ( $ _SERVER [ 'HTTP_RANGE' ] ) ) { if ( preg_match ( '/^bytes=(\d*)-(\d*)$/' , $ _SERVER [ 'HTTP_RANGE' ] , $ matches ) ) { $ query [ 'range' ] = $ matches [ 1 ] . '-' . $ matches [ 2 ] ; } } return $ query ; }
Convers request headers to query string
 @return string
Convers request headers to query string @return string
//Proces HTTP Range headers