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

309
Views
¿Cómo hacer que Safari ejecute THREE.AudioLoader() correctamente?

Últimamente estoy trabajando en un código que hace que el navegador reproduzca un audio usando Three.js. A continuación se encuentra el fragmento relacionado:

 function loadAudio(i) { document.getElementById('overlay').innerHTML = '<div class="text-loading">a moment please...</div>' const files = [ 'https://xxx.yyy.com/1.mp3', 'https://xxx.yyy.com/2.mp3', 'https://xxx.yyy.com/3.mp3', 'https://xxx.yyy.com/4.mp3', ] const file = files[i] const loader = new THREE.AudioLoader() loader.load(file, function (buffer) { audio.setBuffer(buffer) audio.play() analyser = new THREE.AudioAnalyser(audio, fftSize) init() }) }

Sin embargo, me notifican que el sitio web no funcionó del todo en Desktop y Mobile Safari (donde probé inicialmente pero liberé el código cuando funcionó en Chrome en mi MacBook, pensé que era un problema de Internet...), y todavía no pude averiguar qué hacer después de leer detenidamente todas las preguntas relacionadas en stackoverflow (perdóname por mi estupidez).

¿Puede alguien por favor ayudarme con eso?


Además, algunos enlaces relacionados pueden ser útiles:

  • ¿Por qué el audio que visualiza una transmisión en vivo no funciona en dispositivos móviles / Safari?
  • https://discourse.threejs.org/t/three-audioloader-not-playing-other-audio-format-except-wav-on-iphone-safari-browser/23844/3
  • https://github.com/mrdoob/tres.js/issues/10404
  • https://bugs.webkit.org/show_bug.cgi?id=195043 (¿podría ser algo relacionado con webkit?)
about 4 years ago · Santiago Gelvez
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!