question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Background video not auto playing on mobile iOS safari browser used svelte to build the website

See original GitHub issue

Describe the bug

Video tag no auto play on page load only in iOS mobile environment. I have not checked on iPad, it does play on Macbook air

I have followed everything mentioned by Delivering Video Content for Safari It is an MP4 file format as suggested

<video autoplay playsinline>

I though early on that this might be a programming issue so raised the issue stackoverflow as well Background video not auto playing on safari browser used svelte to build the website

Used muted as well the mp4 file has no audio.

<video autoplay playsinline muted>

Many users facing the same issue from long time HTML5 Video Background not playing Safari on iPhone HTML5 Video tag not working in Safari , iPhone and iPad I even tried <video autoplay playsInline muted> playsInlinestill same issue

Reproduction

I have deployed the video hereusing github pages you can open the link through apple mobile devices iPhone or iPad and check the issue yourself.

It is not playing on Chrome and Safari browser, I guess it might be the same for other browsers as well

Logs

I don't have an apple device, a friend told me he could not view the video on website through his `iPhone`

System Info

Don't have `iPhone` or `iPad` to give more details sorry

Severity

annoyance

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
santhoshnumberonecommented, Apr 5, 2022

The video format is AV1 which is not supported by safari on any apple device source. You could use HEVC/X265 format as it is supported on apple device source. Best approach would be to have video source pointing to three different format AV1,X265 and WebM let the browser decide which one it wants to use.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Background video not auto playing on safari browser used ...
I have used svelte to build a website.
Read more >
Background video element not autoplaying in safari or iphones
Hi, a website I am working on for a client has a background video element in webflow. This background video element will play...
Read more >
HTML Video element, not working after iosSafari15 update
all i can see is white blank background instead of background video. it looks like video cannot be loaded or played. html: <video...
Read more >
Video Background not autoplay on Safari IOS | WordPress.org
Hi, I am using the cover block to add a video background. The problem is that the video won´t autoplay on Safari IOS,...
Read more >
Launching Browsers | Cypress Documentation
Firefox 86 and above. Download specific Chrome version. The Chrome browser is evergreen - meaning it will automatically update itself, sometimes causing a ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found