Git Product home page Git Product logo

silverstripe-video's Introduction

silverstripe-video

Adds a video as a file type, creates mp4, webm and ogv versions and a poster of the video through ffmpeg

Features

  • Adds a new video file type to Silverstripe like e.g. Image

    class MyDataObject { private static $has_one('Video' => 'Video'); }

  • Creates versions of the video in different formats suitable to use with the HTML video tag, namely mp4, webm and ogv

  • Creates a poster image as an Image object so you can use all the image methods for resizing, padding and cropping

  • Determins and stores the duration of the video

  • Uses a replacable video backend to create the versions and posters, currently there is only a FFMPEG backend

  • Lets you playback the video in the backend

  • Supplys methods to customise the display in the template

    <% if $Video %> $Video.setSize(480, 360).controls.autoplay <% end_if %>

silverstripe-video's People

Contributors

smindel avatar irkeepin avatar

Stargazers

 avatar Nic avatar David Toews avatar Naomi Guyer avatar  avatar  avatar

Watchers

 avatar James Cloos avatar David Toews avatar

silverstripe-video's Issues

Not compatible with SS4

I've started to port this module to SS4, though I don't know if I can put much more time to it at this point. You can see where I got here:

https://github.com/davejtoews/silverstripe-video/tree/composer-ss4

Outstanding issues with it at this point:

  1. Template not working. This is probably just a matter of changing folder structure to respect namespaces.
  2. Wrong file paths. _resampled/ is placed in the root directory. Adding /public/ in the code makes it get created in the right place but then the URLs are wrong.
  3. Files not being created. The markup is generated, but there's no name for the files, just /path/.mp4 and nothing is appearing in the folder where the files should be being created.

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.