Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

134
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!