• 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

Show a Terms and Conditions Popup before playing

[Solved]

Foliovision › Forums › FV Player › How to … › Show a Terms and Conditions Popup before playing

  • Brad 5 years, 7 months ago

    Hello,

    Is there a way to create/show a custom Terms and Condition popup so user have to agree before video can start playing?
    Is there a way to trigger an external popup like a Popup Maker plugin (https://docs.wppopupmaker.com/category/28-terms-conditions-popups)?

    Thank you,
    Andrei

Viewing 4 replies - 1 through 4 (of 4 total)
  • Juraj Kacaba 6 years ago
    Avatar photo

    Hello Brad,

    Thanks for reaching out to us!

    Yes, FV Player does support custom HTML pop-ups called Video Actions.

    Let us know if you have any additional questions!

    Thanks,
    Juraj

    Brad 6 years ago

    Hi Julaj,

    I decided to try to handle the task using events in js.
    – I check for a specific cookie on “resume” event. If cookie does not exists – I’d like to pause a video and show a Terms and Conditions popup.
    – when user agrees with terms and conditions (form submit) – I handle a “submit” event to store a cookie and resume (play) the video.

    Here is the example:
    var force_to_stop = false;
    var paused = false;

    api.bind(‘resume’, function(e,api) {

    // get cookie
    var cookie = $.pm_cookie(‘xxx-yyy’);

    // if no cookie – pause and show popup
    if (!cookie){

    // set the flag to use for the ‘progress’ event
    force_to_stop = true;

    // try to pause a video
    api.pause();

    // show popup
    { call method to show popup}
    }
    });

    api.bind(‘progress’, function(e,api,time) {

    if( !paused && force_to_stop ) {

    // pause video
    api.pause();

    // set flag
    paused = true;
    }
    });

    Here are a few questions:
    – how to pause a video correctly? Seems like calling api.pause() does not pause the video on ‘load’, ‘ready’, ‘resume’ events. I’m able to stop a single video on ‘progress’ when use a flag (force_to_stop).
    – what is the correct way to pause a video in the playlist? The code above does not work for a playlist item played (on click initially) until it’s paused and resumed again.

    Thank you
    Andrei

    Martin 6 years ago

    Hello Andrei,

    you are asking the right questions so it seems you are on the right path – the following snippet works for me to pause a video before it starts playing:

    flowplayer(0).bind('ready', function(e,api) {
      console.log('ready!');
      api.pause();
    });
    

    You can use your api in place of flowplayer(0). This should also help you with the playlists.

    Thanks,
    Martin

    Brad 6 years ago

    Thank you for a quick response. It was helpful to get it done.

Viewing 4 replies - 1 through 4 (of 4 total)
Reply To: Show a Terms and Conditions Popup before playing



Please Sign in or Register to upload files.

Related Posts

  1. HTML Popup

  2. HTML Popup Form

  3. HTML Popup formulář

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‬