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/
This commit is contained in:
peili 2014-04-18 23:52:15 +02:00
parent 398c096a05
commit 76c0485ed2
1 changed files with 6 additions and 1 deletions

View File

@ -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 || {}));
}(Prezi || {}));