From 76c0485ed28e1f6a048d3129b9eba9f433a4efe7 Mon Sep 17 00:00:00 2001 From: peili Date: Fri, 18 Apr 2014 23:52:15 +0200 Subject: [PATCH] Skip animation steps Current prezi API does not support flying to certain animation steps. So in case a prezi would have animation steps, the slide would be empty for the viewer. With this patch we can at least show entire slide content to viewers if the slide has animations steps. see also http://prezi.github.io/prezi-player/lib/PreziPlayer/ --- prezi.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/prezi.js b/prezi.js index 8e2d988ce9..85506ae5e6 100644 --- a/prezi.js +++ b/prezi.js @@ -324,6 +324,11 @@ var Prezi = (function (my) { $(document).bind('gotoslide.muc', function (event, jid, presUrl, current) { if (preziPlayer) { preziPlayer.flyToStep(current); + // + var animationStepsArray = preziPlayer.getAnimationCountOnSteps(); + for (var i = 0; i <= animationStepsArray[current]; i++) { + preziPlayer.flyToNextStep(); + } } }); @@ -340,4 +345,4 @@ var Prezi = (function (my) { }); return my; -}(Prezi || {})); \ No newline at end of file +}(Prezi || {}));