Options
All
  • Public
  • Public/Protected
  • All
Menu

Banuba SDK JavaScript API Reference

Banuba WebAR SDK

This is JavaScript API Reference for Banuba WebAR SDK.

Quickstart

import { Webcam, Player, Effect, Dom } from "/BanubaSDK.js"

const run = async () => {
const player = await Player.create({ clientToken: "xxx-xxx-xxx" })

player.use(new Webcam())
player.applyEffect(new Effect("Octopus.zip"))
player.play()

Dom.render(player, "#webar-app")
}

run()