Render a Vimeo object tag.

@param Garp_Db_Table_Row $vimeo A record from the `vimeo_videos` table (or `media` view)
@param array $options Various rendering options
@return mixed
760513
public function render($vimeo, array $options = array()) {
        $this->_setDefaultAttribs($options);
        $_attribs = $options['attribs'];
        $_attribs['width']  = $options['width'];
        $_attribs['height'] = $options['height'];

        unset($options['width']);
        unset($options['height']);
        unset($options['attribs']);

        $playerUrl = $this->getPlayerUrl($vimeo, $options);

        $_attribs['frameborder'] = 0;
        $_attribs['src'] = $playerUrl;

        $html = '<iframe' . $this->_htmlAttribs($_attribs) . '></iframe>';
        return $html;
    }
844843
public function render(array $options = array())
    {
        $url = $this->service->generateEmbedUrl($this);
        $options = array_replace(array(
            'width' => 560,
            'height' => 315,
            'frameborder' => 0,
            'allowfullscreen' => ''
        ), $options);

        $html = <<<HTML
<iframe src="$url" width="{$options['width']}" height="{$options['height']}" frameborder="{$options['frameborder']}" {$options['allowfullscreen']}></iframe>
HTML;
        return $html;
    }
264009
public function getVideos(array $options = [])
    {
        $deferred = new Deferred();

        $options = Options::buildOptions(Options::$defaultOptions, $options, $this->tidal);

        $this->http->get(
            Options::replace(Endpoints::ARTIST_VIDEOS, ['id' => $this->id]).$options
        )->then(function ($response) use ($deferred) {
            $videos = new Collection();

            foreach ($response['items'] as $video) {
                $videos->push(new Video(
                    $this->http,
                    $this->tidal,
                    $video
                ));
            }

            $deferred->resolve($videos);
        }, function ($e) use ($deferred) {
            $deferred->reject($e);
        });

        return $deferred->promise();
    }
184083
public function display($content, $options = [])
    {
        if (!empty($content)) {
            $videoInfo = $this->_cache($content);
            if (!($videoInfo || empty($options['alwaysRender']))) {
                return 'Video does not exist, it may have been removed from youtube';
            }
            return $this->_renderDisplayView($options, $videoInfo);
        } else {
            return '';
        }
    }
645445
public function renderPager(TableView $view, $viewName = 'twitter_bootstrap3', array $options = [])
    {
        if (!$view->pager) {
            return '';
        }

        $pageParam = $view->ui['page_name'];

        $options = array_merge([
            'pageParameter' => '[' . $pageParam . ']',
            'proximity'     => 3,
            'next_message'  => '&raquo;',
            'prev_message'  => '&laquo;',
            'default_view'  => 'default',
        ], $options);

        $routeGenerator = function ($page) use ($pageParam) {
            return '?' . $pageParam . '=' . $page;
        };

        return $this->viewFactory->get($viewName)->render($view->pager, $routeGenerator, $options);
    }
1047923
public function renderMedia($mediaId, array $options = array())
    {
        $media = $this->getMedia($mediaId);

        if ($media) {
            return $this->displayMediaManager->renderMedia($media, $options);
        }

        return '';
    }
513739
public function def(array $options=[]) {
		if(!$this->widget)
			throw new \Exception('No default render function for this field');
		return $this->render($this->widget, $options);
	}
847774
public function datatableHtml(\Twig_Environment $twig, $options)
    {
        if (!isset($options['id'])) {
            $options['id'] = 'ali-dta_' . md5(mt_rand(1, 100));
        }
        $dt = Datatable::getInstance($options['id']);

        $options['fields'] = $dt->getFields();
        $options['search'] = $dt->getSearch();
        $options['searchFields'] = $dt->getSearchFields();
        $options['multiple'] = $dt->getMultiple();

        $mainTemplate = 'WaldoDatatableBundle:Main:datatableHtml.html.twig';

        if (isset($options['html_template'])) {
            $mainTemplate = $options['html_template'];
        }

        return $twig->render($mainTemplate, $options);
    }
1369111
protected function addVimeoForm($builder)
    {
        $builder
            ->add('vimeoVideoId', 'oo_video', array(
                'label' => 'open_orchestra_backoffice.block.video.vimeo.video_id',
                'group_id' => 'data',
                'sub_group_id' => 'content',
                'attr' => array(
                    'data-video-type' => 'vimeo'
                )
            ))
            ->add('vimeoWidth', 'text', array(
                'empty_data' => '480',
                'label' => 'open_orchestra_backoffice.block.video.vimeo.width',
                'required'  => false,
                'group_id' => 'data',
                'sub_group_id' => 'content',
                'attr' => array(
                    'data-video-type' => 'vimeo'
                )
            ))
            ->add('vimeoHeight', 'text', array(
                'empty_data' => '269',
                'label' => 'open_orchestra_backoffice.block.video.vimeo.height',
                'required'  => false,
                'group_id' => 'data',
                'sub_group_id' => 'content',
                'attr' => array(
                    'data-video-type' => 'vimeo'
                )
            ))
            ->add('vimeoColor', 'oo_color_picker', array(
                'label' => 'open_orchestra_backoffice.block.video.vimeo.color',
                'required'  => false,
                'group_id' => 'data',
                'sub_group_id' => 'content',
                'attr' => array(
                    'data-video-type' => 'vimeo',
                    'class' => 'colorpicker'
                )
            ))
            ->add('vimeoAutoplay', 'checkbox', array(
                'label' => 'open_orchestra_backoffice.block.video.vimeo.autoplay',
                'required'  => false,
                'group_id' => 'data',
                'sub_group_id' => 'content',
                'attr' => array(
                    'data-video-type' => 'vimeo'
                )
            ))
            ->add('vimeoFullscreen', 'checkbox', array(
                'label' => 'open_orchestra_backoffice.block.video.vimeo.fullscreen',
                'required'  => false,
                'group_id' => 'data',
                'sub_group_id' => 'content',
                'attr' => array(
                    'data-video-type' => 'vimeo'
                )
            ))
            ->add('vimeoTitle', 'checkbox', array(
                'label' => 'open_orchestra_backoffice.block.video.vimeo.title_video',
                'required'  => false,
                'group_id' => 'data',
                'sub_group_id' => 'content',
                'attr' => array(
                    'data-video-type' => 'vimeo'
                )
            ))
            ->add('vimeoByline', 'checkbox', array(
                'label' => 'open_orchestra_backoffice.block.video.vimeo.byline',
                'required'  => false,
                'group_id' => 'data',
                'sub_group_id' => 'content',
                'attr' => array(
                    'data-video-type' => 'vimeo'
                )
            ))
            ->add('vimeoPortrait', 'checkbox', array(
                'label' => 'open_orchestra_backoffice.block.video.vimeo.portrait',
                'required'  => false,
                'group_id' => 'data',
                'sub_group_id' => 'content',
                'attr' => array(
                    'data-video-type' => 'vimeo'
                )
            ))
            ->add('vimeoLoop', 'checkbox', array(
                'label' => 'open_orchestra_backoffice.block.video.vimeo.loop',
                'required'  => false,
                'group_id' => 'data',
                'sub_group_id' => 'content',
                'attr' => array(
                    'data-video-type' => 'vimeo'
                )
            ))
            ->add('vimeoBadge', 'checkbox', array(
                'label' => 'open_orchestra_backoffice.block.video.vimeo.badge',
                'required'  => false,
                'group_id' => 'data',
                'sub_group_id' => 'content',
                'attr' => array(
                    'data-video-type' => 'vimeo'
                )
            ))
        ;
    }
1126430
public function youtube($id, array $options = [])
    {
        $options = optionsParser($options, [
            'allowfullscreen' => 'allowfullscreen',
            'height' => 480,
            'ratio' => '16by9',
            'width' => 640,
        ]);

        return self::iframe(sprintf('https://www.youtube.com/embed/%s', $id), $options->toArray());
    }
1247670
public function datatable(\Twig_Environment $twig, $options)
    {
        $options = $this->buildDatatableTemplate($options);

        $mainTemplate = array_key_exists('main_template', $options) ? $options['main_template'] : 'WaldoDatatableBundle:Main:index.html.twig';

        return $twig->render($mainTemplate, $options);
    }
1319753
public function renderCartWidget(array $options = [])
    {
        $template = array_key_exists('template', $options) ? $options['template'] : $this->config['templates']['widget'];
        $cart = array_key_exists('cart', $options) ? $options['cart'] : $this->cartProvider->getCart();

        return $this->twig->render($template, ['cart' => $cart]);
    }
365082
public function renderMedia(MediaInterface $media, array $options = array())
    {
        $defaultOptions = $this->container->getParameter('thrace_media.jwplayer.options');
        $configs = array(
            'key' => $defaultOptions['key'],
            'html5player' => $defaultOptions['html5player'],
            'flashplayer' => $defaultOptions['flashplayer'],
            'type' => $media->getType(),
            'id' => uniqid('thrace_media', true),
            'file' => $this->container->get('router')->generate('thrace_media_render', array(
                'name' => $media->getMediaPath(),
                'hash' => $media->getHash()
            ), true)
        );
        
        $configs = array_replace_recursive($configs, $options);
        
        return $this->container->get('templating')
            ->render('ThraceMediaBundle:Media:media.html.twig',
                array('media' => $media, 'configs' => $configs)
            )
        ;
    }
663337
public function videoSessioncode($options=array()){

        $data = array();
        

        $data = array_merge($data, $options);

        return $this->request($this->videoSessioncodeUrl, $data);
    }
1144525
public function media($media, $format, $options = [])
    {
        return $this->getTwigExtension()->media($media, $format, $options);
    }
1143332
public function render(array $options = array())
    {
        if (!empty($options['providers'])) {
            $outputProviders = array();
            foreach ($options['providers'] as $provider) {
                $outputProviders[] = $this->getProvider($provider);
            }
        } else {
            $outputProviders = $this->getDefaultProviders();
        }

        unset($options['providers']);

        $renderedProviders = array();
        foreach ($outputProviders as $label => $provider) {
            $provider->setTemplateEngine($this->templateEngine);
            $provider->setTemplateName($options['template']);
            $provider->setLabel($label);
            $renderedProviders[$label] = $provider->render($options);
        }

        return $renderedProviders;
    }
285886
public function getPlayerUrl($video, $options = array()) {
        $helper = $this->_getSpecializedHelper($video);
        return $helper->getPlayerUrl($video, $options);
    }