[feat] add notification text in stream windows when connection failed/disconnected/closed

This commit is contained in:
dijunkun
2025-05-29 16:51:18 +08:00
parent a8b5e934b8
commit 05d73ebe9a
2 changed files with 44 additions and 14 deletions

View File

@@ -167,6 +167,8 @@ class Render {
int DrawStreamWindow();
int ConfirmDeleteConnection();
int NetTrafficStats(std::shared_ptr<SubStreamWindowProperties> &props);
void DrawConnectionStatusText(
std::shared_ptr<SubStreamWindowProperties> &props);
public:
static void OnReceiveVideoBufferCb(const XVideoFrame *video_frame,
@@ -422,6 +424,7 @@ class Render {
/* ------ sub stream window property start ------ */
std::unordered_map<std::string, std::shared_ptr<SubStreamWindowProperties>>
client_properties_;
void CloseTab(decltype(client_properties_)::iterator &it);
/* ------ stream window property end ------ */
};