- display presentation on viewer when presenter uploads new presentation
This commit is contained in:
parent
519da9033d
commit
ffbacbfcfe
@ -1,13 +1,11 @@
|
||||
package org.bigbluebutton.modules.present.services
|
||||
{
|
||||
import com.asfusion.mate.events.Dispatcher;
|
||||
|
||||
import org.as3commons.logging.api.ILogger;
|
||||
import org.as3commons.logging.api.getClassLogger;
|
||||
import org.bigbluebutton.modules.present.commands.ChangePageCommand;
|
||||
import org.bigbluebutton.modules.present.events.PageLoadedEvent;
|
||||
import org.bigbluebutton.modules.present.model.Page;
|
||||
import org.bigbluebutton.modules.present.model.PresentationModel;
|
||||
import org.bigbluebutton.modules.present.model.PresentationPodManager;
|
||||
|
||||
public class PageLoaderService
|
||||
|
@ -296,7 +296,9 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
* Handles notification from presenter that the slide has moved.
|
||||
*/
|
||||
private function handlePageChangedEvent(e:PageChangedEvent):void {
|
||||
LOGGER.debug("Got a page changed event for pod=" + e.podId + " page=" + e.pageId);
|
||||
if (e.podId != this.podId) {
|
||||
LOGGER.debug("Not handling page as this.podId=" + this.podId);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -311,8 +313,9 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
}
|
||||
|
||||
private function positionPage(page:Page):void {
|
||||
LOGGER.debug("Got Positioning page [{0}]", [page.id]);
|
||||
if (page != null && page.swfData != null) {
|
||||
LOGGER.debug("Positioning page [{0}]", [page.id]);
|
||||
LOGGER.debug("Handling Positioning page [{0}]", [page.id]);
|
||||
slideModel.saveViewedRegion(page.xOffset, page.yOffset, page.widthRatio, page.heightRatio);
|
||||
slideModel.calculateViewportNeededForRegion(page.widthRatio, page.heightRatio);
|
||||
slideModel.displayViewerRegion(page.xOffset, page.yOffset, page.widthRatio, page.heightRatio);
|
||||
@ -327,7 +330,9 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
}
|
||||
|
||||
private function handlePageLoadedEvent(e:PageLoadedEvent):void {
|
||||
LOGGER.debug("Got a page loaded event for pod=" + e.podId + " page=" + e.pageId);
|
||||
if (e.podId != this.podId) {
|
||||
LOGGER.debug("Not handling page as this.podId=" + this.podId);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -337,7 +342,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
setSelectedSlide(page.num);
|
||||
slideLoader.source = page.swfData;
|
||||
LOGGER.debug("Displaying page [{0}]", [e.pageId]);
|
||||
// positionPage(page);
|
||||
positionPage(page);
|
||||
if (whiteboardCanvas != null) {
|
||||
whiteboardCanvas.displayWhiteboardById(page.id);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user