hashandsalt/kirby3-video
Composer 安装命令:
composer require hashandsalt/kirby3-video
包简介
Kirby 3 Video embed plugin
README 文档
README
A Kirby tag and snippet for rendering video players inside textareas, and a custom block for use with the new Editor field (Kirby 3.5 required).
Commerical Usage
This plugin is free but if you use it in a commercial project please consider to
Installation
Download
Download and copy this repository to /site/plugins/kirby3-video.
Composer
composer require hashandsalt/kirby3-video
Usage
Minimal:
(vidembed: yourfile.mp4 poster: yourposter.jpg)
You can set your own snippet to roll your own player code:
(vidembed: yourfile.mp4 poster: yourposter.jpg snippet: yoursnippet)
Look inside the plugin folder for an example snippet.
The following is available to you for use in the snippets:
$video // file object for the video file $videourl // URL of the video file $poster // file object for the poster image file $posterurl // URL of the poster image file $width // Video Width $height // Video height $class // Container class $vidclass // Video tag class $preload // Preload attribute $caption // Set a caption for under the video $controls // Controls attribute $autoplay // Autoplay attribute (automatically sets muted to true) $loop // Loop attribute $playsinline // Playsinline attribute (for mobile clients) $title // Video Title $alt // Poster Alt tag
Editor Block
The plugin now includes and editor block (Kirby 3.5+ Required).
Add -localvideo to your list of blocks to use it.
Known Issues
The plugin makes use of ->file() - be aware that this uses the first image or first video on the page if the desired one is not found. This is by design.
License
MIT
hashandsalt/kirby3-video 适用场景与选型建议
hashandsalt/kirby3-video 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.12k 次下载、GitHub Stars 达 25, 最近一次更新时间为 2019 年 04 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 hashandsalt/kirby3-video 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 hashandsalt/kirby3-video 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1.12k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 25
- 点击次数: 23
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-04-15