On this page
What this issue is
WebM is a video container format that is popular because files are small and free to use. Safari, which runs on every iPhone and iPad browser and on Macs, has had patchy WebM support. Older versions cannot play it at all, and newer versions only play some WebM files depending on the codec inside (VP8, VP9) and the device.
Why it costs you leads or sales
Videos often carry the pitch: a product demo above the form, a hero background, or a testimonial near the checkout button. If Apple visitors cannot see it, they lose the explanation you counted on. Mobile traffic often skews towards iPhones, so the gap can be large in some audiences.
- Ad or search clickiPhone visitor lands on the page
- Hero or demo videoOnly a .webm source is offered
- Product explainedVisitor never sees the demo
- Form or checkoutFewer visitors continue
The visitor arrives on Safari, the video fails, and the persuasion steps that depended on it never land.
Example: made-up numbers showing how conversion for Safari visitors could trail other browsers when the video fails to play.
How to check if your site has it
Look at the page source
Right-click the page, choose View Page Source and search for
.webm. Note every<video>or<source>tag and check whether an.mp4is listed next to it.Check the Network tab
Open browser developer tools, go to Network, filter by Media and reload. If you only see
.webmrequests, there is no MP4 fallback.Test on a real Apple device
Open the page on an iPhone in Safari and on a Mac in Safari. Check autoplay, the play button and the poster image. Emulators in Chrome do not reproduce Safari's media support.
Check Safari's Web Inspector
On a Mac, enable the Develop menu in Safari settings, connect your iPhone and inspect the page. Look for media errors in the console.
How to fix it
The core fix is the same everywhere: provide an MP4 (H.264 + AAC) version and list it as a source. Put the MP4 first or second, since browsers use the first source they can play.
<video controls playsinline poster="/media/demo-poster.jpg" width="960" height="540">
<source src="/media/demo.mp4" type="video/mp4">
<source src="/media/demo.webm" type="video/webm">
Your browser does not support the video tag.
</video>ffmpeg -i demo.webm -c:v libx264 -pix_fmt yuv420p -profile:v high -c:a aac -movflags +faststart demo.mp4Upload an MP4
Convert the file, then add it in Media > Add New. Check that your upload size limit allows it.
Use the Video block
The core Video block takes one file, so use an MP4 there. For both formats, use a Custom HTML block with the code above.
Check theme or slider settings
Some themes and sliders have separate MP4 and WebM fields for background video. Fill in the MP4 field.
Upload the MP4 in Files or product media
Shopify hosts uploaded videos as MP4, so a WebM-only embed usually comes from a custom section or an external file.
Edit the section
In Online Store > Themes > Edit code, find the
<video>tag in the section and add an MP4<source>. Which file holds it depends on your theme.
Not a GTM fix
Video formats are set in the page markup, not in tags. Only use GTM if a Custom HTML tag injects the video, and then add the MP4 source inside that tag.
Use the Background Video element
Add the Background Video element and upload an MP4. Webflow lets you add a WebM too, but MP4 is the one Safari needs.
Check Video embeds
For custom embeds, paste the HTML above into an Embed element.
Replace the file in the Video element
In the funnel or website builder, select the Video element and use an MP4 upload or URL.
Use Custom Code for both formats
If you need a WebM too, paste the HTML above into a Custom JS/HTML element.
Upload an MP4
In the Wix editor, use the video element or strip background and upload an MP4 from your Media Manager.
Use Wix's own video hosting
Wix video files uploaded in the editor are converted for you. A WebM-only file usually comes from an embed.
Use a Video block or section background
Upload an MP4 file. Squarespace recommends MP4 for uploads.
Code block for custom markup
For multiple sources, use a Code block with the HTML above.
Add the MP4 source
Edit your templates so every
<video>lists an MP4<source>, ideally first.Set the right MIME type
Make sure your server sends
video/mp4for.mp4files, and supports range requests so Safari can seek and play.
Before
- One <source> with a .webm file
- Chrome and Firefox play it
- Safari shows a blank box or dead play button
- Nobody reports it
After
- MP4 (H.264 + AAC) listed as a source
- WebM kept as an optional extra
- Plays in Safari, Chrome, Firefox and Edge
- Poster image shows while loading
How to confirm it's fixed
- The page source lists an .mp4 source for every video
- The video plays on an iPhone in Safari
- The video plays on a Mac in Safari
- Muted autoplay videos have
mutedandplaysinline - The Network tab shows the MP4 returning a 200 or 206 response
- The poster image appears if the video is slow to load
How to prevent it happening again
Most WebM-only videos come from a design handoff, a plugin setting or an export from a screen recorder. Put the rule in your process rather than relying on memory.
- Export or convert every video to MP4 (H.264 + AAC) as the default
- Add a Safari check on a real iPhone to your launch checklist
- Ask designers and freelancers to deliver MP4 first
- Re-test after theme, plugin or page builder updates
- Keep a poster image on every video so a failure is less jarring
How FunnelGuard handles this
FunnelGuard does not check video formats yet. A check for unsupported video sources is a possible future addition, but it is not available today, so a WebM-only video would not be reported by FunnelGuard.
What FunnelGuard does cover nearby is the journey itself: a robot visitor runs your lead forms, checkouts and booking or chat buttons on a schedule from the EU or the US, checks each step and the tracking hits, and sends one alert with a screenshot if something breaks. That helps if a broken page stops the journey, but it does not tell you a video is unplayable in Safari.
Questions people ask
Why is my video not playing in Safari but works in Chrome?
Chrome plays WebM, but Safari has limited and version-dependent WebM support. If your page only offers a .webm file, many Safari and iPhone users see a blank player. Add an MP4 file encoded with H.264 and AAC as another source.
Does Safari support WebM?
Partly. Older Safari versions do not play WebM at all, and newer ones support it only for some codec and device combinations. Because of that, you should not rely on WebM alone. MP4 with H.264 is the safest choice.
How do I add an MP4 fallback to an HTML5 video?
Add a second <source> tag inside the <video> element with type="video/mp4" and list it first. The browser uses the first source it can play, so Safari picks the MP4 while other browsers can still use WebM.
How do I convert WebM to MP4?
Use ffmpeg: ffmpeg -i demo.webm -c:v libx264 -pix_fmt yuv420p -c:a aac -movflags +faststart demo.mp4. This creates an H.264 and AAC file that plays in all major browsers. Desktop video editors and online converters can also do it.
Why is my background video not autoplaying on iPhone?
Safari on iPhone only autoplays videos that are muted and marked playsinline. Add autoplay muted loop playsinline to the video tag and make sure an MP4 source exists. Low power mode can also block autoplay.
Do I need to keep the WebM file if I add MP4?
No. MP4 alone works in every current browser. You can keep WebM as a second source if its smaller file size helps, but it is optional.
Can I test Safari video playback without an iPhone?
A Mac with Safari is a good test, and a real iPhone is better. Chrome's device emulation does not reproduce Safari's media support, so it will not show this problem.
Does FunnelGuard check if my video plays in Safari?
No. FunnelGuard does not check video formats yet, though it is a possible future check. It does run your forms, checkouts and buttons on a schedule, so use manual device tests for video playback.
Related issues
- PRF-191Page broken in Safari (iOS/macOS)Fix guide
- PRF-194Page broken in in-app browsers (Instagram/Facebook/TikTok webview)Fix guide
- PRF-206Slow 3G/4G connection makes funnel unusable (no throttled run)Fix guide
- PRF-207Low-end Android CPU makes INP poor (no CPU throttling)Fix guide
- PRF-195Third-party cookies blocked (Safari ITP) breaks login/checkout iframeFix guide
- PRF-192Page broken in FirefoxFix guide