Autoplay Videos inside repeating group on Iphone on viewport

Is there a way to enable autoplay on video in iPhone? Currently, videos on iPhone only autoplay when initiated by a user click. Is there a method to achieve autoplay without requiring user interaction?

I’ve noticed that when I play a video and then pause it by swapping, and then swap back, the video resumes playing as expected. This behavior works well in most cases. However, the only issue is that on iPhones, For the first time, the videos require a user interaction to start playing. Is there a solution to enable autoplay on iPhones?

I’m using the AdvancedJS player, along with a Repeating Group Slider to create a swappable set of videos. To pause the previous video when swapping, I’m using the following custom code:

var parentElement = document.getElementById("JSP69RG - job carousel Swaper 's current_index");

if (parentElement) {
    var videoElement = parentElement.querySelector("video");

    if (videoElement) {
        videoElement.pause();
    }
}

**

To play the current video, I’m using the following code:

var parentElement = document.getElementById("JSP69This RepeatingGroupCarousel's Active Number + 1");

if (parentElement) {
    var videoElement = parentElement.querySelector("video");

    if (videoElement) {
        videoElement.play();
    }
}

**
This setup functions well on desktop and Android devices, but on iPhones, the videos don’t autoplay. If I manually start a video playback once and then swap, the video pauses and resumes as expected. However, I’m seeking a way to achieve autoplay without requiring this initial manual interaction on iPhones.

I am using the custom code, because when I attach the Repeating Group Slider on RG which contains the advanceJs Player, the autoplay on viewport is not working within the AdvanceJS player.

@pork1977gm @vladimir.pak

Try this page on your iPhone and make sure low battery power mode is not on.

https://paul-testing-4.bubbleapps.io/version-test/test

Let me know if it works or not. Do you have a link to a simple page? I don’t mind trying it for you.

It does play, but the video is mute, i want it to be unmute

As far as I’m aware, I don’t think it’s possible to do that within iOS. Although it’s actually more of a browser rule that disables it, rather than an OS feature. Most browsers have this rule built in now. It used to be possible, but constant browser updates and I think just general annoyance with videos auto playing with sound enabled has forced the changes. Have a read up on it, my understanding of how this works is no better than what you’ll be able to find on the likes of stackoverflow etc.

1 Like

Thanks sir, @pork1977gm

I guess the same. but still will give it one or two days, else will make each video play with a button on Iphone, even with chrome in Iphone its not palying.