stripchat-team / stripchat-embedded

Stripchat JS scripts for embedding on other sites
28 stars 9 forks source link

stripchat-embedded

Stripchat JS scripts for embedding on sites.

Current scripts

Install

npm install @stripchat/stripchat-embedded

Use

Stripchat player code example

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();

Stripchat player with widget API example page

See example.html

TODO