dynamic / silverstripe-html5video
HTML5Video 是一个用于将 HTML5 视频添加到您网站的 SilverStripe 模块。
2.0.1
2019-02-12 17:31 UTC
Requires
- silverstripe/recipe-cms: ^1@dev || ^4@dev
- silverstripe/vendor-plugin: ^1@dev
Requires (Dev)
Suggests
- micschk/silverstripe-chunkeduploadfield: Allows for large file uploads in CMS
README
#SilverStripe HTML5Video
SilverStripe HTML5Video 是一个将 HTML5 视频添加到您网站的 SilverStripe 模块。
功能包括
- 上传 MP4、WebM 和 Ogg 格式
- VideoJS 视频播放器
- 为旧浏览器提供 Flash 降级支持
安装
要求
- SilverStripe 3.1.x 或更高版本
Composer 安装
"require": { "dynamic/silverstripe-html5video": "*" }
Git 安装
git clone git@github.com:dynamic/silverstripe-html5video.git html5video
推荐附加组件
以下附加组件是可选的,但在安装后可以增强 HTML5Video
- SilverStripe ChunkedUploadField 允许上传大文件
设置
安装 HTML5Video 后,运行 dev/build 来设置数据库。
使用
在 CMS 中创建一个 VideoGroup 页面。将 HTML5Video 页面作为子页面添加并上传您的视频。VideoGroup 将显示所有子视频的预览,并将链接到每个 HTML5Video 页面以查看视频。
配置
VideoGroup 有一些配置选项,您可以在 config.yml
文件中覆盖它们
page_length
- 每页视频数。默认为12
pagination_get_var
- 用于分页链接的 GET 变量。默认为s
include_child_groups
- 包括嵌套 VideoGroups 的视频。默认为true
VideoGroup:
page_length: 9
pagination_get_var: start
include_child_groups: false
更多信息
维护者联系方式
链接
许可证
Copyright (c) 2015, Dynamic Inc
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.