alchemy / embed-bundle
嵌入式资源包
4.1.0
2018-04-25 09:10 UTC
Requires (Dev)
- phpunit/phpunit: ~6.0
- silex/silex: ~2.0
- squizlabs/php_codesniffer: ^2.3
- symfony/symfony: ~2.6
- 4.1.0
- 3.0.x-dev
- 2.0.x-dev
- 2.0.16
- 2.0.15
- 2.0.14
- 2.0.13
- 2.0.12
- 2.0.11
- 2.0.10
- 2.0.9
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.0.x-dev
- dev-master / 1.0.x-dev
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.5.3
- v0.5.2
- v0.5.1
- v0.4.4
- v0.4.3
- v0.4.2
- v0.4.1
- v0.4.0
- 0.3.x-dev
- 0.3.10
- 0.3.9
- 0.3.8
- 0.3.7
- 0.3.6
- 0.3.5
- v0.3.4
- v0.3.3
- v0.3.2
- v0.3.1
- v0.3.0
- v0.2.0
- v0.1.1
- v0.1.0
- dev-PHRAS-3935-use-instance_id
- dev-PHRAS-3930-fix-matomo-media
- dev-PHRAS-3930-matomo-media-player-tracking
- dev-dependabot/npm_and_yarn/qs-6.5.3
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/terser-5.14.2
- dev-dependabot/npm_and_yarn/jquery-3.5.0
- dev-dependabot/npm_and_yarn/video.js-7.14.3
- dev-dependabot/npm_and_yarn/ini-1.3.8
- dev-dependabot/npm_and_yarn/underscore-1.12.1
- dev-dependabot/npm_and_yarn/lodash.merge-4.6.2
- dev-PHRAS-3514_pdf-preview-blank_bis
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/yargs-parser-5.0.1
- dev-dependabot/npm_and_yarn/y18n-3.2.2
- dev-dependabot/npm_and_yarn/mixin-deep-1.3.2
- dev-SILEX2
This package is not auto-updated.
Last update: 2024-09-14 19:20:17 UTC
README
安装
将嵌入式包添加到Phraseanet
composer require alchemy/embed-bundle:^2.0.0
在Phraseanet的资产路径中部署嵌入式播放器
gulp build-alchemy-embed
配置
在 config/configuration.yml
中为phraseanet配置选项
yaml 示例
embed_bundle:
video:
player: videojs
autoplay: false
message_start: StartOfMessage
cover_subdef: previewx4
available_speeds:
- 1
- '1.5'
- 3
audio:
player: videojs
autoplay: false
cover_subdef: thumbnail
document:
player: flexpaper
enable_pdfjs: true
字段映射
视频字幕(字幕和章节)可以通过Phraseanet字段设置添加:字段名称匹配表
VTT 文件格式
字幕有效字段内容
WEBVTT
1
00:00:00.000 --> 00:00:04.000
This is a sample subtitle track <b>with</b> formating
Chapter 2
00:00:04.000 --> 00:00:08.000
As you can see, that's <c.highlight>easy</c>
章节有效字段内容
WEBVTT
Chapter 1
00:00:00.000 --> 00:00:04.000
{
"title":"Chapter 1",
"image":"asset/img/chapter_1.png"
}
Chapter 2
00:00:04.000 --> 00:00:08.000
{
"title":"Chapter 2",
"image":"asset/img/chapter_2.png"
}