Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
szahraak authored Dec 25, 2024
1 parent 885ccb6 commit 2b2e472
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,8 @@ document.addEventListener('DOMContentLoaded', () => {
imagePreview(file);
});
} else if (file.mimetype.startsWith("video/")) {
generateVideoThumbnail(file.path, function (thumbnailUrl) {
const blobUrl = URL.createObjectURL(file);
generateVideoThumbnail(blobUrl, function (thumbnailUrl) {
const thumbnail = document.createElement('img');
thumbnail.classList.add('video-bubble');
console.log('Thumbnail URL:', thumbnailUrl);
Expand Down

0 comments on commit 2b2e472

Please sign in to comment.