How to insert a video

Last updated on
4 July 2022

Requirements

  1. Make sure you've installed Video Embed Field module.
  2. Enable Cloudinary video module.

The structure

The new media type Cloudinary video will be automatically created after enabling the module. The media type contains the following fields:

  • Video Url (field_media_video_embed_field)

Video Url field is using Video Embed field type with Cloudinary provider and stores a video URL.

Cloudinary video media has a Thumbnail field to display the video poster. This is very useful if you want to display an image on a content teaser from the referenced video. Besides, a video thumbnail can be used for SEO purposes, e.g. og:image metatag.

The module does store video thumbnails in local files.

Out of the box, the module provides the new block content type Cloudinary video with the following fields:

  • Video (field_cloudinary_media) is a reference to Cloudinary video media.

Place a video on a page

You can use Cloudinary video block to insert it into the layout builder of your page.

Individual transformations on video are currently not supported.

Place a video everywhere

You can use Cloudinary media library widget everywhere, there is no limitation, it's working everywhere where media is applicable.

All you need is to have an entity reference field to Cloudinary video media in your entity type AND use Cloudinary media library field widget with resource type Cloudinary Video.

You can set up your own view mode to render the thumbnail of the video.

And then just render your custom thumbnail view mode for the video reference field.

You can output video thumbnail URL by using tokens (this is handy for metatags), for instance:

[node:field_video:entity:thumbnail:large:url]

Video player

You can change the default video player and provide some extra configuration on the configuration form. See configuration overview guide.

Help improve this page

Page status: No known problems

You can: