Download the PHP package innoweb/silverstripe-hostedvideos without Composer
On this page you can find all versions of the php package innoweb/silverstripe-hostedvideos. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download innoweb/silverstripe-hostedvideos
More information about innoweb/silverstripe-hostedvideos
Files in innoweb/silverstripe-hostedvideos
Package silverstripe-hostedvideos
Short Description adds video handling to objects. supports locally hosted videos as well as YouTube and Vimeo.
License BSD-3-Clause
Informations about the package silverstripe-hostedvideos
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.
This module allows adding locally hosted, YouTube or Vimeo videos to any object.
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)
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.
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.
Insert $HostedVideo
in your template, wherever you want your video to show.
Configuration
video sources
By default all three video sources are enabled. You can disable any of them using the following config options:
video resolutions
By default there are two video resultions configured for self hosted videos:
You can change these settings and add more resultions if you would like to give the user more options.
display size
You can specify the display size of the videos in your yml config:
The default CSS treats all videos as having a 16:9 ratio (56.25% height).
formats and media types
You can specify the media types allowed for your self hosted videos in the yml config:
Please make sure the configured media types are also defined on your server (.htaccess for Apache):
All versions of silverstripe-hostedvideos with dependencies
micschk/silverstripe-chunkeduploadfield Version 1.1
unclecheese/display-logic Version ~1.7