Open
Description
Describe the bug
I have a background video on a webpage, the video is av1
inside mp4
container and supported by firefox
Only poster image is displayed, video never starts playing
this is the code
<script lang="ts">
import vi from './assets/videofile.mp4'
import posterimg from './assets/PosterImage.png'
</script>
<main>
<video
autoplay
muted
loop
Playsinline
src={vi}
poster={posterimg}>
</video>
</main>
<style>
video
{
width: 100%;
-moz-user-select: none;
-webkit-user-select: none;
user-select: none;
pointer-events: none;
}
</style>
Reproduction
Unable to reproduce the issue while development in responsive design mode
in firefox.
You can create a svelte app
using vite
, with simple video playing in background.
built
it and host it on github pages
once for free and access it from a mobile device
like smartphone
or tablet
from firefox
check it
The issue only on firefox
when opened on mobile device, works fine Chrome
& Opera
on both computer and mobile device.
Logs
firefox browser log details from android browser
Media resource https://mywebsite.com/assets/videofile.87f84cd1.mp4 could not be decoded. mywebsite.com
Some cookies are misusing the recommended “SameSite“ attribute 2
Cookie “_ga” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without the “secure” attribute. To know more about the “SameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite analytics.js:35:486
Cookie “_gid” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without the “secure” attribute. To know more about the “SameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite analytics.js:35:486
Media resource https://mywebsite.com/assets/videofile.87f84cd1.mp4 could not be decoded, error: Error Code: NS_ERROR_DOM_MEDIA_METADATA_ERR (0x806e0006)
### System Info
```shell
$ npx envinfo --system --npmPackages svelte,rollup,webpack --binaries --browsers
System:
OS: Linux 5.4 Ubuntu 20.04.3 LTS (Focal Fossa)
CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
Memory: 406.05 MB / 3.72 GB
Container: Yes
Shell: 5.0.17 - /bin/bash
Binaries:
Node: 17.4.0 - /usr/local/bin/node
Yarn: 1.22.17 - /usr/bin/yarn
npm: 8.3.1 - /usr/local/bin/npm
Browsers:
Firefox: 96.0
### Severity
annoyance