heimrichhannot / contao-video-bundle
This bundle brings enhanced video embedding support to contao with additional privacy options.
Installs: 2 625
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 8
Forks: 2
Open Issues: 3
Type:contao-bundle
Requires
- php: ^7.4 || ^8.0
- contao/core-bundle: ^4.9
- heimrichhannot/contao-config-element-type-bundle: ^0.2
- heimrichhannot/contao-encore-contracts: ^1.0
- heimrichhannot/contao-multi-column-editor-bundle: ^2.13
- heimrichhannot/contao-twig-support-bundle: ^1.5
- heimrichhannot/contao-utils-bundle: ^2.224
- symfony/deprecation-contracts: ^2.0 || ^3.0
- symfony/http-kernel: ^4.4 || ^5.4
- symfony/service-contracts: ^1.0 || ^2.0 || ^3.0
- symfony/translation-contracts: ^1.0 || ^2.0 || ^3.0
Suggests
- heimrichhannot/contao-encore-bundle: Manage dependencies with Symfony Webpack Encore.
Conflicts
- heimrichhannot/contao-privacy-center-bundle: <2.8
- dev-master
- 1.7.1
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.1
- 1.3.0
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.12.0
- 0.11.5
- 0.11.4
- 0.11.3
- 0.11.2
- 0.11.1
- 0.11.0
- 0.10.4
- 0.10.3
- 0.10.2
- 0.10.1
- 0.10.0
- 0.9.1
- 0.9.0
- 0.8.2
- 0.8.1
- 0.8.0
- 0.7.2
- 0.7.1
- 0.7.0
- 0.6.0
- 0.5.4
- 0.5.3
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.0
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.2
- 0.2.1
- 0.2.0
- v0.1.x-dev
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- dev-feature/encore_contracts
- dev-symfony-5-compatibility
- dev-add_alternative_text
- dev-configuration
- dev-add_video_from_file
- dev-configelementtype
This package is auto-updated.
Last update: 2024-11-27 11:06:36 UTC
README
This bundle brings enhanced video embedding support to contao with additional privacy options and is the successor of our YouTube Bundle.
Features
- Support for YouTube and Vimeo as video providers
- Support for Videos from Contao File System
- integration of multiple sources for one video
- integration for subtitles
- integration for madia-queries on video tag
- Out-of-the-box-usage:
- Content Element
- News
- enhance your users privacy with preview images, privacy notice before playing and no cookie urls
- responsive Videos
- expandable architecture
- Encore Bundle support
- List Bundle and Reader Bundle support
- Privacy Center Bundle support
Usage
Install
Install with contao manager or composer:
composer require heimrichhannot/contao-video-bundle
Update database afterwards.
Setup
-
Setup the configuration to your likes (see configuration reference for all options):
huh_video: # Enable support for news entity. enable_news_support: false # Enable if by default no cookie embed urls should be used, if supported by the video provider. This can be overwritten on root pages. default_use_no_cookie_video_url: false # Enable if by default a privacy message should be displayed before playing the video. This can be overwritten on root pages. default_display_privacy_notice: false
-
Clear cache and check for database updates after update your config
-
Adjust template settings on root page if needed. You can also overwrite the default configuration there.
- If privacy center bundle installed, configure the integration there.
-
Start adding videos as content element or to your news.
- Content Element: Select "Video" content element
- News:
- Check "Add video" in your news item
- output "videoplayer" variable in your news template
Help
IE Support
To make video bundle work in IE, you have to add polyfills:
- https://developer.mozilla.org/en-US/docs/Web/API/NodeList/forEach
- https://developer.mozilla.org/en-US/docs/Web/API/Element/matches
Documentation
Acknowledgments
The creation of this bundle and the vimeo integration was supported by Liebchen+Liebchen GmbH.