PRESTOplay for Web Apps
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.
To learn more, read the manual and the API documentation, or try the player in our demo.
Installation and getting started
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.open({
source: "https://content.players.castlabs.com/demos/clear-segmented/manifest.mpd",
autoplay: true,
});
There is also an accompanying stylesheet that can be found in:
node_modules/@castlabs/prestoplay/clpp.styles.css