From 7e6187be02deb588a9a86899ec0b8699318dba79 Mon Sep 17 00:00:00 2001 From: Maksim Pischulenok Date: Wed, 23 Jul 2025 11:12:42 +0300 Subject: [PATCH] Add support for webm videos --- src/main/resources/static/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/static/index.html b/src/main/resources/static/index.html index c6e9c75..8727eca 100644 --- a/src/main/resources/static/index.html +++ b/src/main/resources/static/index.html @@ -58,7 +58,7 @@ const blob = await response.blob(); const blobUrl = URL.createObjectURL(blob); const contentType = response.headers.get("content-type"); - if (contentType === "video/mp4") { + if (contentType.startsWith("video/")) { const video = document.createElement("video"); video.src = blobUrl; video.controls = true;