[fix] split mouse and keyboard from data channel and use reliable transimission

This commit is contained in:
dijunkun
2026-03-23 21:14:07 +08:00
parent 13c37f01b1
commit 83cacf6f51
4 changed files with 16 additions and 4 deletions
+2
View File
@@ -224,6 +224,8 @@ int Render::ConnectTo(const std::string& remote_id, const char* password,
}
AddAudioStream(props->peer_, props->audio_label_.c_str());
AddDataStream(props->peer_, props->data_label_.c_str(), false);
AddDataStream(props->peer_, props->mouse_label_.c_str(), false);
AddDataStream(props->peer_, props->keyboard_label_.c_str(), true);
AddDataStream(props->peer_, props->control_data_label_.c_str(), true);
AddDataStream(props->peer_, props->file_label_.c_str(), true);
AddDataStream(props->peer_, props->file_feedback_label_.c_str(), true);