Waymark Plugin — Variations

Variations lets a user finish several versions of a video at once: the video they made, plus versions of it in other aspect ratios and durations. Each video is still completed, rendered and delivered individually, through the same client-side events and webhooks as a video finished on its own.

How it works

  1. The user clicks "Next" in the editor.
  2. They either choose "Just render this video", or generate other formats of the video.
  3. If they generated other formats, they pick the videos they want and click the "Finish" button (for example, "Finish 3 videos").
  4. Waymark purchases and renders each selected video.

Every video finished together has the same pack value. A video finished on its own, including when the user picks only one video to finish, has a pack of null, as does a video that hasn't been finished yet.

If Variations isn't available for a video, clicking "Next" finishes the video right away.

Enabling Variations

Variations is a paid feature, available for supported templates. To enable it for your partner account, contact your Waymark support team.

What you need to do

Variations works with your existing integration. There are no new methods, endpoints or event registrations, and your integration doesn't create packs: Waymark assigns one when the user finishes several videos together.

We also recommend updating to version 4.2.1-beta.0 of the SDK, which adds the pack field to the TypeScript typings. Nothing else in the SDK has changed, so this is only needed if you use the typings.

Optional: group videos finished together

If you want to show or track videos finished together as a group, use pack.id to group them and pack.size to know how many videos to expect. See Finishing several videos together for the client-side events, and Videos finished together for webhooks.

Tip

Client-side events are only emitted while the Plugin is loaded on the page. To reliably receive every video and render, use webhooks.