diff --git a/apps/client/src/App.tsx b/apps/client/src/App.tsx
index e66aa192..be6bd650 100644
--- a/apps/client/src/App.tsx
+++ b/apps/client/src/App.tsx
@@ -1,4 +1,5 @@
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
+import { Capacitor } from '@capacitor/core';
import {
Archive,
ArrowDownToLine,
@@ -66,11 +67,25 @@ function statusIcon(status: JobStatus) {
return ;
}
+function revealVideoPreview(video: HTMLVideoElement) {
+ if (video.currentTime > 0 || !Number.isFinite(video.duration) || video.duration <= 0) return;
+ video.currentTime = Math.min(0.05, video.duration / 2);
+}
+
function MediaPreview({ media }: { media: MediaItem }) {
+ const previewUrl = Capacitor.convertFileSrc(media.previewUrl);
if (media.kind === 'image' || media.kind === 'gif') {
- return
;
+ return
;
}
- return ;
+ return (
+