|
@@ -5,6 +5,7 @@ import android.os.Looper;
|
|
import android.text.TextUtils;
|
|
import android.text.TextUtils;
|
|
|
|
|
|
import com.nextcloud.talk.call.CallParticipantModel;
|
|
import com.nextcloud.talk.call.CallParticipantModel;
|
|
|
|
+import com.nextcloud.talk.call.RaisedHand;
|
|
import com.nextcloud.talk.utils.ApiUtils;
|
|
import com.nextcloud.talk.utils.ApiUtils;
|
|
|
|
|
|
import org.webrtc.EglBase;
|
|
import org.webrtc.EglBase;
|
|
@@ -42,6 +43,7 @@ public class ParticipantDisplayItem {
|
|
private MediaStream mediaStream;
|
|
private MediaStream mediaStream;
|
|
private boolean streamEnabled;
|
|
private boolean streamEnabled;
|
|
private boolean isAudioEnabled;
|
|
private boolean isAudioEnabled;
|
|
|
|
+ private RaisedHand raisedHand;
|
|
|
|
|
|
public ParticipantDisplayItem(String baseUrl, String defaultGuestNick, EglBase rootEglBase, String streamType,
|
|
public ParticipantDisplayItem(String baseUrl, String defaultGuestNick, EglBase rootEglBase, String streamType,
|
|
CallParticipantModel callParticipantModel) {
|
|
CallParticipantModel callParticipantModel) {
|
|
@@ -82,6 +84,8 @@ public class ParticipantDisplayItem {
|
|
callParticipantModel.isVideoAvailable() : false;
|
|
callParticipantModel.isVideoAvailable() : false;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ raisedHand = callParticipantModel.getRaisedHand();
|
|
|
|
+
|
|
participantDisplayItemNotifier.notifyChange();
|
|
participantDisplayItemNotifier.notifyChange();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -129,6 +133,10 @@ public class ParticipantDisplayItem {
|
|
return isAudioEnabled;
|
|
return isAudioEnabled;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public RaisedHand getRaisedHand() {
|
|
|
|
+ return raisedHand;
|
|
|
|
+ }
|
|
|
|
+
|
|
public void addObserver(Observer observer) {
|
|
public void addObserver(Observer observer) {
|
|
participantDisplayItemNotifier.addObserver(observer);
|
|
participantDisplayItemNotifier.addObserver(observer);
|
|
}
|
|
}
|
|
@@ -148,6 +156,7 @@ public class ParticipantDisplayItem {
|
|
", streamType='" + streamType + '\'' +
|
|
", streamType='" + streamType + '\'' +
|
|
", streamEnabled=" + streamEnabled +
|
|
", streamEnabled=" + streamEnabled +
|
|
", rootEglBase=" + rootEglBase +
|
|
", rootEglBase=" + rootEglBase +
|
|
|
|
+ ", raisedHand=" + raisedHand +
|
|
'}';
|
|
'}';
|
|
}
|
|
}
|
|
}
|
|
}
|