-
hi,
can your player remove ads for just people that pay?
thanks in advance for any help
Foliovision › Forums › FV Player › How to … › Remove ads for people who have paid
Hello Gary,
please check our programming guide: https://foliovision.com/player/advanced/api-programming#filters -> fv_flowplayer_args_pre
That filter shows you how to adjust the player shortcode arguments before display. It checks for “autoplay” URL query argument, so that is the place where you could check the user membership/payment.
To get rid of the ads you would have to set the desired shortcode argument properly, depending on what kind of ads you use: https://foliovision.com/player/basic-setup/shortcode-parameters#ads
For simple overlay ads it would be ad_skip=”yes”, for preroll/postroll video ads available in FV Player Pro it would be preroll=”no” or postroll=”no” and for VAST Ads use vast=”skip”.
add_filter( 'fv_flowplayer_args_pre', 'fv_tweak_fv_flowplayer_args_pre' ); function fv_tweak_fv_flowplayer_args_pre( $args ) { if( 1 /* check user membership here */ ) { $args['ad_skip'] = 'yes'; $args['preroll'] = 'no'; $args['postroll'] = 'no'; $args['vast'] = 'skip'; } return $args; }
Thanks, Martin
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
Strictly Necessary Cookie allow you to log in and download your software or post to forums.
We use the WordPress login cookie and the session cookie.
If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
Foliovision.com uses self-hosted Rocket.chat and self-hosted Freescout support desk to provide support for FV Player users. These cookies allow our visitors to chat with us and/or submit support tickets.
We are delighted to recommend self-hosted Rocket.chat and especially Freescout to other privacy-conscious independent publishers who would prefer to self-host support.
Please enable Strictly Necessary Cookies first so that we can save your preferences!
This website uses Google Analytics and Statcounter to collect anonymous information such as the number of visitors to the site, and the most popular pages.
Keeping this cookie enabled helps us to improve our website.
We reluctantly use Google Analytics as it helps us to test FV Player against popular Google Analytics features. Feel free to turn off these cookies if they make you feel uncomfortable.
Statcounter is an independent Irish stats service which we have been using since the beginning of recorded time, sixteen years ago.
Please enable Strictly Necessary Cookies first so that we can save your preferences!