Skip to content

Commit

Permalink
fix(mobile): Motion Photos stopping music (#10151)
Browse files Browse the repository at this point in the history
Add videoPlayer opt to prevent motionPhotos pausing music
  • Loading branch information
mycroftsnm authored Jun 11, 2024
1 parent 4b2ed28 commit 69b948f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
);
}

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mobile/lib/providers/map/map_state.provider.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 69b948f

Please sign in to comment.