comparison 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
comparison
equal deleted inserted replaced
241:9c2eec61a152 242:543df0fe7168
290 else if (strstr(file_path, ".json")) mime = "application/json"; 290 else if (strstr(file_path, ".json")) mime = "application/json";
291 else if (strstr(file_path, ".wasm")) mime = "application/wasm"; 291 else if (strstr(file_path, ".wasm")) mime = "application/wasm";
292 else if (strstr(file_path, ".xml")) mime = "application/xml"; 292 else if (strstr(file_path, ".xml")) mime = "application/xml";
293 else if (strstr(file_path, ".pdf")) mime = "application/pdf"; 293 else if (strstr(file_path, ".pdf")) mime = "application/pdf";
294 else if (strstr(file_path, ".txt")) mime = "text/plain"; 294 else if (strstr(file_path, ".txt")) mime = "text/plain";
295 else if (strstr(file_path, ".m3u8")) mime = "application/vnd.apple.mpegurl";
296 else if (strstr(file_path, ".m4s")) mime = "video/iso.segment";
297 else if (strstr(file_path, ".ts")) mime = "video/mp2t";
295 else if (strstr(file_path, ".mp4")) mime = "video/mp4"; 298 else if (strstr(file_path, ".mp4")) mime = "video/mp4";
296 else if (strstr(file_path, ".webm")) mime = "video/webm"; 299 else if (strstr(file_path, ".webm")) mime = "video/webm";
297 else if (strstr(file_path, ".mp3")) mime = "audio/mpeg"; 300 else if (strstr(file_path, ".mp3")) mime = "audio/mpeg";
298 else if (strstr(file_path, ".woff2")) mime = "font/woff2"; 301 else if (strstr(file_path, ".woff2")) mime = "font/woff2";
299 else if (strstr(file_path, ".woff")) mime = "font/woff"; 302 else if (strstr(file_path, ".woff")) mime = "font/woff";