项目作者: colorfield
项目描述 :
Drupal 8 Vimeo Upload
高级语言: JavaScript
项目地址: git://github.com/colorfield/vimeo_upload.git
Vimeo Upload
Javascript based upload to get a video URL from Vimeo without having
to upload it on Drupal first. The result URL can then be used with
Video Embed Field
or Media Entity Vimeo.
Work in progress
Use case
- When you want to improve AX, so authors do not have to connect to
Vimeo and go back to Drupal. - When you do not want to store the video file on your server.
Vimeo field Uploader
Installation
1/ Install and enable this module as usual
composer require drupal/vimeo_upload
2/ Download this repository
in the libraries directory.
You can download it via Drush
drush vimeo-upload-plugin
(or alias drush vudl
)
So you have /web/libraries/vimeo-upload/vimeo-upload.js
3/ Enable the module
drush en vimeo_upload
Configuration
Vimeo
- Create a Vimeo account
- Create a Vimeo app
- Request upload access for this application
- Generate access token for your application on the Authentication tab with
following permissions: Public, Private, Edit, Upload.
Drupal
- Go to the Vimeo Upload configuration page
/admin/config/services/vimeo_upload and set your access token. - Upload a video via /admin/vimeo_upload/upload
Further integration with Video Embed Field and Media Entity Vimeo is on its way.
Roadmap
- Configuration form with access token encryption
- Global admin UI for video upload
- Per field form formatter for Video Embed Field
- Per field form formatter for Media Entity Vimeo