Replies: 1 comment 1 reply
-
This is easily doable with a simple setTimeout and the Autorotate plugin. let current = -1;
const panoramas = [
'one.jpg',
'two.jpg',
'three.jpg',
];
function next() {
current++;
if (current === panoramas.length) {
current = 0;
}
viewer.getPlugin('autorotate').stop();
viewer.setPanorama(panoramas[i])
.then(() => {
viewer.getPlugin('autorotate').start();
setTimeout(() => next(), 10000); // adapt the timeout depending on autorotate speed
});
}
next(); // init |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Would it be possible to make a screensaver plugin that shows gallery panoramas and after a 360 degrees rotation continues to the next panorama?
Beta Was this translation helpful? Give feedback.
All reactions