VionetoVioneto
Back to the magazine

VIONETO MAGAZINE Hosting & embedding

Set embedUrl and contentUrl for a hosted video in VideoObject

Find the right URL for the player, media file and watch page. See when to use embedUrl or contentUrl in VideoObject structured data.

A video watch page branches to a player on one side and a media file on the other.
The watch page, player and video file each have their own URL in the structured data workflow.Image: Vioneto · original illustration

A website publishes a coffee-filter replacement tutorial on its own watch page. A video host supplies the player. When you write the structured data, you need to identify the watch page, the embedded player and any media file URL you intend to publish. Each one has a separate role.

Match each address to the published video

  1. Open the watch page where viewing the clip is the main purpose. This is the page address to use in loc if you provide a video sitemap.
  2. Find the address that opens the specific embedded player for this clip. For an iframe, it is commonly the src value. Use that confirmed player URL as embedUrl.
  3. If your host supplies an accessible URL for the video bytes and you intend to expose it, use it for contentUrl. The hosted player page delivers the viewing interface.

Here is a sample record for a hosted player. The example.org addresses and date are placeholders for the actual video. Add the JSON-LD to the watch page where the clip can be played.

{ "@context": "https://schema.org", "@type": "VideoObject", "name": "Replace a coffee filter", "description": "A short guide to replacing a coffee filter.", "thumbnailUrl": "https://example.org/media/coffee-filter.jpg", "uploadDate": "2026-06-08T10:00:00+02:00", "embedUrl": "https://video.example.org/embed/coffee-filter" }

Check the resource that each URL delivers

With a direct file, contentUrl might point to https://video.example.org/files/coffee-filter.mp4. On your own site, verify that the address serves the intended media. For a hosted embed, consult the provider’s documented public player and media addresses. Only include resources that are approved for public access.

Next, compare the video name, thumbnail and original publication date with what viewers see. Open the public watch page as a reader and validate the deployed markup with Google’s Rich Results Test. Track search visibility separately from the markup check.

Create a video sitemap for your website

Choose an article or a dedicated video watch page

Topics

Sources and further reading

  1. https://developers.google.com/search/docs/appearance/structured-data/video
  2. https://developers.google.com/search/docs/appearance/video
  3. https://schema.org/VideoObject