[fix] use new rtc api

This commit is contained in:
dijunkun
2024-11-26 15:06:55 +08:00
parent 31b6b2736c
commit 370ac08d09
4 changed files with 11 additions and 19 deletions

View File

@@ -88,8 +88,7 @@ int Render::ControlBar() {
RemoteAction remote_action;
remote_action.type = ControlType::audio_capture;
remote_action.a = audio_capture_button_pressed_;
SendData(peer_, DATA_TYPE::DATA, (const char*)&remote_action,
sizeof(remote_action));
SendData(peer_, (const char*)&remote_action, sizeof(remote_action));
}
}
if (!audio_capture_button_pressed_) {