diff seobeo/s_web.c @ 242:543df0fe7168

[tools] Add full HLS player support
author MrJuneJune <me@mrjunejune.com>
date Mon, 03 Aug 2026 13:14:41 -0700
parents 0e7b9464248d
children b8aa08503378
line wrap: on
line diff
--- a/seobeo/s_web.c	Mon Aug 03 11:26:30 2026 -0700
+++ b/seobeo/s_web.c	Mon Aug 03 13:14:41 2026 -0700
@@ -292,6 +292,9 @@
     else if (strstr(file_path, ".xml")) mime = "application/xml";
     else if (strstr(file_path, ".pdf")) mime = "application/pdf";
     else if (strstr(file_path, ".txt")) mime = "text/plain";
+    else if (strstr(file_path, ".m3u8")) mime = "application/vnd.apple.mpegurl";
+    else if (strstr(file_path, ".m4s")) mime = "video/iso.segment";
+    else if (strstr(file_path, ".ts")) mime = "video/mp2t";
     else if (strstr(file_path, ".mp4")) mime = "video/mp4";
     else if (strstr(file_path, ".webm")) mime = "video/webm";
     else if (strstr(file_path, ".mp3")) mime = "audio/mpeg";