1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-28 09:33:27 +02:00

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 3 additions and 0 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),
);
}

Binary file not shown.