forceDevicePixelRatio((int)$_GET['dpx']); // Video goes through the transcoding queue (getFileUrl queues it), never inline ffmpeg here. if (!($oTranscoder instanceof BxDolTranscoderVideo) && !$oTranscoder->isFileReady($sHandler) && !$oTranscoder->transcode ($sHandler)) { bx_transcoder_error_occured(); exit; } $sImageUrl = $oTranscoder->getFileUrl($sHandler); if (!$sImageUrl) { bx_transcoder_error_occured(); exit; } header('Location: ' . $sImageUrl); exit; function bx_transcoder_error_occured($sMethod = 'displayPageNotFound') { require_once(BX_DIRECTORY_PATH_INC . "design.inc.php"); $oTemplate = BxDolTemplate::getInstance(); $oTemplate->$sMethod (); } /** @} */