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

116
Views
videos are not downloaded properly on safari

I have a react app which uses videos from firebase storage. I want to download them on button click. For this I use base64 and assign it to href of anchor tag which will be pressed. Problem is it works on windows but on safari downloaded video is muted and can not be unmuted. I opened video link on safari but it is muted as well.enter code here:

export default async function handler(req:NextApiRequest, res:NextApiResponse){
try{
let image = await axios.get(req.body.link, {responseType: 'arraybuffer'});
let raw = Buffer.from(image.data).toString('base64');
let mk = "data:" + 'video/mp4' + ";base64,"+raw;
res.json({message:mk}); //mk is assigned to href
}catch(e){
console.log(e);
res.json(e);

}
} 
about 4 years ago · Juan Pablo Isaza
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!