BoxCast <Developer />   BoxCast SDK for JavaScript Reference


Overview

This library can be used for custom integration projects where the standard BoxCast embedded player may not suffice.

We do strongly encourage you to use the standard embedded player instead of this library where possible, because it is the most robust and well-tested playback option.

See Related:


Getting Started

<script src="https://js.boxcast.com/libs/boxcast-sdk-js-2.0.2/browser.js"></script>
<script>
const { analytics, api } = new BoxCastSDK();
</script>

or, install via NPM

/* Important: If you are running this on node, use this: */
import BoxCastSDK from "boxcast-sdk-js/node";

/* otherwise, if you are running this in a browser, use this: */
import BoxCastSDK from "boxcast-sdk-js/browser";

const { analytics, api } = new BoxCastSDK();

You will need to know your BoxCast account ID and corresponding channel IDs in order to properly utilize this library. Contact BoxCast developer support if you need assistance.


Example - video.js video playback

Run example video.js player with BoxCast SDK for JavaScript

Example - JWPlayer video playback

Run example JWPlayer with BoxCast SDK for JavaScript