Making a slider gallery (spheres) autoplay

So I’m trying to have a slider gallery (spheres) autoplay, but the autoplay function is missing from its settings.
Luckily, according to the API , there is a play() function, so I tried using that on an “onViewPortEnter” event.

However, when I try to call that play() function on my slider gallery, I’m having an error saying:
"Wix code SDK Warning: ‘play()’ is not supported for an element of type: wysiwyg.viewer.components.SliderGallery. "

Any ideas?
Thank you

1 Like

I am having this problem as well. Did you manage to find a solution

Thank you

I’m having this problem too - would love to hear how others have resolved this.

Old post from march 2019 appearing, being closed.
Please refer to old posts in a link on your new forum post if you need to bump old posts.

Note that the API also mentions the following.

There are many different types and styles of galleries, some of which do not support all of the properties and functions described below. To determine what functionality a specific gallery supports, use its galleryCapabilities property to identify its capabilities. Then use the list below to determine what functionality is supported by the gallery.

Note
When using play() on a gallery , make sure the gallery is one where the isPlayable capability is true.

If you change a gallery’s type to one that doesn’t support play(), your code may no longer function correctly.

You can always use a slideshow instead.
https://www.wix.com/corvid/reference/$w.Slideshow.html