XooCode(){

Schema: MediaObject

Schema: MediaObject Example Markup

The following are examples of markup written in json+ld that include the correct usage for Schema: MediaObject.

DigitalDocument

DigitalDocument JSON-LD example for a downloadable PDF whitepaper on structured data ROI. Covers hasDigitalDocumentPermission for access control, encoding with MediaObject for file metadata, pagination, and how DigitalDocument differs from Article for non-HTML published content.

AudioObject

AudioObject JSON-LD example for the Xoo Code podcast episode audio file. Covers caption, transcript, and embeddedTextCaption (the 3 properties unique to AudioObject), plus contentUrl, encodingFormat, and duration.

MediaObject

MediaObject JSON-LD example for a downloadable PDF report. MediaObject is the parent of VideoObject, AudioObject, and ImageObject. Covers the most important of its 20 direct properties: contentUrl, encodingFormat, contentSize, duration, uploadDate, and requiresSubscription.

3DModel

3DModel JSON-LD example for a 3D asset (GLB, GLTF, USDZ) used in AR, VR, gaming, or product viewers. MediaObject subtype adding the isResizable property.

AmpStory

AmpStory JSON-LD stub for an AMP Story (visual, full-screen, tap-through content format). Dual-inherits from CreativeWork and MediaObject. Note: Google has deprecated Web Stories / AMP Stories in Search as of 2024.

DataDownload

DataDownload JSON-LD example for a downloadable distribution of a Dataset (CSV, JSON, Parquet). MediaObject subtype. Attach via Dataset.distribution.

LegislationObject

LegislationObject JSON-LD example for the published file of a piece of Legislation (PDF / HTML / XML). Dual-inherits Legislation + MediaObject with legislationLegalValue.

MusicVideoObject

MusicVideoObject JSON-LD reference. A music video file.

TextObject

TextObject JSON-LD reference. A text file. The text can be unformatted or contain markup, html, etc.