Start, pause, stop screen sharing.
This commit is contained in:
parent
68916c95f6
commit
6e177ef74f
Binary file not shown.
@ -49,7 +49,7 @@ public class ScreenRegionSharer implements ScreenSharer, NetworkConnectionListen
|
||||
}
|
||||
|
||||
public void start(boolean autoStart) {
|
||||
if (status.toUpperCase().equals(STOP)) {
|
||||
if (!status.toUpperCase().equals(START)) {
|
||||
CaptureRegionListener crl = new CaptureRegionListenerImp(this);
|
||||
frame = new CaptureRegionFrame(crl, 5);
|
||||
frame.setHeight(ssi.captureHeight);
|
||||
@ -78,16 +78,18 @@ public class ScreenRegionSharer implements ScreenSharer, NetworkConnectionListen
|
||||
}
|
||||
|
||||
public void stop() {
|
||||
status = STOP;
|
||||
frame.setVisible(false);
|
||||
sharer.stopSharing();
|
||||
signalChannel.stopSharing();
|
||||
tray.removeIconFromSystemTray();
|
||||
System.out.println(NAME + "Closing Screen Capture Frame");
|
||||
if (! status.toUpperCase().equals(STOP)) {
|
||||
status = STOP;
|
||||
frame.setVisible(false);
|
||||
sharer.stopSharing();
|
||||
signalChannel.stopSharing();
|
||||
tray.removeIconFromSystemTray();
|
||||
System.out.println(NAME + "Closing Screen Capture Frame");
|
||||
}
|
||||
}
|
||||
|
||||
private void pause() {
|
||||
if (status.toUpperCase().equals(PAUSE)) {
|
||||
if (! status.toUpperCase().equals(PAUSE)) {
|
||||
frame.setVisible(false);
|
||||
sharer.stopSharing();
|
||||
status = PAUSE;
|
||||
@ -102,7 +104,7 @@ public class ScreenRegionSharer implements ScreenSharer, NetworkConnectionListen
|
||||
System.out.println(NAME + "Pausing. Reason=" + reason.getExitCode());
|
||||
pause();
|
||||
} else if (reason.getExitCode() == ExitCode.START.getExitCode()) {
|
||||
System.out.println(NAME + "Pausing. Reason=" + reason.getExitCode());
|
||||
System.out.println(NAME + "starting. Reason=" + reason.getExitCode());
|
||||
start(false);
|
||||
} else {
|
||||
System.out.println(NAME + "Closing. Reason=" + reason.getExitCode());
|
||||
|
@ -292,8 +292,10 @@ bbb.screensharePublish.fullscreen.tooltip = Share Your Main Screen
|
||||
bbb.screensharePublish.fullscreen.label = Full Screen
|
||||
bbb.screensharePublish.region.tooltip = Share a Part of Your Screen
|
||||
bbb.screensharePublish.region.label = Region
|
||||
bbb.screensharePublish.stop.tooltip = Pause screen share
|
||||
bbb.screensharePublish.stop.label = Pause
|
||||
bbb.screensharePublish.pause.tooltip = Pause screen share
|
||||
bbb.screensharePublish.pause.label = Pause
|
||||
bbb.screensharePublish.restart.tooltip = Restart screen share
|
||||
bbb.screensharePublish.restart.label = Restart
|
||||
bbb.screensharePublish.maximizeRestoreBtn.toolTip = You cannot maximize this window.
|
||||
bbb.screensharePublish.closeBtn.toolTip = Stop Sharing and Close
|
||||
bbb.screensharePublish.chromeOnMacUnsupportedHint = Desktop sharing is not currently supported on Chrome running under Mac OS X. Recommend you use FireFox to share desktop.
|
||||
|
Loading…
Reference in New Issue
Block a user