No commit activity in last 3 years
No release in over 3 years
Scrivito video Widget.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

ScrivitoVideoWidget

A Scrivito widget that lets you place a video onto a page using Projekktor

Installation

Add this line to your application's Gemfile:

gem 'scrivito_video_widget'

Add this line to your application stylesheet manifest:

*= require scrivito_video_widget

If you are using sass-rails, use this for loading the css instead:

@import 'projekktor';
@import 'scrivito_video_widget/dynamic_video_container';

Add this line to your application JavaScript manifest:

//= require scrivito_video_widget

Video class

If your app already includes a class named Video, please make sure that it defines the blob attribute as a binary.

class Video < Obj
  attribute :blob, :binary
  ...
end

Localization

The following code represents the default localization for English. Copy it to your en.yml and change it if necessary:

en:
  scrivito_video_widget:
    thumbnail:
      title: Video
      description: Displays a video player for the given video file
    details:
      source: Source
      poster: Poster