Skip to content

andrelohmann/silverstripe-vimeo_video

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Silverstripe Vimeo Video File - (c) Eduard Malyj (and others) 2016

Maintainer Contact

  • Eduard Malyj <eduard.malyj (at) gmail (dot) com>

  • Andre Lohmann (Nickname: andrelohmann)

Requirements

Silverstripe 3.3.x

Overview

this module offes an extended VideoFile Object with automatically upload functionality to your vimeo pro account. the module extends andrelohmann-silverstripe/mediafiles

you need to create an app on https://developer.vimeo.com/apps/new and afterwards request upload for this application (takes up to 5 days) and create an access token

Usage

Add Vimeo Credentials to your _ss_environment.php

define('VIMEO_CLIENT_ID', 'YOUR_CLIENT_ID');
define('VIMEO_CLIENT_SECRET', 'YOUR_CLIENT_SECRET');
define('VIMEO_ACCESS_TOKEN', 'YOUR_ACCESS_TOKEN');
define('VIMEO_ALBUM_ID', 'YOUR_ALBUM_ID'); // optional, put every uploaded video in to a defined album
define('VIMEO_PLAYER_PRESET_ID', 'YOUR_PLAYER_PRESET_ID'); // optional, set a embedded preset to every uploaded video

Use the following method to get the ids of your albums and presets

curl -X GET -H "Authorization: bearer VIMEO_ACCESS_TOKEN" https://api.vimeo.com/me/albums
curl -X GET -H "Authorization: bearer VIMEO_ACCESS_TOKEN" https://api.vimeo.com/me/presets

About

Silverstripe module for uploading a videofile to vimeo

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 99.4%
  • ApacheConf 0.6%