Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mobile][photos] use media kit video player for device trash files

Priyanshu Dangare8807564a52e8
diff --git a/mobile/apps/photos/lib/ui/viewer/file/video_widget.dart b/mobile/apps/photos/lib/ui/viewer/file/video_widget.dart
index 36e43d2f82..eae164110d 100644
--- a/mobile/apps/photos/lib/ui/viewer/file/video_widget.dart
+++ b/mobile/apps/photos/lib/ui/viewer/file/video_widget.dart
@@ -161,7 +161,9 @@ class _VideoWidgetState extends State<VideoWidget> {
}
final shouldUseNativeVideoPlayer =
- useNativeVideoPlayer && (!playPreview || Platform.isAndroid);
+ useNativeVideoPlayer &&
+ !widget.file.isDeviceTrash &&
+ (!playPreview || Platform.isAndroid);
if (shouldUseNativeVideoPlayer) {
return VideoWidgetNative(