Download the PHP package markocupic/bootstrap_responsive_youtube_embed without Composer
On this page you can find all versions of the php package markocupic/bootstrap_responsive_youtube_embed. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package bootstrap_responsive_youtube_embed

Contao Bootstrap Responsive Youtube Embed
This bundle provides a Youtube/Vimeo/Dropbox Player content element for the Contao CMS. Create responsive video embeds based on the width of the parent by creating an intrinsic ratio that scales on any device.
Requirements
- Contao 5.3 or later, including Contao 6
- Bootstrap 5 (the player uses the
ratiohelper classes)
Video Id
In the backend you have to fill in the video id input.
| Youtube | Vimeo | Dropbox |
|---|---|---|
| https://www.youtube.com/watch?v=###movieId### | https://vimeo.com/###movieId### | https://dl.dropboxusercontent.com/s/###movieId### |
| Get the shareable youtube link: https://www.youtube.com/watch?v=a7D3A_wwl0g | Get the shareable vimeo link: https://vimeo.com/479750109 | Get the shareabe dropbox link: https://dl.dropboxusercontent.com/s/wtx6x44y61wsxj/sample.mp4?dl=0 |
| Everything from "?v=" belongs to the movieId => a7D3A_wwl0g | Everything from ".com/" belongs to the movieId => 479750109 | Everything from ".com/s/" belongs to the movieId => wtx6x44y61wsxj/sample.mp4?dl=0 |
Contao Inserttag
The extension supports Contao Insert tags to embed videos.
Options: autoplay (1 or true), caption, playerAspectRatio (1x1, 4x3, 16x9, 21x9) and playerType (youtube, vimeo, dropbox). Without playerType, numeric ids are treated as Vimeo videos and all other ids as YouTube videos.
Templates
content_element/bootstrap_youtube_responsive_embed.html.twig: the content elementcomponent/_bootstrap_youtube_responsive_embed.html.twig: the player itself, used by the content element and the insert tag
Both templates use the variables player_type, movie_id, aspect_ratio, autoplay and caption. The component provides the blocks player and caption.
Upgrading to version 3
The template variables have been renamed (e.g. playerAspectRatio is now aspect_ratio, movieId is now movie_id) and the player has been moved to the component template. Custom templates of the content element have to be adjusted.
All versions of bootstrap_responsive_youtube_embed with dependencies
contao/core-bundle Version ^5.3 || ^6.0
doctrine/dbal Version ^3.6 || ^4.0
symfony/config Version ^6.4 || ^7.0 || ^8.0
symfony/dependency-injection Version ^6.4 || ^7.0 || ^8.0
symfony/http-foundation Version ^6.4 || ^7.0 || ^8.0
symfony/http-kernel Version ^6.4 || ^7.0 || ^8.0
symfony/translation-contracts Version ^3.0
twig/twig Version ^3.8