Skip to content
HomePagesHomePages template kit

PlaybackConfig

Author-declared playback behavior for a video slot, referenced from the slot's `playback` field and passed to `<Video playback>`.

Author-declared playback behavior for a video slot, referenced from the slot’s playback field and passed to <Video playback>. autoplay requires muted — every browser blocks unmuted autoplay — enforced by a Zod refinement on the slot definition at check time, not by this type.

Import from @homepages/template-kit.

export type PlaybackConfig = {
autoplay?: boolean;
loop?: boolean;
muted?: boolean;
controls?: boolean;
playsinline?: boolean;
preload?: "none" | "metadata" | "auto";
};