mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-20 23:16:17 -05:00
Handling situation where React Router may not be available for a Tag Label.
This commit is contained in:
parent
0920383963
commit
2cbc6e00e0
8 changed files with 56 additions and 33 deletions
|
|
@ -183,7 +183,7 @@ function VideoPage({videoFile, prevFile, nextFile, fetchVideo, ...props}) {
|
|||
>
|
||||
<source src={videoUrl} type="video/mp4"/>
|
||||
{/* Only WebVTT captions can be displayed. */}
|
||||
{captionUrls.map(i => <track kind="captions" label="English" src={i} srcLang="en" default/>)}
|
||||
{captionUrls.map(i => <track key={i} kind="captions" label="English" src={i} srcLang="en" default/>)}
|
||||
</video>
|
||||
|
||||
<Container style={{marginTop: '1em'}}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue