Skip to content

Commit f67d418

Browse files
TobinHallbjsowa
authored andcommitted
Add link to /stream in stream list (RobotWebTools#118)
Co-authored-by: Błażej Sowa <[email protected]>
1 parent e8156cb commit f67d418

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/web_video_server.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,9 @@ bool WebVideoServer::handle_list_streams(const async_web_server_cpp::HttpRequest
305305
connection->write("\">");
306306
connection->write(image_topic_itr->substr(base_topic.size()));
307307
connection->write("</a> (");
308+
connection->write("<a href=\"/stream?topic=");
309+
connection->write(*image_topic_itr);
310+
connection->write("\">Stream</a>) (");
308311
connection->write("<a href=\"/snapshot?topic=");
309312
connection->write(*image_topic_itr);
310313
connection->write("\">Snapshot</a>)");
@@ -331,6 +334,9 @@ bool WebVideoServer::handle_list_streams(const async_web_server_cpp::HttpRequest
331334
connection->write("\">");
332335
connection->write(*image_topic_itr);
333336
connection->write("</a> (");
337+
connection->write("<a href=\"/stream?topic=");
338+
connection->write(*image_topic_itr);
339+
connection->write("\">Stream</a>) (");
334340
connection->write("<a href=\"/snapshot?topic=");
335341
connection->write(*image_topic_itr);
336342
connection->write("\">Snapshot</a>)");

0 commit comments

Comments
 (0)