Skip to content

Instantly share code, notes, and snippets.

@Chuloo
Created July 4, 2021 14:30
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/4a603d5bdb5e344f30af7e87729507b2 to your computer and use it in GitHub Desktop.
Save Chuloo/4a603d5bdb5e344f30af7e87729507b2 to your computer and use it in GitHub Desktop.
Shoppable video configuration for a sea turtle
var sea_turtle = {
shoppable: {
showPostPlayOverlay: true,
transformation: {
crop: "pad",
aspect_ratio: "1",
},
products: [
{
productId: 1,
productName: "Sea Turtle",
startTime: 6,
endTime: 7,
publicId:
"https://res.cloudinary.com/dwbggi96z/image/upload/v1622914620/Screenshot_2021-06-05_at_18.36.28_ws0rgm.png",
hotspots: [
{
time: "00:07",
x: "50%",
y: "80%",
tooltipPosition: "left",
clickUrl: "",
},
],
onClick: {
action: "goto",
pause: true,
args: {
url: "/product/sea_turtle",
},
},
},
],
},
};
export default sea_turtle;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment