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
- 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.
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
- 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.
- 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.
- 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