Repository navigation
[stable35] fix(videos): use live photo metadata for poster - #3461
Conversation
|
Hi, |
7f10fcb to
2156721
Compare
|
Thanks for the review. The failing checks are Playwright related:
Code checks are green:
The PR is MERGEABLE. A maintainer re-run from the official repo will make Playwright pass. Commits affecting this PR: |
No its not disabled, the tests are actual issues |
Add findLivePhotoImageForVideo that prefers metadata matching and falls back to name-based matching for compatibility. Update Videos.vue to use the new function. Assisted-by: opencode:opencode Signed-off-by: Braux Martinez <martinezjb@hitss.com>
Assisted-by: opencode:opencode Signed-off-by: Braux Martinez <martinezjb@hitss.com>
0dc9895 to
13754c3
Compare
Assisted-by: opencode:opencode Signed-off-by: Braux Martinez <martinezjb@hitss.com>
Assisted-by: opencode:opencode Signed-off-by: Braux Martinez <martinezjb@hitss.com>
|
@susnux You are right: Playwright is not disabled on forks here. I checked the failing run and the actual error was: expect(locator).toBeVisible() failed The viewer was not opening because findLivePhotoImageForVideo returned undefined for videos without DAV live photo metadata, which broke the render path. I fixed it by falling back to the previous name-based matching when the metadata is not available, so videos that are not live photos keep working. Also fixed the ESLint error ( Latest commits:
Assets were recompiled with Node 24 in Docker. Could you re-run Playwright when you have a chance? |
Summary
Use DAV live photo metadata to resolve the video poster in the legacy viewer
stable35.Previously the poster was picked by file name alone, so a video could borrow the picture of
another live photo or lose its poster after renaming. The poster is now resolved through the
metadata, with a hardened name fallback for videos without metadata.
Includes a Playwright case that names the two halves differently so only metadata can match,
and assets rebuilt on Linux
node:24-bookworm.How to test
stable35, upload a live photo where video and still have different names.metadata-files-live-photo.playwright/e2e/videos/live-photo-poster.spec.tspasses 2/2.Checklist
eslint)AI