How to log each line of the subtitle using the plyr library? #2759
Unanswered
farhadibehnamdev
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on a project using Next.js v14.0.4 and the Plyr-React library to synchronize subtitles with audio. My first step is to read each line of the transcript. Although I read the documentation of Plyrjs, I found out that the "cuechange" event will be helpful for my goal. However, even after configuring the Plyrjs library to use subtitles, the "cuechange" event doesn't fire. I am not sure if I am going in the right direction.
I provide an example to illustrate what I am doing.
https://stackblitz.com/edit/stackblitz-starters-s6balx?file=components%2FPlayerUI.tsx
Beta Was this translation helpful? Give feedback.
All reactions