Set up the field once
- Get the Speedy Clip field plugin installed in your Storyblok space. A space admin can use Storyblok’s field plugin distribution options. Contact Speedy for setup.
- Add a Plugin field named
hero_videoto the hero block and selectspeedy-embed-fieldas its field type. - Connect the field to the frontend component. When the field is empty, render the rest of the hero normally.
Choose and preview a clip
- Upload the main cut in Speedy and wait for it to finish processing. Add a custom mobile cut in Speedy if the subject needs different framing on a phone.
- Open the story in the Visual Editor, sign in from the video field and select the ready clip. For a muted hero loop, use the Standard version.
- Save the story. Preview the page at desktop and mobile widths, then reload and play it on a phone before publishing. Check the opening still and the space around any headline.
Render the chosen video in your frontend
The field stores embedCode and metadata for the selected clip. For a standard clip rendered with your own component, read metadata.urls and metadata.posters by screen size. The React example uses the saved field named hero_video and puts the widest media conditions first.
// Inside your frontend component, after fetching the story.
const clip = blok.hero_video?.metadata;
if (!clip?.urls?.desktop?.mp4) return null;
const formats = [
['av1', 'video/mp4; codecs="av01.0.09M.10"'],
['hevc', 'video/mp4; codecs="hvc1.1.6.L123.90"'],
['webm', 'video/webm'],
['mp4', 'video/mp4'],
];
const breakpoints = [
['desktop', '(min-width: 1024px)'],
['tablet', '(min-width: 768px)'],
['mobile', undefined],
];
return (
<video controls playsInline preload="none"
poster={clip.posters?.desktop?.jpg}
aria-label="Campaign film">
{breakpoints.flatMap(([device, media]) => {
const cut = clip.urls[device];
const urls = cut?.mp4 ? cut : clip.urls.desktop;
return formats.map(([format, type]) =>
urls[format] && <source key={device + format} src={urls[format]}
type={type} media={media} />
);
})}
</video>
); This example plays on demand. For a muted hero loop, use the responsive hero example to give each cut a matching still and keep a pause control available. If you select With sound, Scroll scrub or Transparent in the field, use the generated embed so the Speedy player can render that version.
What this gives the editorial team
For the next campaign, choose a different video in the same field and repeat the preview. The frontend component stays in place. Keep the wide and portrait edits together in Speedy so editors can change the hero with one selection.
Common questions
- Does the editor need a field for each screen size?
- No. One Speedy Clip field holds the video and every cut it has, and your frontend picks the right one for the screen.
- Where do I upload a separate phone cut?
- Open the video in Speedy Clip and add the phone cut there. Custom mobile and tablet uploads and the Storyblok plugin need a paid plan.
- Can an editor replace the hero without changes to the frontend?
- Yes. Once the block is wired up, an editor can pick another ready video in the same field, preview the page and publish.