Skip to content

Commit

Permalink
Add link to /stream in stream list (#118)
Browse files Browse the repository at this point in the history
Co-authored-by: Błażej Sowa <[email protected]>
  • Loading branch information
TobinHall and bjsowa authored Oct 3, 2024
1 parent 9329262 commit d6eaa8f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/web_video_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,9 @@ bool WebVideoServer::handle_list_streams(const async_web_server_cpp::HttpRequest
connection->write("\">");
connection->write(image_topic_itr->substr(base_topic.size()));
connection->write("</a> (");
connection->write("<a href=\"/stream?topic=");
connection->write(*image_topic_itr);
connection->write("\">Stream</a>) (");
connection->write("<a href=\"/snapshot?topic=");
connection->write(*image_topic_itr);
connection->write("\">Snapshot</a>)");
Expand All @@ -331,6 +334,9 @@ bool WebVideoServer::handle_list_streams(const async_web_server_cpp::HttpRequest
connection->write("\">");
connection->write(*image_topic_itr);
connection->write("</a> (");
connection->write("<a href=\"/stream?topic=");
connection->write(*image_topic_itr);
connection->write("\">Stream</a>) (");
connection->write("<a href=\"/snapshot?topic=");
connection->write(*image_topic_itr);
connection->write("\">Snapshot</a>)");
Expand Down

0 comments on commit d6eaa8f

Please sign in to comment.