Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

186
Vistas
Fallback image when autoplay doesn't work

I'm developing my portfolio using React and Gatsby and I am using a video to create an animated shadow. The video is in autoplay and works fine using autoplay, muted and playsinline tags However the animation doesn't play on Safari when Low Power Mode is on.

Animation playing (low power mode off)

Animation not playing (low power mode on)

I know that Apple blocks the video in order to save battery but as I can see on their website, particularly on their Pro Display XDR (https://www.apple.com/pro-display-xdr/), they use a fallback image when the video can't play. I wanted to know what was the best way to make the same thing using React?

Thank you, Thomas

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can use the poster attribute in your video tag.

<video width="250" height="250" playsinline autoplay muted loop poster="https://via.placeholder.com/250&text=I%20am%20Poster">
    <source src="https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.webm"
            type="video/webm">
    Sorry, your browser doesn't support embedded videos.
</video>

No Source or failed video:

<video playsinline autoplay muted loop width="250" height="250" poster="https://via.placeholder.com/250&text=I%20am%20Poster">
    <source src="#"
            type="video/webm">
    Sorry, your browser doesn't support embedded videos.
</video>

More information: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video#attr-poster

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda