initialize whiteboard canvas with current presenter id
This commit is contained in:
parent
daa72b2008
commit
8edfe1037f
@ -308,6 +308,11 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
|||||||
becomePresenter();
|
becomePresenter();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//send new presenter to the whiteboard canvas
|
||||||
|
if (whiteboardOverlay != null) {
|
||||||
|
whiteboardOverlay.presenterChange(amITheCurrentPodPresenter(), currentPresenterInPod);
|
||||||
|
}
|
||||||
|
|
||||||
populatePodDropdown();
|
populatePodDropdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -651,6 +656,8 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
|||||||
if(whiteboardOverlay != null) {
|
if(whiteboardOverlay != null) {
|
||||||
LOGGER.debug("addWhiteboardCanvasToSlideView: Adding whiteboard canvas to SlideView");
|
LOGGER.debug("addWhiteboardCanvasToSlideView: Adding whiteboard canvas to SlideView");
|
||||||
slideView.acceptOverlayCanvas(this.podId, whiteboardOverlay);
|
slideView.acceptOverlayCanvas(this.podId, whiteboardOverlay);
|
||||||
|
|
||||||
|
whiteboardOverlay.presenterChange(amITheCurrentPodPresenter(), currentPresenterInPod);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -370,11 +370,10 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function becomeViewer(amIThePresenterInThePod:Boolean, currentPresenterInPod: String):void {
|
public function becomeViewer(amIThePresenterInThePod:Boolean, currentPresenterInPod: String):void {
|
||||||
|
|
||||||
removeEventListener(MouseEvent.MOUSE_WHEEL, onMouseWheelZoomEvent);
|
removeEventListener(MouseEvent.MOUSE_WHEEL, onMouseWheelZoomEvent);
|
||||||
this.removeEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
|
this.removeEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
|
||||||
if (whiteboardCanvas != null && currentPresenterInPod != null) {
|
|
||||||
whiteboardCanvas.presenterChange(amIThePresenterInThePod, currentPresenterInPod);
|
|
||||||
}
|
|
||||||
pagePositionBroadcaster.reset();
|
pagePositionBroadcaster.reset();
|
||||||
|
|
||||||
endDrag();
|
endDrag();
|
||||||
@ -391,9 +390,6 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
|||||||
addEventListener(MouseEvent.MOUSE_WHEEL, onMouseWheelZoomEvent);
|
addEventListener(MouseEvent.MOUSE_WHEEL, onMouseWheelZoomEvent);
|
||||||
this.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
|
this.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
|
||||||
notifyOthersOfZoomEvent();
|
notifyOthersOfZoomEvent();
|
||||||
if (whiteboardCanvas != null) {
|
|
||||||
whiteboardCanvas.presenterChange(amIThePresenterInThePod, currentPresenterInPod);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function noSlideContentLoaded():Boolean {
|
private function noSlideContentLoaded():Boolean {
|
||||||
|
@ -169,7 +169,10 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
|||||||
|
|
||||||
public function presenterChange(amIPresenter:Boolean): void {
|
public function presenterChange(amIPresenter:Boolean): void {
|
||||||
this.isPresenter = amIPresenter;
|
this.isPresenter = amIPresenter;
|
||||||
|
|
||||||
|
if (multiUserBtn != null) {
|
||||||
multiUserBtn.enabled = multiUserBtn.visible = multiUserBtn.includeInLayout = amIPresenter;
|
multiUserBtn.enabled = multiUserBtn.visible = multiUserBtn.includeInLayout = amIPresenter;
|
||||||
|
}
|
||||||
checkVisibility();
|
checkVisibility();
|
||||||
|
|
||||||
if (!amIPresenter) {
|
if (!amIPresenter) {
|
||||||
|
Loading…
Reference in New Issue
Block a user