Skip to content

Commit

Permalink
Local merged videos should now play locally instead of loading remote (
Browse files Browse the repository at this point in the history
  • Loading branch information
martyfuhry authored Aug 2, 2023
1 parent 1cf3378 commit fb65916
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class VideoViewerPage extends HookConsumerWidget {

@override
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!));
return videoFile.when(
data: (data) => VideoPlayer(
Expand Down

0 comments on commit fb65916

Please sign in to comment.