-
hi,
can your player remove ads for just people that pay?
thanks in advance for any help
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
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