heimrichhannot / contao-video-bundle
此扩展包为contao增加了增强的视频嵌入支持,并提供了额外的隐私选项。
1.7.1
2024-02-27 09:19 UTC
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-08-27 10:35:29 UTC
README
此扩展包为contao增加了增强的视频嵌入支持,并提供了额外的隐私选项,并且是我们的YouTube Bundle的后续版本。
功能
- 支持YouTube和Vimeo作为视频提供商
- 支持从Contao文件系统中的视频
- 集成多个来源的视频
- 集成字幕
- 集成视频标签上的媒体查询
- 即开即用
- 内容元素
- 新闻
- 通过预览图片、播放前的隐私通知和无cookie URL增强用户的隐私
- 响应式视频
- 可扩展的架构
- Encore Bundle 支持
- List Bundle 和 Reader Bundle 支持
- 隐私中心 Bundle 支持
使用方法
安装
使用contao manager或composer安装
composer require heimrichhannot/contao-video-bundle
安装后更新数据库。
设置
-
设置配置到您喜欢的样子(有关所有选项的参考,请参阅配置参考)
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
-
更新配置后清除缓存并检查数据库更新
-
如有需要,在根页面上调整模板设置。您也可以在那里覆盖默认配置。
- 如果已安装隐私中心 Bundle,请在那里配置集成。
-
开始添加视频作为内容元素或新闻。
- 内容元素:选择“视频”内容元素
- 新闻
- 在您的新闻条目中检查“添加视频”
- 在您的新闻模板中输出“videoplayer”变量
帮助
IE 支持
要使视频扩展包在IE中工作,您必须添加polyfills
- https://mdn.org.cn/en-US/docs/Web/API/NodeList/forEach
- https://mdn.org.cn/en-US/docs/Web/API/Element/matches
文档
致谢
此扩展包的创建和vimeo集成得到了Liebchen+Liebchen GmbH的支持。