mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-02-28 12:46:32 +00:00
separate html_index.h
This commit is contained in:
63
src/data/html_index.h
Normal file
63
src/data/html_index.h
Normal file
@@ -0,0 +1,63 @@
|
||||
/*****************************************************************************
|
||||
# uStreamer - Lightweight and fast MJPG-HTTP streamer. #
|
||||
# #
|
||||
# Copyright (C) 2018 Maxim Devaev <mdevaev@gmail.com> #
|
||||
# #
|
||||
# This program is free software: you can redistribute it and/or modify #
|
||||
# it under the terms of the GNU General Public License as published by #
|
||||
# the Free Software Foundation, either version 3 of the License, or #
|
||||
# (at your option) any later version. #
|
||||
# #
|
||||
# This program is distributed in the hope that it will be useful, #
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
||||
# GNU General Public License for more details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU General Public License #
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
*****************************************************************************/
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
|
||||
const char *HTML_INDEX_PAGE = " \
|
||||
<!DOCTYPE html> \
|
||||
<html> \
|
||||
<head> \
|
||||
<meta charset=\"utf-8\"> \
|
||||
<title>uStreamer</title> \
|
||||
</head> \
|
||||
<body> \
|
||||
<ul> \
|
||||
<li> \
|
||||
<a href=\"/ping\"><b>/ping</b></a><br> \
|
||||
Get JSON structure with state of the server. \
|
||||
</li> \
|
||||
<hr><br> \
|
||||
<li> \
|
||||
<a href=\"/snapshot\"><b>/snapshot</b></a><br> \
|
||||
Get a current actual image from server. \
|
||||
</li> \
|
||||
<hr><br> \
|
||||
<li> \
|
||||
<a href=\"/stream\"><b>/stream</b></a><br> \
|
||||
Get a live stream. Query params: \
|
||||
<ul> \
|
||||
<li> \
|
||||
<i>advance_headers=1</i><br> \
|
||||
Enable workaround for Chromium/Blink \
|
||||
<a href=\"https://bugs.chromium.org/p/chromium/issues/detail?id=527446\">Bug #527446</a>. \
|
||||
</li> \
|
||||
</ul> \
|
||||
</li> \
|
||||
<br> \
|
||||
</ul> \
|
||||
<hr> \
|
||||
µStreamer v" VERSION " \
|
||||
</body> \
|
||||
</html> \
|
||||
";
|
||||
Reference in New Issue
Block a user