openvidu-server: send network quality event to every participant

pull/550/head
csantosm 2020-10-09 12:35:49 +02:00
parent acdfcd6559
commit 482d03d8e9
1 changed files with 6 additions and 3 deletions

View File

@ -302,9 +302,12 @@ public class SessionEventsHandler {
rpcNotificationService.sendResponse(participant.getParticipantPrivateId(), transactionId, new JsonObject()); rpcNotificationService.sendResponse(participant.getParticipantPrivateId(), transactionId, new JsonObject());
} }
public void onNetworkQualityLevelChanged(Participant participant, JsonObject params) { public void onNetworkQualityLevelChanged(Session session, JsonObject params) {
rpcNotificationService.sendNotification(participant.getParticipantPrivateId(),
session.getParticipants().forEach(p -> {
rpcNotificationService.sendNotification(p.getParticipantPrivateId(),
ProtocolElements.NETWORKQUALITYLEVELCHANGED_METHOD, params); ProtocolElements.NETWORKQUALITYLEVELCHANGED_METHOD, params);
});
} }
public void onSendMessage(Participant participant, JsonObject message, Set<Participant> participants, public void onSendMessage(Participant participant, JsonObject message, Set<Participant> participants,