π¬ Create your first Video#
In this tutorial you will create a Video content item, paste a YouTube or Vimeo URL, and see the add-on automatically fetch the video's title, description, thumbnail, and duration.
π§ Prerequisites#
sc-videos installed and activated (see π¦ Install sc-videos in a Plone project).
A running Plone site with the Volto frontend.
1οΈβ£ Add a Video#
Navigate to the folder where you want to add the video.
Click Add new⦠in the toolbar.
Select Video from the content type list.
You will see the Video edit form with a Video Player block in the main area. The block shows an icon and an input field. this is the in-block edit form.
2οΈβ£ Paste a video URL#
Click the input field in the Video Player block.
Paste a video URL, for example:
YouTube:
https://www.youtube.com/watch?v=x7QX9tQxEBcVimeo:
https://vimeo.com/110591222
Note
The input accepts any URL supported by the registered providers. Out of the box, YouTube and Vimeo URLs are recognized.
3οΈβ£ Fetch metadata#
After pasting the URL, click the arrow button (β) to the right of the input field. The add-on will:
Send the URL to the
@video-metadataREST API.The backend resolves the URL to a provider (YouTube or Vimeo).
The provider fetches metadata from the external service.
The metadata is returned to the frontend.
Once the fetch succeeds, you will see:
The Video Player block switches from the input form to the embedded player with a preview image.
The content's title and description are autopopulated from the video metadata (if they were empty).
A metadata preview appears in the sidebar showing the thumbnail, channel name, and duration.
4οΈβ£ Review and save#
Check the title and description. edit them if you want to customize them.
Adjust the player settings in the sidebar:
Auto Play: start the video automatically when the page loads.
Size: small, medium, or large.
Alignment: left, right, center, wide, or full width.
Click Save.
5οΈβ£ View the result#
After saving, the Video page shows the embedded player with a click-to-play preview image. Clicking the play button loads the video from the external provider.
Tip
The add-on downloads the video thumbnail and stores it as the content's preview_image.
This image is used as the player's poster frame and in listing views across the site.
βοΈ Next steps#
πΊ Embed a Video in a page. Embed an existing Video in any page using the Video block.
π Configure the YouTube Data API. Get richer metadata (duration, description, tags) by setting up a YouTube API key.