Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple init inside AJAX call #1038

Open
foliovision opened this issue Jun 28, 2022 · 0 comments
Open

Multiple init inside AJAX call #1038

foliovision opened this issue Jun 28, 2022 · 0 comments

Comments

@foliovision
Copy link
Owner

Original issue link: #1438 Multiple init inside AJAX call


sandiff commented on Mar 20, 2019

Hi I have a problem with initializing multiple videos via ajax, only the last video get to initialize properly the rest stuck with loading icon. It works fine on page refresh though.

Here is my code for initializing flowplayer inside ajax success function:

$("._video-content").each(function(){
    var $t = $(this);
    flowplayer($t, {
      clip: {
        sources: [
          { type: "video/mp4", src: $t.data("video-src")  }
        ]
      }
    });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant