mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-27 08:55:54 +03:00
comment out first try to raise hand
this is not working yet. It's for now commented out in order to continue with "request help" feature for breakout rooms. Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
49571ca229
commit
99a4ca5e33
2 changed files with 28 additions and 30 deletions
|
@ -1226,21 +1226,20 @@ public class CallActivity extends CallBaseActivity {
|
|||
|
||||
public void clickHand(Boolean raise) {
|
||||
// TODO: fix how to build&send the message
|
||||
|
||||
if (isConnectionEstablished() && peerConnectionWrapperList != null) {
|
||||
if (!hasMCU) {
|
||||
for (PeerConnectionWrapper peerConnectionWrapper : peerConnectionWrapperList) {
|
||||
peerConnectionWrapper.raiseHand(raise);
|
||||
}
|
||||
} else {
|
||||
for (PeerConnectionWrapper peerConnectionWrapper : peerConnectionWrapperList) {
|
||||
if (peerConnectionWrapper.getSessionId().equals(webSocketClient.getSessionId())) {
|
||||
peerConnectionWrapper.raiseHand(raise);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// if (isConnectionEstablished() && peerConnectionWrapperList != null) {
|
||||
// if (!hasMCU) {
|
||||
// for (PeerConnectionWrapper peerConnectionWrapper : peerConnectionWrapperList) {
|
||||
// peerConnectionWrapper.raiseHand(raise);
|
||||
// }
|
||||
// } else {
|
||||
// for (PeerConnectionWrapper peerConnectionWrapper : peerConnectionWrapperList) {
|
||||
// if (peerConnectionWrapper.getSessionId().equals(webSocketClient.getSessionId())) {
|
||||
// peerConnectionWrapper.raiseHand(raise);
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -193,21 +193,20 @@ public class PeerConnectionWrapper {
|
|||
public void raiseHand(Boolean raise) {
|
||||
|
||||
// TODO: fix how to build&send the message
|
||||
|
||||
NCMessagePayload ncMessagePayload = new NCMessagePayload();
|
||||
ncMessagePayload.setState(raise);
|
||||
ncMessagePayload.setTimestamp(System.currentTimeMillis());
|
||||
|
||||
|
||||
NCSignalingMessage ncSignalingMessage = new NCSignalingMessage();
|
||||
// ncSignalingMessage.setFrom();
|
||||
ncSignalingMessage.setTo(sessionId);
|
||||
// ncSignalingMessage.setSid();
|
||||
ncSignalingMessage.setType("raiseHand");
|
||||
ncSignalingMessage.setPayload(ncMessagePayload);
|
||||
ncSignalingMessage.setRoomType(videoStreamType);
|
||||
|
||||
signalingMessageSender.send(ncSignalingMessage);
|
||||
// NCMessagePayload ncMessagePayload = new NCMessagePayload();
|
||||
// ncMessagePayload.setState(raise);
|
||||
// ncMessagePayload.setTimestamp(System.currentTimeMillis());
|
||||
//
|
||||
//
|
||||
// NCSignalingMessage ncSignalingMessage = new NCSignalingMessage();
|
||||
//// ncSignalingMessage.setFrom();
|
||||
// ncSignalingMessage.setTo(sessionId);
|
||||
//// ncSignalingMessage.setSid();
|
||||
// ncSignalingMessage.setType("raiseHand");
|
||||
// ncSignalingMessage.setPayload(ncMessagePayload);
|
||||
// ncSignalingMessage.setRoomType(videoStreamType);
|
||||
//
|
||||
// signalingMessageSender.send(ncSignalingMessage);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue