Adding a download link to the clip page

This commit is contained in:
Josh Edlin 2021-06-03 15:09:05 -04:00
parent 09a4d6d030
commit cada5bb7bd

View File

@ -61,6 +61,7 @@ export default function Event({ eventId }) {
src={`${apiHost}/clips/${data.camera}-${eventId}.mp4`} src={`${apiHost}/clips/${data.camera}-${eventId}.mp4`}
controls controls
/> />
<a href={`${apiHost}/clips/${data.camera}-${eventId}.mp4`} download>Download Clip</a>
</Fragment> </Fragment>
) : ( ) : (
<p>No clip available</p> <p>No clip available</p>