Compare commits

...

2 Commits

Author SHA1 Message Date
Anirudh Sevugan
a26e1448ab
Update renderer.js
Some checks failed
Build Linux / build_x64 (push) Has been cancelled
Build Linux / build_arm64 (push) Has been cancelled
Build macOS / build (push) Has been cancelled
Build Windows / build-x64 (push) Has been cancelled
Build Windows / build-arm64 (push) Has been cancelled
2025-09-15 18:19:03 -05:00
Anirudh Sevugan
59a8d5c577
v2.1.4 2025-09-15 18:17:27 -05:00

View File

@ -97,17 +97,11 @@ window.addEventListener('drop', e => {
const fileURL = URL.createObjectURL(file);
mediaElement.src = fileURL;
// Only attempt to play if the browser thinks it can handle this type
if (mediaElement.canPlayType(file.type)) {
mediaElement.load();
mediaElement.load();
// Autoplay if checkbox is checked
if (autoplayCheckbox.checked) {
mediaElement.play().catch(err => console.warn(err));
}
} else {
console.warn("SimpliPlay does not support this video type:", file.type);
}
// Store for future cleanup
previousDropURL = fileURL;
@ -202,3 +196,5 @@ window.electron.receive("unload-addon", (fileURL) => {