Repository navigation
Conversation
sifferman
requested review from
agg23,
santoshakil and
shenlong-tanwen
as code owners
December 5, 2026 03:13
Contributor
|
Label error. Requires exactly 1 of: changelog:.*. Found: 📱mobile. A maintainer will add the required label. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Hello! Thank you for this tool, and sorry for such a large PR. I noticed this issue when trying to Airplay photos for my family.
Resolves #23791 and #9267.
This makes Airplay in Immich behave like in iOS Photos. iOS gives every app a second window scene on an external display (AirPlay or cable), and an app that leaves it empty gets the mirror. This patch puts the media on that external display canvas. Here are the main changes:
AVPlayer, through a secondAVPlayerLayer. The controls stay on the phoneThe scene connects differently per iOS version, and iOS 27 and iOS 15 each have their own commit. iOS 16 to 26 connect it from
Info.plist. iOS 27 only connects it after the app registers a scene accessory. iOS 15 needs the olderUIWindowSceneSessionRoleExternalDisplayrole. Though I don't have hardware to test iOS 15, I just saw that requirement in Apple's docs. I can drop the untested iOS 15 commit if needed.There's no in-app AirPlay button. I'm not sure how to do that. So I just wrote a message in the cast interface.
Feel free to look at the commit history. It shows the incremental features being added.
native_video_player
I created a fork of native_video_player to get videos playing properly: immich-app/native_video_player@main...sifferman:native_video_player:expose-playing-player. For now
pubspec.yamlpoints at the fork so the branch builds, and that pin has to go back toimmich-appbefore this merges. I can open a pull request if desired.Each video commit here uses one commit from the fork:
onPlayreports theAVPlayerwhen playback starts, so Immich can attach a second layerkeepsPlayingAfterCloseasks Immich whether a closing view should keep its player. A kept player still loops ifsetLoop(true)was setonPlayandkeepsPlayingAfterCloseare optional callbacks. An app that doesn't set them sees no change.How Has This Been Tested?
xcrun simctl io <device> screenConfig --display=external power on.flutter test test/unit/presentation/external_display_photo_test.dart test/unit/presentation/cast_dialog_test.dartNo unit tests cover the Swift side, because there's no iOS test target and CI never launches the app.
Screenshots (if appropriate)
demo-github.mp4
Checklist:
src/services/uses repositories implementations for database calls, filesystem operations, etc.src/repositories/is pretty basic/simple and does not have any immich specific logic (that belongs insrc/services/)Please describe to which degree, if any, an LLM was used in creating this pull request.
I used Claude to draft all changes and draft this description. However, I have thoroughly reviewed every line, and take full accountability for this PR.