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:
parent
398c096a05
commit
76c0485ed2
7
prezi.js
7
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 || {}));
|
||||
}(Prezi || {}));
|
||||
|
|
Loading…
Reference in New Issue