Fix UI and doc of Share local network

This commit is contained in:
Bruno Herbelin
2022-08-04 00:22:38 +02:00
parent 6712f1383e
commit f521ca1118
6 changed files with 2 additions and 6 deletions

View File

@@ -1105,10 +1105,6 @@ void ImGuiVisitor::visit (DeviceSource& s)
void ImGuiVisitor::visit (NetworkSource& s)
{
ImGuiToolkit::Icon(s.icon().x, s.icon().y);
ImGui::SameLine(0, IMGUI_SAME_LINE);
ImGui::Text("Shared stream");
ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(IMGUI_COLOR_STREAM, 0.9f));
ImGui::Text("%s", s.connection().c_str());
ImGui::PopStyleColor(1);

View File

@@ -292,7 +292,7 @@ void NetworkStream::update()
}
}
else {
Log::Warning("Connection was rejected by %s.\nMake sure it accepts connection and try again.", streamer_.name.c_str());
Log::Warning("Connection was rejected by %s.\nMake sure Sharing on local network is enabled and try again.", streamer_.name.c_str());
failed_=true;
}
}

View File

@@ -243,7 +243,7 @@ void Streaming::refuseStream(const std::string &sender, int reply_to)
// send OSC message to client
socket.Send( p.Data(), p.Size() );
// inform user
Log::Warning("A connection request for streaming came and was rejected.\nYou can Accept connections from the Output window.");
Log::Warning("A connection request for streaming came in and was refused.\nYou can enable the Sharing on local network from the menu of the Output window.");
}
void Streaming::addStream(const std::string &sender, int reply_to, const std::string &clientname)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 350 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 337 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 356 KiB

After

Width:  |  Height:  |  Size: 521 KiB