Show navigation ≫
≪ Hide navigation
Objects > Media Version

Description

Defines a different version, which usally references a different resolution or quality, of a media content, such as a photo, video or audio file.

It's used to deliver the same content optimized for different devices, like smartphones, tablets and computers, according to the client's display resolution.

Structure

Optional parameters are indicated as "(Optional)".

Parameter Meaning Notes
url (string) The url of the media.
width (integer) The width of the media.
  • This parameter is not necessary for audio files.
  • If no width is specified, Connected Web parsers will maybe not include the media on some devices.
height (integer) The height of the media.
  • This parameter is not necessary for audio files.
  • If no width is specified, Connected Web parsers will maybe not include the media on some devices.
type (string) (optional) The mime type of the media.
  • If no type is specified, it should be considered the same mime type of the parent object.
size (integer) (optional) The size of the media, in bytes.
  • If no size is specified, Connected Web parsers will maybe not include the media on some devices to save data.
Continue to the Cache Object definition

Example

{

    "1280": {

	"url": "https://fbwcdn.com/video/main/connectedweb/showcase/video1_720.mp4",
        "width": 1280,
        "height": 720,

    },
    "480": {

	"url": "https://fbwcdn.com/video/main/connectedweb/showcase/video1_480.mp4",
        "width": 480,
        "height": 270,

    }

}
Show navigation ≫
≪ Hide navigation