Clappr - it is an extensible library for creating video players. It is supported by many browsers and basically all mobile devices, including some game consoles.
Teleport.js is compatible with Clappr v0.2.70 and later
To get started
Before the Teleport.js configure and launch, you have to signup in the Teleport client area, connect the domain of your streaming and get an API key.
While the integrating Clappr with Teleport, JS modules should be loaded strictly in the following order:
- Teleport Core bundle with the DASH plugin for Clappr (all connectivity options for the Teleport library) .
To start downloading video chunks from p2p, you need to:
- Initialize Teleport by specifying
clappr-dashas the loader
- After the Teleport script initialization, get the API loader and then
TeleportClapprDashPlayback. It is vital for Clappr support for p2p.
- Create an instance of the Clappr player, specifying an additional plugin
The Clappr player loader expects the Clappr object to be available in the global scope. That is, if you have an SPA that turns on this player, you must assign the
window.Clappr variable with the namespace of the player to download the Teleport script.