* Add cursor pointer to preset dropdown

* Catch key index

* Fix iOS mime type
This commit is contained in:
Nicolas Mowen 2024-05-30 07:41:37 -06:00 committed by GitHub
parent 9cb3e11df6
commit 1c5e7ebb48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 3 deletions

View File

@ -104,14 +104,18 @@ export function AnimatedEventCard({ event }: AnimatedEventCardProps) {
/>
) : (
<video
src={`${baseUrl}api/review/${event.id}/preview?format=ts`}
preload="auto"
autoPlay
playsInline
muted
disableRemotePlayback
loop
>
<source
src={`${baseUrl}api/review/${event.id}/preview?format=mp4`}
type="video/mp4"
/>
</video>
)}
</div>
<div className="absolute inset-x-0 bottom-0 h-6 rounded bg-gradient-to-t from-slate-900/50 to-transparent">

View File

@ -672,7 +672,9 @@ export function InProgressPreview({
setReviewed(review.id);
}
if (previewFrames[key + 1]) {
setKey(key + 1);
}
}, MIN_LOAD_TIMEOUT_MS);
// we know that these deps are correct

View File

@ -594,6 +594,7 @@ function PtzControlPanel({
return (
<DropdownMenuItem
key={preset}
className="cursor-pointer"
onSelect={() => sendPtz(`preset_${preset}`)}
>
{preset}