Stripchat JS scripts for embedding on sites.
npm install @stripchat/stripchat-embedded
import { StripchatPlayer } from '@stripchat/stripchat-embedded';
var canvasRef = document.getElementById('canvas');
var modelId = 1; // put real model id
var modelToken = 'modelToken'; // put real model token
var modelSnapshotServer = 'modelSnapshotServer'; // put real model snapshot server
var player;
player = (new StripchatPlayer())
.setCanvasRef(canvasRef)
.setModelId(modelId)
.setModelToken(modelToken)
.setModelSnapshotServer(modelSnapshotServer)
.mount();
See example.html