Links
Comment on page

MediaObject

This page describes the MediaObject type.
This type is derived from https://schema.org/MediaObject, which means that any of this type's properties within schema.org may also be used. Note however the properties on this page must be used in preference if a relevant property is available.

Properties

Required properties

Property
Expected Type
Description
@type
Text
Must always be present and set to "@type": "MediaObject"
url
URL
The URL for the page containing the media.
Example
"url": "https://example.com/media/stayin/getfit"

Optional properties

Property
Expected Type
Description
contentUrl
URL
Actual bytes of the media object, for example the image file or video file.
Example
"contentUrl": "https://example.com/media/stayin/getfit"
embedUrl
URL
A URL pointing to a player for a specific video. In general, this is the information in the src element of an embed tag and should not be the same as the content of the loc tag.
Example
"embedUrl": "https://example.com/media/stayin/getfit"
height
Integer
The height of the media in pixels.
Example
"height": 300
thumbnail
Array of ImageObject
The URL for a thumbnail image for the media.
width
Integer
The width of the media in pixels.
Example
"width": 400
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution License (CC-BY V4.0), and code samples are licensed under the MIT License, for anyone to access, use and share; using attribution "OpenActive".