alchemy/embed-bundle

Embed resources bundle

Installs: 600

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 6

Forks: 9

Open Issues: 13

Language:TypeScript


README

Installation

Add embed bundle to Phraseanet:

composer require alchemy/embed-bundle:^2.0.0

Deploy embed players in Phraseanet assets path:

gulp build-alchemy-embed

Configuration

configuration options for phraseanet in config/configuration.yml

yaml example:

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

Field mapping

Video captions (subtitles and chapters) can be added via Phraseanet Fields setup: field name matching table:

VTT file formats

Subtitles valid field content

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>

Chapters valid field content

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"
}