Skip to content

Investigate and propose fix for issue 126#128

Merged
Antoine-lb merged 2 commits into
masterfrom
cursor/investigate-and-propose-fix-for-issue-126-22ed
Sep 21, 2025
Merged

Investigate and propose fix for issue 126#128
Antoine-lb merged 2 commits into
masterfrom
cursor/investigate-and-propose-fix-for-issue-126-22ed

Conversation

@Antoine-lb
Copy link
Copy Markdown
Contributor

Fix video playback and "EXIF data error" by correctly handling video metadata extraction and DOM events.

Previously, video files were processed using image-specific EXIF fields and relied on the onload event for dimension detection, which videos do not fire. This led to videos failing to load, displaying a generic "EXIF data error", and preventing playback in slide mode. This PR introduces video-specific metadata field parsing and uses the correct onloadedmetadata event, along with improved error fallbacks and user-facing messages.


Open in Cursor Open in Web

Co-authored-by: antoine.stc25 <antoine.stc25@gmail.com>
@cursor
Copy link
Copy Markdown

cursor Bot commented Sep 21, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@Antoine-lb Antoine-lb marked this pull request as ready for review September 21, 2025 16:51
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

Comment thread common/ExifIO.ts
*/
private isVideoFile(filepath: string): boolean {
return filepath.toLowerCase().match(/\.(mp4|webm|ogg)$/) !== null;
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: ExifIO Video Recognition Mismatch

The ExifIO.isVideoFile method only recognizes mp4, webm, and ogg files. This is inconsistent with the isFileExtensionVideo function used in the UI. For video files outside this limited set, ExifIO will attempt to read image dimensions, leading to incorrect or missing dimensions.

Fix in Cursor Fix in Web

Co-authored-by: antoine.stc25 <antoine.stc25@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants