Fix pixel live photos not playing when taken with JPG+RAW

This commit is contained in:
Ming Ming 2024-09-19 01:30:21 +08:00
parent 4ecf46b024
commit 31200d3e02

View file

@ -5,6 +5,10 @@ LivePhotoType? getLivePhotoTypeFromFile(FileDescriptor file) {
final filenameL = file.filename.toLowerCase();
if (filenameL.startsWith("pxl_") && filenameL.endsWith(".mp.jpg")) {
return LivePhotoType.googleMp;
} else if (filenameL.startsWith("pxl_") &&
filenameL.endsWith(".mp.cover.jpg")) {
// RAW
return LivePhotoType.googleMp;
} else if (filenameL.startsWith("mvimg_") && filenameL.endsWith(".jpg")) {
return LivePhotoType.googleMvimg;
} else {