Local video and desktop sharing buttons enabled automatically when a direct video or desktop sharing call is made from the contact list.

cusax-fix
Yana Stamcheva 16 years ago
parent ce0e606ef2
commit 16d134e38a

@ -459,18 +459,6 @@ public void updateMuteButtonState()
muteButton.setSelected(isAllMute);
}
/**
* Returns <code>true</code> if the video button is selected,
* <code>false</code> - otherwise.
*
* @return <code>true</code> if the video button is selected,
* <code>false</code> - otherwise.
*/
public boolean isVideoButtonSelected()
{
return videoButton.isSelected();
}
/**
* Selects or unselects the video button in this call dialog.
*
@ -535,16 +523,35 @@ public void enableButtons()
ProtocolProviderService protocolProvider
= call.getProtocolProvider();
if (protocolProvider.getOperationSet(
OperationSetVideoTelephony.class) != null)
OperationSetVideoTelephony videoTelephony
= protocolProvider.getOperationSet(
OperationSetVideoTelephony.class);
if (videoTelephony != null)
{
videoButton.setEnabled(true);
// If the video was already enabled (for example in the case of
// direct video call) make sure the video button is selected.
if (videoTelephony.isLocalVideoAllowed(call)
&& !videoButton.isSelected())
setVideoButtonSelected(true);
}
if (protocolProvider.getOperationSet(
OperationSetDesktopSharingServer.class) != null)
OperationSetDesktopSharingServer desktopSharing
= protocolProvider.getOperationSet(
OperationSetDesktopSharingServer.class);
if (desktopSharing != null)
{
desktopSharingButton.setEnabled(true);
// If the video was already enabled (for example in the case of
// direct desktop sharing call) make sure the video button is
// selected.
if (desktopSharing.isLocalVideoAllowed(call)
&& !desktopSharingButton.isSelected())
setDesktopSharingButtonSelected(true);
}
if (protocolProvider.getOperationSet(

Loading…
Cancel
Save