Skip to content

Instantly share code, notes, and snippets.

@Chuloo
Created July 4, 2021 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chuloo/a8edda55fc8242a5a20942ff840e42ea to your computer and use it in GitHub Desktop.
Save Chuloo/a8edda55fc8242a5a20942ff840e42ea to your computer and use it in GitHub Desktop.
Shoppable video configuration for a forest bike
var forest_bike = {
shoppable: {
showPostPlayOverlay: true,
transformation: {
crop: "pad",
aspect_ratio: "1",
},
products: [
{
productId: 1,
productName: "Forest Bike",
startTime: 7,
endTime: 8,
publicId:
"https://res.cloudinary.com/dwbggi96z/image/upload/v1622914696/0efbcdf473436391b6a5a731a000fadc_rs6z0z.jpg",
hotspots: [
{
time: "00:07",
x: "50%",
y: "80%",
tooltipPosition: "left",
clickUrl: "",
},
],
onClick: {
action: "goto",
pause: true,
args: {
url: "/product/forest_bike",
},
},
},
{
productId: 1,
productName: "Biking Gloves",
startTime: 10,
endTime: 11,
publicId:
"https://res.cloudinary.com/dwbggi96z/image/upload/v1622914746/716FjX82rLL._AC_UL1200__xvrznl.jpg",
hotspots: [
{
time: "00:10",
x: "30%",
y: "80%",
tooltipPosition: "right",
clickUrl: "",
},
],
onClick: {
action: "goto",
pause: true,
args: {
url: "/product/bike_glove",
},
},
},
],
},
};
export default forest_bike;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment