소스 검색

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

martyfuhry 2 년 전
부모
커밋
fb6591607f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      mobile/lib/modules/asset_viewer/views/video_viewer_page.dart

+ 1 - 1
mobile/lib/modules/asset_viewer/views/video_viewer_page.dart

@@ -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(