Настройка пересылки SDP оффера при Renegotiation

This commit is contained in:
RoyceDa
2026-03-16 19:26:21 +02:00
parent 6071e4ddbd
commit 7a8692f3c6

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) {