mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:29:32 -05:00 
			
		
		
		
	fix(mobile): Motion Photos stopping music (#10151)
Add videoPlayer opt to prevent motionPhotos pausing music
This commit is contained in:
		
							parent
							
								
									4b2ed28b1a
								
							
						
					
					
						commit
						69b948f3d0
					
				@ -31,6 +31,9 @@ Future<VideoPlayerController> videoPlayerController(
 | 
			
		||||
    controller = VideoPlayerController.networkUrl(
 | 
			
		||||
      url,
 | 
			
		||||
      httpHeaders: {"x-immich-user-token": accessToken},
 | 
			
		||||
      videoPlayerOptions: asset.livePhotoVideoId != null
 | 
			
		||||
          ? VideoPlayerOptions(mixWithOthers: true)
 | 
			
		||||
          : VideoPlayerOptions(mixWithOthers: false),
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -7,7 +7,7 @@ part of 'video_player_controller_provider.dart';
 | 
			
		||||
// **************************************************************************
 | 
			
		||||
 | 
			
		||||
String _$videoPlayerControllerHash() =>
 | 
			
		||||
    r'40b31f7b1a73fab84c311b0f06bedf5322143cd9';
 | 
			
		||||
    r'642469a44287188a7c301f5cad3df3e23c84d85c';
 | 
			
		||||
 | 
			
		||||
/// Copied from Dart SDK
 | 
			
		||||
class _SystemHash {
 | 
			
		||||
 | 
			
		||||
@ -6,7 +6,7 @@ part of 'map_state.provider.dart';
 | 
			
		||||
// RiverpodGenerator
 | 
			
		||||
// **************************************************************************
 | 
			
		||||
 | 
			
		||||
String _$mapStateNotifierHash() => r'87a8623f726d438d115d5a15609c71372726ee2f';
 | 
			
		||||
String _$mapStateNotifierHash() => r'31fafe17aa85c48379a22ed3db3cc94af59ce5b8';
 | 
			
		||||
 | 
			
		||||
/// See also [MapStateNotifier].
 | 
			
		||||
@ProviderFor(MapStateNotifier)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user