Реализация звонков на сервере #15

Merged
Royce59 merged 19 commits from dev into main 2026-03-18 17:36:43 +00:00
Showing only changes of commit 7a8692f3c6 - Show all commits

View File

@@ -138,6 +138,14 @@ public class ForwardUnitService {
e.printStackTrace();
}
});
connection.setOfferConsumer(arg0 -> {
try{
onSdpOffer(arg0);
}catch(ProtocolException e){
this.logger.error(Color.RED + "Failed to retranslate SDP offer from SFU server: " + address + ", error: " + e.getMessage());
e.printStackTrace();
}
});
this.sfuConnections.add(connection);
this.logger.info(Color.GREEN + "Successfully connected to SFU server: " + address);
} catch (Exception e) {