Improved connection robustness and diconnection/connection behaviors

(added connection rejection to streamer).
This commit is contained in:
brunoherbelin
2020-10-25 22:01:04 +01:00
parent e60c7a4cad
commit 01410a59cf
7 changed files with 148 additions and 79 deletions

View File

@@ -544,11 +544,12 @@ void ImGuiVisitor::visit (NetworkSource& s)
ImGui::Text(" - %s (%dx%d)\n - Network host %s:%d", NetworkToolkit::protocol_name[ns->protocol()],
ns->resolution().x, ns->resolution().y, ns->IP().c_str(), ns->port());
if ( !ns->isPlaying()) {
if ( !ns->connected()) {
if ( ImGui::Button("Interrupted - Reload", ImVec2(IMGUI_RIGHT_ALIGN, 0)) )
{
// TODO : reload ?
s.setConnection(s.connection());
}
}