Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Conditionally enable/disable ads


Is there a way to conditionally enable and/or disable ads when embedding the player? I'm looking to build a service where the user can buy a subscription to disable ads. Thanks!

1 Community Answers

Todd

JW Player Support Agent  
0 rated :

The easiest way to do this would be to only add the advertising: {} block to your player when the viewer does not have your subscription.
You can either do this with two different cloud-hosted players configured as such in your account dashboard, or you can have a custom embed on the page that first checks to see if this is a “no ads” customer or not and then call the correct embed code via Javascript or your server-side code.

This question has received the maximum number of answers.