Video Schema
Video Schema is a system plugin that adds schema.org VideoObject structured data
to article pages with a Vimeo or YouTube embed, so search engines can show those pages as video results.
Editors don't do anything extra: they embed the video in the article as usual and the plugin finds it.
New to Video Schema? This page is the reference manual. For an overview, with the download, see its page on cybersalt.com.
Release history. This page documents the current release (1.0.0). For what changed in each version, see the changelog.
Requirements. Joomla 5.0 or newer (it runs on Joomla 5 and Joomla 6), PHP 8.1 or newer, and a server that can make outgoing HTTPS requests to vimeo.com and youtube.com. Available from cybersalt.com.
Installing
- Buy a membership on cybersalt.com (one purchase covers as many of your sites as you like), log in and download the ZIP from My Sites.
- In the administrator, go to System → Install → Extensions and upload it. The plugin is switched on for you; there's nothing to set up first.
- Open an article with a video and test its address in Google's Rich Results Test. It should list the video under Videos.
- Activate the site for updates (below).
Pro Activation (updates)
Go to System → Manage → Plugins, open System - Cybersalt Video Schema, and on the Pro Activation tab enter the email address of your cybersalt.com account, then save. The site checks your membership with cybersalt.com and, while it is current, new versions show up under System → Update → Extensions. The video data works the same whether or not a site is activated; only updates need a current membership. Saving again with the same email re-checks straight away, and clearing the email deactivates the site.
Which videos it finds
On a single-article page, the plugin reads the article's own text (intro and full text) from the
database and looks for these embeds, wherever they appear (src, data-src or any
other attribute), so cookie-consent and lazy-load extensions that rewrite the embed don't get in the way.
| Embed | Found? |
|---|---|
player.vimeo.com/video/123456789, including unlisted videos with ?h=… | Yes |
youtube.com/embed/VIDEO_ID and youtube-nocookie.com/embed/VIDEO_ID | Yes |
YouTube playlist or live-channel embeds (embed/videoseries, embed/live_stream) | No: there's no single video to describe |
| A plain link to a Vimeo or YouTube page | No: the video isn't on the page |
| A video shown by a module, not in the article text | Only if listed on the article's Video Schema tab (below) |
Up to 10 videos per article are described. Category and featured (blog) pages aren't.
What it adds
One VideoObject per video, with name, description,
thumbnailUrl, uploadDate, duration (when known) and
embedUrl. When Joomla's System - Schema.org plugin is building data for the
page, the videos are added to its graph and linked to the page (isPartOf its
WebPage). Otherwise they go out as a JSON-LD block of their own. The plugin only adds; it never
changes data other extensions put on the page.
{
"@type": "VideoObject",
"@id": "https://example.com/#/schema/VideoObject/youtube-dQw4w9WgXcQ",
"name": "The video's title",
"description": "The video's description",
"thumbnailUrl": ["https://i.ytimg.com/vi/dQw4w9WgXcQ/maxresdefault.jpg"],
"uploadDate": "2009-10-24T23:57:33-07:00",
"duration": "PT3M34S",
"embedUrl": "https://www.youtube.com/embed/dQw4w9WgXcQ",
"isPartOf": { "@id": "https://example.com/#/schema/WebPage/base" }
}
Where the details come from
| Player | Source |
|---|---|
| Vimeo | Vimeo's oEmbed service: title, description, 1280 px thumbnail, length and upload date. |
| YouTube | YouTube's oEmbed service for the title and thumbnail, plus the video's public YouTube page for the upload date, full description, length and full-size thumbnail (oEmbed leaves those out). No API key is needed. |
Each video is looked up once and kept in a small table of its own, then looked up again after the refresh interval (7 days by default) and straight away whenever the article is saved. No more than three lookups per player happen on one page view; any others wait for the next view. If Vimeo or YouTube can't be reached, the page keeps the details fetched before, or goes without video data. It never shows an error.
Google needs a name, a thumbnail and an upload date. When the player can't supply one (a private video, for example), the article's title, meta description (or intro text), image and publish date fill the gap. A video that Vimeo or YouTube says doesn't exist is left out, so Google is never sent to a missing video.
Settings
| Setting | Default | What it does |
|---|---|---|
| Refresh video details every (days) | 7 | How often a video's details are looked up again (1 to 90). Saving the article refreshes its videos at once anyway. |
| Vimeo upload time zone | America/New_York | Vimeo gives the upload time without a time zone; it is US Eastern time. YouTube's carries its own and isn't affected. |
| Join Joomla's schema.org data | Yes | Add the videos to the System - Schema.org plugin's data for the page. No = always output them as a separate block. |
| Fill gaps from the article | Yes | Use the article's data where the player gives nothing. No = leave such a video out. |
⤢ Click to enlarge
The Video Schema tab on articles
Article edit screens in the administrator get an optional Video Schema tab. Editors normally leave it alone. It has two fields:
- Turn off for this article: no video data for this article's page. The video still plays.
- Videos not in the article text: for a video that shows on the page from somewhere else,
such as a module. One per line: a Vimeo link, a YouTube link (
watch?v=,youtu.be,shorts) or the video's ID. Videos in the article text are found automatically, so don't list them.
⤢ Click to enlarge
Things to know
- Structured data makes a page eligible for video results; Google decides whether to show one, and prefers pages where the video is the main content.
- Vimeo's own player adds video data in the browser too, so the Rich Results Test may list two videos for a Vimeo embed. This plugin's data is in the page's HTML, where crawlers that don't run JavaScript can read it.
- Only published articles the visitor may see, inside their publishing dates, are described.
- Uninstalling removes the plugin's cache table.
Troubleshooting
| Symptom | Cause and fix |
|---|---|
| No video in the Rich Results Test | Check the plugin is enabled, the page is a single article, the embed is one of the kinds listed above, and the article's Video Schema tab isn't set to turn it off. |
| Changed the video's title on Vimeo or YouTube, the old one still shows | Save the article once; that refreshes its videos straight away. |
| A deleted video still listed | It drops out at the next lookup. Save the article to look it up now. |
| Upload date an hour or a few hours off (Vimeo) | Check Vimeo upload time zone is America/New_York. |
| Red Installation incomplete under File check | An install or update didn't finish. Install the same ZIP again. |
Getting help
Use the support form on cybersalt.com.
The plugin settings — click anywhere to closeClose ×
The Video Schema tab — click anywhere to closeClose ×