mirror of
https://github.com/immich-app/immich.git
synced 2025-01-28 06:32:44 +01: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
3 changed files with 3 additions and 0 deletions
mobile/lib/providers
|
@ -31,6 +31,9 @@ Future<VideoPlayerController> videoPlayerController(
|
||||||
controller = VideoPlayerController.networkUrl(
|
controller = VideoPlayerController.networkUrl(
|
||||||
url,
|
url,
|
||||||
httpHeaders: {"x-immich-user-token": accessToken},
|
httpHeaders: {"x-immich-user-token": accessToken},
|
||||||
|
videoPlayerOptions: asset.livePhotoVideoId != null
|
||||||
|
? VideoPlayerOptions(mixWithOthers: true)
|
||||||
|
: VideoPlayerOptions(mixWithOthers: false),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Binary file not shown.
BIN
mobile/lib/providers/map/map_state.provider.g.dart
generated
BIN
mobile/lib/providers/map/map_state.provider.g.dart
generated
Binary file not shown.
Loading…
Reference in a new issue