Co-authored-by: lixiancan <lixc.percy@gmail.com>
This commit is contained in:
@@ -162,14 +162,14 @@ export const MediaCaption = (props: {
|
||||
{displayIpa &&
|
||||
ipa.find(
|
||||
(i) =>
|
||||
i.word.trim() === w.text.replace(/[\.,?!]/g, "").trim()
|
||||
i.word.trim() === w.text.replace(/[\.",?!]/g, "").trim()
|
||||
)?.ipa && (
|
||||
<div className="text-sm text-foreground/70 font-serif">
|
||||
{
|
||||
ipa.find(
|
||||
(i) =>
|
||||
i.word.trim() ===
|
||||
w.text.replace(/[\.,?!]/g, "").trim()
|
||||
w.text.replace(/[\.",?!]/g, "").trim()
|
||||
)?.ipa
|
||||
}
|
||||
</div>
|
||||
|
||||
@@ -149,7 +149,7 @@ export const MediaPlayer = (props: {
|
||||
const index = transcriptionResult.findIndex(
|
||||
(t) => time >= t.offsets.from && time < t.offsets.to
|
||||
);
|
||||
|
||||
if (index === -1) return;
|
||||
setCurrentSegmentIndex(index);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user