0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-07 00:50:23 -05:00

Local merged videos should now play locally instead of loading remote (#3521)

This commit is contained in:
martyfuhry 2023-08-02 17:01:30 -04:00 committed by GitHub
parent 1cf3378499
commit fb6591607f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,7 +34,7 @@ class VideoViewerPage extends HookConsumerWidget {
@override @override
Widget build(BuildContext context, WidgetRef ref) { Widget build(BuildContext context, WidgetRef ref) {
if (asset.storage == AssetState.local && asset.livePhotoVideoId == null) { if (asset.isLocal && asset.livePhotoVideoId == null) {
final AsyncValue<File> videoFile = ref.watch(_fileFamily(asset.local!)); final AsyncValue<File> videoFile = ref.watch(_fileFamily(asset.local!));
return videoFile.when( return videoFile.when(
data: (data) => VideoPlayer( data: (data) => VideoPlayer(