test(web): routes/Event

This commit is contained in:
Paul Armstrong
2021-02-13 20:00:45 -08:00
committed by Blake Blackshear
parent 05f66b8f24
commit c12aec7c8f
2 changed files with 83 additions and 1 deletions

View File

@@ -54,7 +54,13 @@ export default function Event({ eventId }) {
{data.has_clip ? (
<Fragment>
<Heading size="sm">Clip</Heading>
<video autoPlay className="w-100" src={`${apiHost}/clips/${data.camera}-${eventId}.mp4`} controls />
<video
aria-label={`Clip for event ${data.id}`}
autoPlay
className="w-100"
src={`${apiHost}/clips/${data.camera}-${eventId}.mp4`}
controls
/>
</Fragment>
) : (
<p>No clip available</p>