定制 heimrichhannot/contao-video-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

  1. 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
  2. Clear cache and check for database updates after update your config

  3. 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.
  4. 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:

Documentation

Developer documentation

Configuration reference

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 我们能提供哪些服务?
定制开发 / 二次开发

基于 heimrichhannot/contao-video-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 3.52k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 25
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 7
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2020-03-16