• 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

Using FV player javascript API with multiple players on the page

[Solved]

Foliovision › Forums › FV Player › How to … › Using FV player javascript API with multiple players on the page

  • miksmusic 3 years, 10 months ago

    Hi,
    I’m using js api to detect when player is paused or stopped. It works fine with one or two players on the page.
    However, how can I find out which player triggered the event if I have multiple players on the same page? Like 5 or 10 players.
    Specifically, how can I select the player that triggered the event via jquery?
    Using something like $(‘.flowplayer.is-paused’) works great with one or two players but with multiple players it ambiguous.
    Is it possible for the api to return the id of the player that triggered the event?
    Thanks!

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

    Hello Miksmusic,

    do you use the flowplayer( function(api,root) … ) callback as shown in Programmer’s Guide -> How to Add Your Code? https://foliovision.com/player/advanced/api-programming#how-to ?

    Then you can use jQuery(root) to get the main player element and it will be always the one where the event has occurred.

    Please let us know if that’s it.

    Thanks,
    Martin

Viewing 1 replies (of 1 total)
Reply To: Using FV player javascript API with multiple players on the page



Please Sign in or Register to upload files.

Related Posts

  1. cannot pause or stop audio play with multiple players on page

    cannot pause or stop audio play with multiple players on page

  2. Multiple players on same page?

    Multiple players on same page?

  3. Two players on the same page with different layout

    Two players on the same page with different layout

Primary Sidebar

How to …

    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‬