
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!
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!
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.