PRESTOplay for Web Apps is our SDK framework for deploying fantastic HTML/JavaScript video players across web-enabled platforms.
You can start using PRESTOplay now for your local development, and visit us to get your license.
Documentation, manuals, tutorials and demos can be found at https://demo.castlabs.com.
You can install the PRESTOplay SDK using a package manager such as npm
or yarn
using:
npm install @castlabs/prestoplay
Once installed, you can follow the getting started guide for a full example, but here is how it would look like:
import {clpp} from "@castlabs/prestoplay"
import "@castlabs/prestoplay/cl.mse"
import "@castlabs/prestoplay/cl.dash"
const player = new clpp.Player("video");
player.use(clpp.dash.DashComponent);
player.load({
source: "https://content.players.castlabs.com/demos/clear-segmented/manifest.mpd"
})
There is also an accompanying stylesheet that can be found in:
node_modules/@castlabs/prestoplay/clpp.styles.css