2.0.0-dev • Published 7 years ago

alchemy-embed-medias v2.0.0-dev

Weekly downloads
30
License
-
Repository
-
Last release
7 years ago

Alchemy Embed Bundle Bower version

Installation

Add embed bundle to Phraseanet:

composer require alchemy/embed-bundle:^0.5.0

Add embed players to Phraseanet:

npm install alchemy-embed-medias@^0.5.0

Deploy embed players in Phraseanet assets path:

gulp build-alchemy-embed-medias

Configuration

configuration options for phraseanet in config/configuration.yml

propertytypedescription
video.playerstringactive player, embed bundle ship with videojs and flowplayer
video.autoplaybooleanautoplay as default behavior
video.message_startstringStartOfMessage as default behavior , where 'StartOfMessage' is a field created from Phraseanet admin
video. coverSubdefstringdefine a subdefinition for video cover, default is thumbnail
video.available-speedsnumber[]playback available speeds
audio.playerstringactive video player, embed bundle ship with videojs
audio.autoplaybooleanautoplay as default behavior
document.enable_pdfjsbooleanuse pdfjs instead of flexbox for pdf only
document.playerstringactive document player, embed bundle ship with flexbox

yaml example:

embed_bundle:
    video:
        player: videojs
        autoplay: false
        message_start: StartOfMessage
        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 namevtt kinddescription
VideoTextTracksubtitlewill add a subtitle track with a label named default
VideoTextTrackFRsubtitlewill add a subtitle track with a label named fr
VideoTextTrack*subtitlewill add a subtitle track with a label named with field name placeholder
VideoTextTrackChapterschapterswill 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"
}
2.0.0-dev

7 years ago

0.5.5-dev

7 years ago

0.5.5

7 years ago

0.5.4

8 years ago

0.5.3

8 years ago

0.5.2

8 years ago

0.5.1

8 years ago

0.4.4

10 years ago

0.4.3

10 years ago

0.4.2

10 years ago

0.4.1

10 years ago

0.5.0

10 years ago

0.4.0

10 years ago

0.3.4

10 years ago

0.3.3

10 years ago