mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-15 08:45:04 +01:00
add comments where to implement the raise hand signaling message
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
0ea13c1ec7
commit
2637884a83
@ -421,6 +421,22 @@ public class CallActivity extends CallBaseActivity {
|
||||
} else if (viewState instanceof RaiseHandViewModel.LoweredHandState) {
|
||||
binding.lowerHandButton.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
// TODO: build&send raiseHand message (if not possible in RaiseHandViewModel, just do it here..)
|
||||
// if (isConnectionEstablished() && peerConnectionWrapperList != null) {
|
||||
// if (!hasMCU) {
|
||||
// for (PeerConnectionWrapper peerConnectionWrapper : peerConnectionWrapperList) {
|
||||
// peerConnectionWrapper.raiseHand(...);
|
||||
// }
|
||||
// } else {
|
||||
// for (PeerConnectionWrapper peerConnectionWrapper : peerConnectionWrapperList) {
|
||||
// if (peerConnectionWrapper.getSessionId().equals(webSocketClient.getSessionId())) {
|
||||
// peerConnectionWrapper.raiseHand(...);
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
});
|
||||
|
||||
callRecordingViewModel = new ViewModelProvider(this, viewModelFactory).get((CallRecordingViewModel.class));
|
||||
@ -1248,22 +1264,6 @@ public class CallActivity extends CallBaseActivity {
|
||||
|
||||
public void clickRaiseOrLowerHandButton() {
|
||||
raiseHandViewModel.clickHandButton();
|
||||
|
||||
// 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;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
@ -191,8 +191,7 @@ public class PeerConnectionWrapper {
|
||||
}
|
||||
|
||||
public void raiseHand(Boolean raise) {
|
||||
|
||||
// TODO: fix how to build&send the message
|
||||
// TODO: build&send raiseHand message (either here or via RaiseHandViewModel)
|
||||
// NCMessagePayload ncMessagePayload = new NCMessagePayload();
|
||||
// ncMessagePayload.setState(raise);
|
||||
// ncMessagePayload.setTimestamp(System.currentTimeMillis());
|
||||
|
Loading…
Reference in New Issue
Block a user