2017 © Pedro Peláez
 

silverstripe-module silverstripe-hostedvideos

adds video handling to objects. supports locally hosted videos as well as YouTube and Vimeo.

image

innoweb/silverstripe-hostedvideos

adds video handling to objects. supports locally hosted videos as well as YouTube and Vimeo.

  • Thursday, September 14, 2017
  • by xini
  • Repository
  • 2 Watchers
  • 5 Stars
  • 213 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 10 Versions
  • 30 % Grown

The README.md

Self-hosted video integration (also supporting YouTube and Vimeo videos)

This is an archived project and is no longer maintained. Please do not file issues or pull-requests against this repo. If you wish to continue to develop this code yourself, we recommend you fork it or contact us., (*1)

This module allows adding locally hosted, YouTube or Vimeo videos to any object., (*2)

It uses * [ChunkedUploadField] (https://github.com/micschk/silverstripe-chunkeduploadfield) to allow uploads larger than the configured PHP limits * [afterglow video player] (https://afterglowplayer.com/) for locally stored videos (which allows SD and HD versions of videos) * native YouTube and Vimeo embedding for those videos (afterglow could be used here too, but then the videos wouldn't work without javascript), (*3)

When adding Vimeo and YouTube videos, you can add the video code or the whole URL. If URLs are given, the URLs are parsed the video codes extracted., (*4)

Usage

Add the HostedVideoExtension to any page/dataobject you want to contain a video. This will add the fields for the object to contain one single video., (*5)

Insert $HostedVideo in your template, wherever you want your video to show., (*6)

Configuration

video sources

By default all three video sources are enabled. You can disable any of them using the following config options:, (*7)

HostedVideoExtension:
  disable_selfhosted: true
  disable_vimeo: true
  disable_youtube: true

video resolutions

By default there are two video resultions configured for self hosted videos:, (*8)

HostedVideoExtension:
  resolutions:
    SD: 480
    HD: 720

You can change these settings and add more resultions if you would like to give the user more options., (*9)

display size

You can specify the display size of the videos in your yml config:, (*10)

HostedVideoExtension:
  display_size:
    width: 560
    height: 315

The default CSS treats all videos as having a 16:9 ratio (56.25% height)., (*11)

formats and media types

You can specify the media types allowed for your self hosted videos in the yml config:, (*12)

HostedVideoExtension:
  formats:
    mp4:
      type: 'video/mp4'
      label: 'MP4 (H.264 with AAC or MP3 audio)'
    webm:
      type: 'video/webm'
      label: 'WebM (VP8/VP9 with Vorbis or Opus audio)'
    ogg:
      type: 'video/ogg'
      label: 'Ogg (Theora with Vorbis audio)'

Please make sure the configured media types are also defined on your server (.htaccess for Apache):, (*13)

AddType video/mp4 .mp4
AddType video/webm .webm
AddType video/ogg .ogg

The Versions

14/09 2017

dev-master

9999999-dev

adds video handling to objects. supports locally hosted videos as well as YouTube and Vimeo.

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe video youtube vimeo self-hosted

14/09 2017

1.1.1

1.1.1.0

adds video handling to objects. supports locally hosted videos as well as YouTube and Vimeo.

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe video youtube vimeo self-hosted

14/09 2017

1.1.0

1.1.0.0

adds video handling to objects. supports locally hosted videos as well as YouTube and Vimeo.

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe video youtube vimeo self-hosted

02/03 2017

1.0.6

1.0.6.0

adds video handling to objects. supports locally hosted videos as well as YouTube and Vimeo.

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe video youtube vimeo self-hosted

17/02 2017

1.0.5

1.0.5.0

adds video handling to objects. supports locally hosted videos as well as YouTube and Vimeo.

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe video youtube vimeo self-hosted

27/12 2016

1.0.4

1.0.4.0

adds video handling to objects. supports locally hosted videos as well as YouTube and Vimeo.

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe video youtube vimeo self-hosted

21/12 2016

1.0.3

1.0.3.0

adds video handling to objects. supports locally hosted videos as well as YouTube and Vimeo.

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe video youtube vimeo self-hosted

20/12 2016

1.0.2

1.0.2.0

adds video handling to objects. supports locally hosted videos as well as YouTube and Vimeo.

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe video youtube vimeo self-hosted

20/12 2016

1.0.1

1.0.1.0

adds video handling to objects. supports locally hosted videos as well as YouTube and Vimeo.

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe video youtube vimeo self-hosted

20/12 2016

1.0.0

1.0.0.0

adds video handling to objects. supports locally hosted videos as well as YouTube and Vimeo.

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe video youtube vimeo self-hosted