The Supercast Javascript library can be used to enhance your website with Supercast functionality. It's comprised of custom elements that can be placed directly on any of your webpages to provide Supercast functionality with a line of code, or by utilizing Javascript methods that allow you to directly interact with your subscriber's Supercast accounts directly in their browser sessions.
Including the Supercast Javascript Library
You can include the Javascript Library on any page with the following code snippet:
<script src="https://supercast.tech/embed.js"></script>
This will always retrieve the latest version of the library. Any changes we make are always backwards-compatible. We recommend including the library on all of your pages in the HEAD section.
Custom Elements
Custom elements provide an easy way to bring Supercast functionality to your webpage. By including a single HTML element, you can allow your users to purchase subscriptions, connect their players, or gate content behind a subscription.
Javascript functions
The Supercast Javascript library additionally contains some Javascript functions that can be used to interact with Supercast.