getParameter('sitebase')); define('VIDEO_EMBED_CONFIG_FILE', SITEBASE.$container->getParameter('video_embed_config_file')); //to activate debug mode and false for production usage. it will write //to a log file when something goes wrong but should not produce //exceptions in production enviroment define('DEBUG', $container->getParameter('video_embed_debug')); try { $this->video_engine = new VideoEmbed($this->element->getUrl()); } catch (Exception $exc) { } } public function getEmbedCode() { if ($this->video_engine) { return $this->video_engine->embed; } return null; } } ?>