heimrichhannot/contao-video-bundle
Composer 安装命令:
composer require heimrichhannot/contao-video-bundle
包简介
This bundle brings enhanced video embedding support to contao with additional privacy options.
README 文档
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
Customize
Add custom video link texts
Add your wanted translation as symfony translation withing huh_video.fields.videoLinkText key. Example:
# Projekt: app/Resources/translations/messages.en.yml # Bundle: src/Resources/translations/messages.en.yml huh_video: fields: videoLinkText: amazing: "Show this amazing video!"
Add custom media queries for file system videos
The name is optional and is used for better explanation to the backend user
huh_video: media_queries: xxl: query: "(min-width: 1200px)" name: "Desktop"
Note: Some browsers do not support media-queries on video element, even more it breaks autoplay. So just remove media-queries(it is not mandatory - just let the media-query field empty) from video source, if you want all browsers to autoplay on load.
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.
heimrichhannot/contao-video-bundle 适用场景与选型建议
heimrichhannot/contao-video-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.52k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2020 年 03 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「youtube」 「video」 「responsive」 「content」 「contao」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 heimrichhannot/contao-video-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 heimrichhannot/contao-video-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 heimrichhannot/contao-video-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Easy to use SDK with grabber for multiple platforms at once like YouTube, Dailymotion, Facebook and more.
ResponsiveImages Plugin for October CMS
The yii2-videojs-widget is a Yii 2 wrapper for the [video.js](http://www.videojs.com/). A JavaScript and CSS library that makes it easier to work with and build on HTML5 video. This is also known as an HTML5 Video Player.
TYPO3 extension for sending responsive email templates
♺ Laravel Nova Hashids card. Convert your ids.
Display a video using native HTML5 video
统计信息
- 总下载量: 3.52k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 25
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2020-03-16