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

108
Views
los videos no se descargan correctamente en safari

Tengo una aplicación de reacción que usa videos del almacenamiento de firebase. Quiero descargarlos haciendo clic en el botón. Para esto, uso base64 y lo asigno a href de la etiqueta de anclaje que se presionará. El problema es que funciona en Windows, pero en Safari el video descargado está silenciado y no se puede reactivar. Abrí el enlace del video en Safari, pero también está silenciado. Ingrese el código aquí:

 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!