Replies: 2 comments 1 reply
-
|
Hi @Bodawen
When I removed it, my users did not complain that it was gone, so I took that as a sign that it was a nice to have. And altho it might be important for some users, for the majority they seem to be able to successfully correct and navigate a transcript without.
Correct, I think there's some more details in one of the issues. from my perspective, It came to a point where I had to choose between performance, keeping the editor snappy, and responsive when handling transcripts over an hour vs having word level highlight, and I chose performance (for slate-transcript-editor).
Ah, yes the time stamps are stored in the paragraph as a list of word objects. Eg see src/util/dpe-to-slate/index.js#L71. At the moment I am not sure how this could be done, without wrapping the words into span tags, which would decrease performance. Perhaps there's a way with CSS injection? using nth selector, eg if there's a way to have current time, use it calculate the position of the word in the paragraph, and then the nth selector to select that word. Altho not sure if you can use nth selector (or something equivalent) to select text? probl not, not sure. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for your quick reply. Great advice! So have you tested how much the performance of the editor would be reduced if our highlighting feature was implemented by wrapping the words with timestamps into span tags? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The current highlighting feature of the editor is based on the paragraph, i.e., highlighting previously played paragraphs. However, highlighting words in long paragraphs can improve the user experience. Some other projects, such as BBC-react-transcript-editor provide this feature. As shown in the figure, the previous words are black. The current word has a green background. The words after that are gray.

Therefore, I have three questions.
Beta Was this translation helpful? Give feedback.
All reactions