This package for Flow adds support for oEmbed.
This package also contain a Neos Node Type definition to integrate oEmbed resources in your Neos project.
created by Dominique Feyer <[email protected]> http://www.ttree.ch
- Consume oEmbed resource
- Fluid oEmbed ViewHelper
- Neos Node Type definition
You need to install the package with composer, nothing else.
You can simply send your oEmbed resource URI to the ViewHelper, like this:
{namespace o=Ttree\Oembed\ViewHelpers} <o:embed uri="{uri}" />
Responsive Design is a common need for modern website. If you need responsive layout for your video, you can add the following LESS, or in CSS, to your site:
.oembed-video-container { position: relative; margin: 20px 0; padding-bottom: 56.25%; padding-top: 30px; height: 0; overflow: hidden; > iframe, > object, > embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } }
This example come from an nice article from Ruairi Phelan, published on CyberDesignCraft_.