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

538
Views
¿Cómo agregar subtítulos en React Player?

Estoy tratando de agregar subtítulos en el componente React Player. Aquí está el código para el componente React Player.

 <ReactPlayer url={vidData.media[0]} controls={true} width={"100%"} height={"auto"} playing={playVid} muted={true} className="react-workout-player" config={{ file: { attributes: { crossOrigin: "true", }, tracks: [ { kind: "subtitles", src: "https://prod.fitflexapp.com/files/captions/2021/11/18/23-b2j0oOsJ.vtt", srcLang: "en", default: true, }, ], }, }} />

No puedo entender lo que estoy haciendo mal ya que no aparecen en el video. amablemente ayuda

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

0

Descubrí el problema, la URL de los subtítulos me estaba dando un problema de política de CORS. El código anterior está bien, debería funcionar si coloca la ruta del archivo descargado o corrige la URL y elimina el problema de la política de origen de CORS.

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!