Git Product home page Git Product logo

embed-bundle's Introduction

Alchemy Embed Bundle Bower version

Installation

Add embed bundle to Phraseanet:

composer require alchemy/embed-bundle:~0.4.0

Add embed players to Phraseanet:

npm install alchemy-embed-medias#~0.4.0 --save

Deploy embed players in Phraseanet assets path:

gulp build-alchemy-embed-medias

Configuration

configuration options for phraseanet in config/configuration.yml

property type description
video.player string active player, embed bundle ship with videojs and flowplayer
video.autoplay boolean autoplay as default behavior
video. coverSubdef string define a subdefinition for video cover, default is thumbnail
video.available-speeds number[] playback available speeds
audio.player string active video player, embed bundle ship with videojs
audio.autoplay boolean autoplay as default behavior
document.enable_pdfjs boolean use pdfjs instead of flexbox for pdf only
document.player string active document player, embed bundle ship with flexbox

yaml example:

embed_bundle:
    video:
        player: videojs
        autoplay: false
        coverSubdef: previewx4
        available-speeds:
          - 1
          - '1.5'
          - 3
    audio:
        player: videojs
        autoplay: false
    document:
        player: flexpaper
        enable-pdfjs: true

Field mapping

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

field name vtt kind description
VideoTextTrack subtitle will add a subtitle track with a label named default
VideoTextTrackFR subtitle will add a subtitle track with a label named fr
VideoTextTrack* subtitle will add a subtitle track with a label named with field name placeholder
VideoTextTrackChapters chapters will add a chapter track - require JSON content

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

embed-bundle's People

Contributors

bburnichon avatar lostdalek avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.