A powerful Strapi plugin to easily manage your videos and integrate them in your project
A powerful Strapi plugin to easily manage your videos and integrate them in your project.
This plugin provides the ability to upload content via a file to upload to api.video.
We're available on the Strapi Marketplace.
(Use yarn to install this plugin within your Strapi project (recommended). Install yarn with these docs.)
yarn add @api.video/strapi-uploader-plugin@latest
After successful installation you've to re-build your Strapi instance. To archive that simply use:
yarn build
yarn develop
or just run Strapi in the development mode with --watch-admin
option:
yarn develop --watch-admin
The api-video-uploader plugin should appear in the Plugins section of Strapi sidebar after you run app again.
As a next step you must configure your the plugin by the way you want to. See Configuration section.
All done. Enjoy 🎉
api.video
Complete installation requirements are exact same as for Strapi itself and can be found in the documentation under Installation Requirements.
Minimum environment requirements
>=14.19.1 <=18.x.x
>=6.x.x
In our minimum support we're following official Node.js releases timelines.
Supported Strapi versions:
This plugin is designed for Strapi v4 and is not working with v3.x.
We recommend always using the latest version of Strapi to start your new projects.
In order for this plugin to communicate with api.video, a configuration needs to be set for the plugin before it can be used.
With your Api Key, navigate to the Settings view within Strapi and click the "General" section under API.VIDEO UPLOADER.
On this view, enter your Api Key and click the Save button.
To resolve Content Security Policy directive issue and to visualize the thumbnail and the video, we need to configure external ressource like embed.api.video
and cdn.api.video/vod/
. Modify the middlewares.js
file like below:
1// config/middlewares.js
2module.exports = ({ env }) => [
3 'strapi::errors',
4 {
5 name: 'strapi::security',
6 config: {
7 contentSecurityPolicy: {
8 useDefaults: true,
9 directives: {
10 'connect-src': ["'self'", 'https:'],
11 'img-src': ["'self'", 'data:', 'blob:', 'embed.api.video', 'cdn.api.video/vod/'],
12 'frame-src': ["'self'", 'data:', 'blob:', 'embed.api.video'],
13 upgradeInsecureRequests: null,
14 },
15 },
16 },
17 },
18 'strapi::cors',
19 'strapi::poweredBy',
20 'strapi::logger',
21 'strapi::query',
22 'strapi::body',
23 'strapi::favicon',
24 'strapi::public',
25]
With the Community Edition of Strapi, any user with the role of super administrator can configure and use the plugin.
With Strapi Enterprise the permissions can be fine tuned according to the role of users. This is done in the Roles view in the Administration Panel.
By default we send the value Strapi
as Upload source
to keep track. This value is set by default and can't be changed.
Contributions, issues and feature requests are welcome!
If you encounter an error or have questions, please feel free to file inquiries on the Issues page for @api.video/strapi-uploader-plugin
.
npm install @api.video/strapi-uploader-plugin
Check out the available plugin resources that will help you to develop your plugin or provider and get it listed on the marketplace.