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

136
Vistas
data:// url works on Firefox but not on Chrome?

My HTML page contains the following video tag:

<video id="video" src="data://video/mp4;base64,AAAAIGZ0eXBpc29tAAACAG..."></video>

The video tag contains a a base64 version of a 2MB mp4 clip of Big Buck Bunny (truncated in snippet to fit in post).

This loads perfectly fine on Firefox, but doesn't load at all on Chrome, and does not throw any errors to the console. Initially my thought was this error was due to some URL length constraint not met on Firefox but met on chrome, however , my page still does not work on Chrome with smaller source videos. Does anyone know what is causing this issue?

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

0

Turns out @code was correct.
My problem was that I messed up the formatting of the data URL by using 2 slashes data://, rather than the correct format of data:

data:video/mp4;base64,AAAAIGZ0eXBpc29tAAACAG...

The above finally works on both browsers.
Firefox accepts both formats — while Chrome is more strict about that rule. A bit annoying Chrome doesn't throw any error for it.

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