Video - Liquid Object Reference
On this page
Description
The Video object contains information about a video that has been uploaded via the CMS.
:::note
This object supports custom data via the data attribute.
:::
Backed by
This drop renders the s_c__Media__c Salesforce object. A theme writes it as video.
| Liquid attribute | Salesforce field |
|---|---|
key_frame_seconds |
s_c__Key_Frame_Seconds__c |
url |
s_c__Url__c |
Every other attribute on this drop is derived by StoreConnect rather than read straight from one field. The Attributes section lists them all.
Fields you add yourself are not listed above. Expose one with a Custom Data Mapping record, then read it from video.data. See custom data fields in Liquid.
Attributes
| Attribute | Type | Description |
|---|---|---|
embed_url |
String | Returns the embed URL for this Video, suitable for embedding in an iframe |
id |
String | Returns the unique id of this Video |
key_frame_seconds |
String | Returns the starting place for the key frame of the video in seconds |
thumb_url |
String | Returns the thumbnail URL for this Video |
type |
String | Returns the type of video, ex: ‘youtube’, ‘vimeo’ |
url |
String | Returns the complete url for this Video |
Available on
- ContentBlock - Liquid Object Reference —
video - Medium - Liquid Object Reference —
video - Product - Liquid Object Reference —
variant_videos,videos
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.