Feature: Implement initial macOS SimpleRemoter client
This commit is contained in:
@@ -1428,11 +1428,9 @@ void CWebService::BroadcastH264Frame(uint64_t device_id, const uint8_t* data, si
|
||||
|
||||
// Broadcast to all watching clients
|
||||
std::lock_guard<std::mutex> lock(m_ClientsMutex);
|
||||
int sent_count = 0;
|
||||
for (auto& [ws_ptr, client] : m_Clients) {
|
||||
if (client.watch_device_id == device_id) {
|
||||
SendBinary(ws_ptr, data, len);
|
||||
sent_count++;
|
||||
}
|
||||
}
|
||||
// Cache keyframe (check FrameType byte at offset 4)
|
||||
|
||||
Reference in New Issue
Block a user