diff options
author | Vincent Lucas <chenzo@jitsi.org> | 2013-01-29 16:51:16 +0000 |
---|---|---|
committer | Vincent Lucas <chenzo@jitsi.org> | 2013-01-29 16:51:16 +0000 |
commit | 0048d0bdd75a1e796a418f346868cc9bd49725ef (patch) | |
tree | ca61f2c77333fdd9ab35ec8d9b8a07c2ad7c5bab /src/net/java/sip/communicator/impl/gui/main/call/OneToOneCallPeerPanel.java | |
parent | 30363404e8b573d75bc8265969a913878f63dfe7 (diff) | |
download | jitsi-0048d0bdd75a1e796a418f346868cc9bd49725ef.zip jitsi-0048d0bdd75a1e796a418f346868cc9bd49725ef.tar.gz jitsi-0048d0bdd75a1e796a418f346868cc9bd49725ef.tar.bz2 |
Re-enables the LO/SD/HD button for video calls.
Diffstat (limited to 'src/net/java/sip/communicator/impl/gui/main/call/OneToOneCallPeerPanel.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/gui/main/call/OneToOneCallPeerPanel.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/call/OneToOneCallPeerPanel.java b/src/net/java/sip/communicator/impl/gui/main/call/OneToOneCallPeerPanel.java index dd53d13..b4233bb 100644 --- a/src/net/java/sip/communicator/impl/gui/main/call/OneToOneCallPeerPanel.java +++ b/src/net/java/sip/communicator/impl/gui/main/call/OneToOneCallPeerPanel.java @@ -1364,6 +1364,25 @@ public class OneToOneCallPeerPanel || ((remoteVideo != null) && !UIVideoHandler2.isAncestor(center, remoteVideo))); + // If the remote video has changed, maybe the CallPanel can display + // the LO/SD/HD button. + if(remoteVideoChanged) + { + CallPanel callPanel = callRenderer.getCallContainer(); + // The remote video has been added, then tries to display the + // LO/SD/HD button. + if(remoteVideo != null) + { + callPanel.addRemoteVideoSpecificComponents(callPeer); + } + // The remote video has been removed, then hide the LO/SD/HD + // button if it is currently displayed. + else + { + callPanel.removeRemoteVideoSpecificComponents(); + } + } + if (localVideoChanged || remoteVideoChanged) { /* |