fix(mobile): Motion Photos stopping music (#10151)

Add videoPlayer opt to prevent motionPhotos pausing music
This commit is contained in:
Alejandro Armas 2024-06-11 13:14:49 -03:00 committed by GitHub
parent 4b2ed28b1a
commit 69b948f3d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 2 deletions

View File

@ -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),
);
}

View File

@ -7,7 +7,7 @@ part of 'video_player_controller_provider.dart';
// **************************************************************************
String _$videoPlayerControllerHash() =>
r'40b31f7b1a73fab84c311b0f06bedf5322143cd9';
r'642469a44287188a7c301f5cad3df3e23c84d85c';
/// Copied from Dart SDK
class _SystemHash {

View File

@ -6,7 +6,7 @@ part of 'map_state.provider.dart';
// RiverpodGenerator
// **************************************************************************
String _$mapStateNotifierHash() => r'87a8623f726d438d115d5a15609c71372726ee2f';
String _$mapStateNotifierHash() => r'31fafe17aa85c48379a22ed3db3cc94af59ce5b8';
/// See also [MapStateNotifier].
@ProviderFor(MapStateNotifier)