Add /video to automatically give HLS to supported browser

This commit is contained in:
Kamil Trzcinski
2022-09-06 23:04:55 +02:00
parent 5ee0bee59f
commit 5801152b03
12 changed files with 93 additions and 12 deletions

View File

@ -76,7 +76,9 @@ http_method_t http_methods[] = {
{ "GET /stream?", http_stream },
{ "GET /?action=snapshot", http_snapshot },
{ "GET /?action=stream", http_stream },
{ "GET /video?", http_content, "text/html", html_video_html, 0, &html_video_html_len },
{ "GET /video?", http_detect_video },
{ "GET /video.html?", http_content, "text/html", html_video_html, 0, &html_video_html_len },
{ "GET /video.m3u8?", http_m3u8_video },
{ "GET /video.h264?", http_h264_video },
{ "GET /video.mkv?", http_mkv_video },
{ "GET /video.mp4?", http_mp4_video },