File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -234,6 +234,23 @@ bool WebVideoServer::handle_list_streams(const async_web_server_cpp::HttpRequest
234
234
}
235
235
connection->write (" </li>" );
236
236
}
237
+ connection->write (" </ul>" );
238
+ // Add the rest of the image topics that don't have camera_info.
239
+ connection->write (" <ul>" );
240
+ std::vector<std::string>::iterator image_topic_itr = image_topics.begin ();
241
+ for (; image_topic_itr != image_topics.end ();) {
242
+ connection->write (" <li><a href=\" /stream_viewer?topic=" );
243
+ connection->write (*image_topic_itr);
244
+ connection->write (" \" >" );
245
+ connection->write (*image_topic_itr);
246
+ connection->write (" </a> (" );
247
+ connection->write (" <a href=\" /snapshot?topic=" );
248
+ connection->write (*image_topic_itr);
249
+ connection->write (" \" >Snapshot</a>)" );
250
+ connection->write (" </li>" );
251
+
252
+ image_topic_itr = image_topics.erase (image_topic_itr);
253
+ }
237
254
connection->write (" </ul></body></html>" );
238
255
return true ;
239
256
}
You can’t perform that action at this time.
0 commit comments