Skip to content

Commit bc92480

Browse files
bjsowaTobinHall
andauthored
Add link to /stream in stream list (backport #118) (#160)
Co-authored-by: TobinHall <[email protected]>
1 parent 375fd06 commit bc92480

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
@@ -314,6 +314,9 @@ bool WebVideoServer::handle_list_streams(
314314
connection->write("\">");
315315
connection->write(image_topic_itr->substr(base_topic.size()));
316316
connection->write("</a> (");
317+
connection->write("<a href=\"/stream?topic=");
318+
connection->write(*image_topic_itr);
319+
connection->write("\">Stream</a>) (");
317320
connection->write("<a href=\"/snapshot?topic=");
318321
connection->write(*image_topic_itr);
319322
connection->write("\">Snapshot</a>)");
@@ -338,6 +341,9 @@ bool WebVideoServer::handle_list_streams(
338341
connection->write("\">");
339342
connection->write(*image_topic_itr);
340343
connection->write("</a> (");
344+
connection->write("<a href=\"/stream?topic=");
345+
connection->write(*image_topic_itr);
346+
connection->write("\">Stream</a>) (");
341347
connection->write("<a href=\"/snapshot?topic=");
342348
connection->write(*image_topic_itr);
343349
connection->write("\">Snapshot</a>)");

0 commit comments

Comments
 (0)