({src, ...otherProps})
| 88 | } |
| 89 | |
| 90 | export function Video({src, ...otherProps}) { |
| 91 | let publicUrl = React.useContext(ImageContext); |
| 92 | let baseUrl = publicUrl.replace(/\/$/, ''); |
| 93 | let url = baseUrl + '/' + path.basename(src); |
| 94 | |
| 95 | return ( |
| 96 | // eslint-disable-next-line jsx-a11y/media-has-caption |
| 97 | <video src={url} playsInline className={docStyles.video} {...otherProps} /> |
| 98 | ); |
| 99 | } |
| 100 | |
| 101 | export function Track({src, srclang: srcLang, ...otherProps}) { |
| 102 | let publicUrl = React.useContext(ImageContext); |
nothing calls this directly
no outgoing calls
no test coverage detected