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

293
Views
video.play() ocurrió un rechazo no controlado (notallowederror) en IOS

usando peer.js para transmitir video en la aplicación React

 addVideoStream(video: HTMLVideoElement, stream: MediaStream) { video.srcObject = stream video?.addEventListener('loadedmetadata', () => { video.play() }) if (this.videoGrid) this.videoGrid.append(video) }

obtuve este error en 'video.play ()'

 the request is not allowed by the user agent or the platform in the current context

ya permití el permiso para audio y video en IOS.

este código funciona bien en otras plataformas excepto IOS.

No tengo ni idea.

Si implemento, solo obtengo una pantalla negra en IOS.

¿Cómo puedo arreglar esto?

gracias de antemano

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

el problema era cómo funciona la etiqueta de video en IOS con WebRTC.

usó el entorno HTTPS (producción) y luego agregue estos atributos

 if (isMobile && isSafari) { this.myVideo.playsInline = true this.myVideo.autoplay = true }

entonces funciona

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!