diff --git a/simpliplay/renderer.js b/simpliplay/renderer.js index b28c70b..6a6efd9 100644 --- a/simpliplay/renderer.js +++ b/simpliplay/renderer.js @@ -97,18 +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); - alert("SimpliPlay either can't play this file or the MIME type may be incorrect"); -} // Store for future cleanup previousDropURL = fileURL; @@ -204,3 +197,4 @@ window.electron.receive("unload-addon", (fileURL) => { +