Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1299692

    I’ building a website and we use the plugin “Media Grid” to build a grid of images and video. On that page we would also like to place a video with the enfold advanced layout builder.
    But there seems to be a conflict as the video stops after a few seconds even if its in autoplay. I checked and if I add the video the same way on an empty page it works fine. Also if I take out the Media grid it works fine. So there is some sort of conflict which stops the video.
    Is there any way I can get the video to autoplay and work fine without stopping.

    Would be great if someone could help me on this.

    #1300291

    Hey Stefan,

    Thank you for the inquiry.

    The video is not playing automatically on our end, but it does not stop after playing it manually. What happens when you remove the webm version of the video and leave mp4?

    Best regards,
    Ismael

    #1300295

    Hey Ismael,

    thanks for your help. I tried before with only an .mp4 and it didn’t work. Then I added the other and it still didn’t play.
    I know that it works if you manually click on it but it should auto start once the pages loads.
    If I delete the media grid part it works fine, as soon as I add the media grid again it stops working. So there seems to be a conflict between the video playing and the media grid.

    Is there a way to make sure the video plays without conflicting with the media grid?

    #1300736

    Hi,

    We see this error in the console but it does not say exactly which function is calling the pause function, but there is a possible fix in the provided link.

    Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause(). https://goo.gl/LdLk22
    

    // https://developers.google.com/web/updates/2017/06/play-request-was-interrupted

    We have also found a log in the plugin’s frontend.js file.

    ar P = function(b, d) {
            c(b).parents(".mg_box").hasClass("mgi_shown") ? (c(b).hasClass("mg_muted_autoplay") && d.setMuted(!0),
            console.log("test"),
            d.play()) : setTimeout(function() {
                P(b, d)
            }, 100)
        };
        mg_audio_play
    

    Did you add the console.log?

    Best regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.