Show navigation ≫
≪ Hide navigation
Objects > Video

Description

Defines a video to be rendered considering multiple resolutions and formats for different screens and devices.

Structure

Optional parameters are indicated as "(Optional)".

Parameter Meaning Notes
url (string) The url of the video.
width (integer) (optional) The width of the video.
  • If no width is specified, Connected Web parsers will maybe not include the video on mobile devices.
height (integer) (optional) The height of the video.
  • If no height is specified, Connected Web parsers will maybe not include the video on mobile devices.
type (string) (optional) The mime type of the video.
  • If no type is specified, Connected Web parsers will maybe not include the video.
  • Mime type helps Connected Web readers to decide which kind of player is necessary to reproduce the video.
size (integer) (optional) The size of the video, in bytes.
  • If no size is specified, Connected Web readers will maybe not include the video on mobile devices to save data.
title (string) (optional) The plain text title of the video.
author (author_object) (optional) The author text of the video file.
  • This parameter requires a Connected Web Author Object. See the Objects > Author documentation to understand more.
description (string) (optional) The plain text description of the video.
resolutions (associatvie array of media_versions_objects) (optional) The video file available in other resolutions.
  • If other resolutions of the video are already available, it's possibile to specify them in an associative array of versions. Each key of the array is the width of the resized video.
  • This parameter requires a Connected Web Media Versions Object. See the Objects > Media Versions documentation to understand more.
Continue to the Audio Object definition

Example

{

    "url": "https://fbwcdn.com/video/main/connectedweb/showcase/video1.mp4",
    "width": 1920,
    "height": 1080,
    "type": "video/mp4",
    "size": 8990,
    "title": "Connected Web Logo Intro",

}
Show navigation ≫
≪ Hide navigation