mirror of
https://github.com/immich-app/immich.git
synced 2025-01-28 00:59:18 -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
3 changed files with 5 additions and 2 deletions
|
@ -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),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ part of 'video_player_controller_provider.dart';
|
||||||
// **************************************************************************
|
// **************************************************************************
|
||||||
|
|
||||||
String _$videoPlayerControllerHash() =>
|
String _$videoPlayerControllerHash() =>
|
||||||
r'40b31f7b1a73fab84c311b0f06bedf5322143cd9';
|
r'642469a44287188a7c301f5cad3df3e23c84d85c';
|
||||||
|
|
||||||
/// Copied from Dart SDK
|
/// Copied from Dart SDK
|
||||||
class _SystemHash {
|
class _SystemHash {
|
||||||
|
|
|
@ -6,7 +6,7 @@ part of 'map_state.provider.dart';
|
||||||
// RiverpodGenerator
|
// RiverpodGenerator
|
||||||
// **************************************************************************
|
// **************************************************************************
|
||||||
|
|
||||||
String _$mapStateNotifierHash() => r'87a8623f726d438d115d5a15609c71372726ee2f';
|
String _$mapStateNotifierHash() => r'31fafe17aa85c48379a22ed3db3cc94af59ce5b8';
|
||||||
|
|
||||||
/// See also [MapStateNotifier].
|
/// See also [MapStateNotifier].
|
||||||
@ProviderFor(MapStateNotifier)
|
@ProviderFor(MapStateNotifier)
|
||||||
|
|
Loading…
Add table
Reference in a new issue