• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Foliovision

  • Weblog
    • FV Player
    • WordPress
    • Video of the Week
    • Case Studies
    • Business
  • About
    • Testimonials
    • Meet the Team
    • We Support
    • Careers
    • Contact
    • Pricing
  • Products
  • Support
    • FV Player Docs
    • Pro Support
  • Login
  • Basket is empty

Autoplay doesn’t work with Ajax

[Solved]

Foliovision › Forums › FV Player › Bug Reports › Autoplay doesn’t work with Ajax

  • Markus R. 4 years, 2 months ago

    Hey there,

    I have problems with getting the autoplay to work. I don’t want it on the whole site so in my sitewide settings the autoplay is disabled. But if I turn on the autoplay in the Post, nothing happens.

    Additional information: The Post for which I want to enale autoplay is audio-only and it’s loaded with ajax. In my compatibility settings for FV-Player ‚Load Javascript everywhere‘ is also enabled.

    Best regards
    Markus

Viewing 3 replies - 1 through 3 (of 3 total)
  • Martin 4 years ago

    Hello Markus,

    it’s true that we do not process autoplay for the Ajax requests.

    Detecting a finished Ajax call and then running a check for Autoplay wouldn’t be a problem:

    <script>
    jQuery( document ).ajaxComplete(fv_autoplay_exec);
    </script>
    

    This might work for you, or perhaps you need to use the event which you theme is using for Ajax.

    But I wonder what should happen if you then load another post with Ajax. Would that also autoplay?

    That’s why I haven’t found a definitive answer for how this could be a core part of our player settings.

    Thanks,
    Martin

    Markus R. 4 years ago

    Hey Martin,

    It works!!! But only the first time I open the pop-up. Is there a solution for that?

    Kind regards
    Markus

    Martin 4 years ago

    Hello Markus,

    here’s an update to that code to do allow that:

    <script>
    jQuery( document ).ajaxComplete( function() {
      fv_player_did_autoplay = false;
      fv_autoplay_exec();
      jQuery('[data-fvautoplay]').removeAttr('data-fvautoplay');
    });
    </script>
    

    Thanks,
    Martin

Viewing 3 replies - 1 through 3 (of 3 total)
Reply To: Autoplay doesn’t work with Ajax



Please Sign in or Register to upload files.

Related Posts

  1. Ajax skin issues

    Ajax skin issues

  2. Load FV Player within Ajax Load More infinite scroll

    Load FV Player within Ajax Load More infinite scroll

  3. Load FV Player inside Fancybox true Ajax-feature

    Load FV Player inside Fancybox true Ajax-feature

Primary Sidebar

Bug Reports

    Categories

    • Business
    • Camera Reviews
    • Case Studies
    • Design
    • FV Player
    • Internet Marketing
    • IT
    • Life
    • SEO
    • Slovak
    • Video of the Week
    • WordPress

    Footer

    Our Plugins

    • FV WordPress Flowplayer
    • FV Thoughtful Comments
    • FV Simpler SEO
    • FV Antispam
    • FV Gravatar Cache
    • FV Testimonials

    Free Tools

    • Pandoc Online
    • Article spinner
    • WordPress Password Finder
    • Delete LinkedIn Account
    • Responsive Design Calculator
    Foliovision logo
    All materials © 2026 Foliovision s.r.o. | Panská 12 - 81101 Bratislava - Slovakia | info@foliovision.com
    • This Site Uses Cookies
    • Privacy Policy
    • Terms of Service
    • Site Map
    • Contact
    • Tel. ‭+421 2/5292 0086‬