media
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.
| Properties | Type | Description |
|---|---|---|
media_type | string from a set of values, refer to media_type values | The media type. |
sources | string | The source URL of the media. |
preview_image | string | A preview image URL of the media. |
hls | string | The hls URL of the media. |
mp4 | string | The 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"
}