An abstract media object that can represent the following object types:

  • video
  • model: A 3D model uploaded as product media.

The media object can be returned by media_parse filter.

PropertiesTypeDescription
media_typestring from a set of values, refer to media_type valuesThe media type.
sourcesstringThe source URL of the media.
preview_imagestringA preview image URL of the media.
hlsstringThe hls URL of the media.
mp4stringThe mp4 URL of the media.

media_type values

Possible values
model3d
video

Modal 3D media

{
  "sources": "https://shoplazza-model3d-stg.oss-accelerate.aliyuncs.com/d17da5bc68537fcc881bcd3830d034681667466703480.glb",
  "media_type": "model3d",
  "preview_image": "//cdn.shoplazza.com/e986c6af0165839c50193078af8902e01667466703170.png"
}

Video media

{
  "mp4": "https://videodelivery.net/0ce8c522dda38eb276a8cd64ee47173f/downloads/default.mp4",
  "hls": "https://videodelivery.net/0ce8c522dda38eb276a8cd64ee47173f/manifest/video.m3u8",
  "media_type": "video",
  "preview_image": "//cdn.shoplazza.com/4dbbac9bcc03acbf26bbe0eb69c78f10.jpeg"
}