[feat] use reliable transmission to send control info

This commit is contained in:
dijunkun
2026-01-12 17:28:19 +08:00
parent 8468be6532
commit 0155413c12
4 changed files with 7 additions and 4 deletions

View File

@@ -96,7 +96,7 @@ int Render::ControlBar(std::shared_ptr<SubStreamWindowProperties>& props) {
if (props->connection_status_ == ConnectionStatus::Connected) {
std::string msg = remote_action.to_json();
SendDataFrame(props->peer_, msg.c_str(), msg.size(),
props->data_label_.c_str());
props->control_data_label_.c_str());
}
}
props->display_selectable_hovered_ = ImGui::IsWindowHovered();
@@ -177,7 +177,7 @@ int Render::ControlBar(std::shared_ptr<SubStreamWindowProperties>& props) {
remote_action.a = props->audio_capture_button_pressed_;
std::string msg = remote_action.to_json();
SendDataFrame(props->peer_, msg.c_str(), msg.size(),
props->data_label_.c_str());
props->control_data_label_.c_str());
}
}