Add videos from youtube or vimeo. Copy and paste the URL into the field and that is it!
- Download the zip package
- Create a folder under addons/shared_addons/field_types/ and name it video_url
- Copy and paste the zip content.
That's it!
To access the final iframe in the plugin use {{ field_slud:html }}, the iframe already has the parameters selected in the field configuration.
The field type has the following properties when you set it up:
iFrame heigth: if is not set, it will take a default value of 315px;
iFrame width: if is not set it will take a default value of 560px;
Autoplay: By defaul the video will not autoplay, setting this to yes will make the video start once the page loads