controllers/BaseController.php
protected function getFormat(Request $request)
    {
        $format = $request->getQueryParam('format');
        if (!isset($format)) {
            $format = $this->defaultFormat;
        }

        return $format;
    }
protected function getFormat(Request $request)
    {
        $format = $request->getQueryParam('format');
        if (!isset($format)) {
            $format = $this->defaultFormat;
        }

        return $format;
    }
protected function getFormat ( Request $ request ) { $ format = $ request -> getQueryParam ( 'format' ) ; if ( ! isset ( $ format ) ) { $ format = $ this -> defaultFormat ; } return $ format ; }
Get video format from request parameters or default format if none is specified.

@param Request $request PSR-7 request

@return string format
Get video format from request parameters or default format if none is specified .