- Banuba client token
- OpenTok apiKey, sessionId and token
- Nodejs installed
- Browser with support of WebGL 2.0
The example uses CDN version of the @banuba/webar npm package for simplicity. Please use the npm package mentioned above for real world projects. Check out the Integration tutorials for more ways of consuming @banuba/webar package.
Banuba Client token is required to get Banuba SDK Web AR working.
Generally it's delivered with Banuba SDK Web AR archive.
To receive a new trial client token please fill in the form on banuba.com website, or contact us via [email protected].
Insert Banuba client token into config.js
file
...
banubaSDK: {
clientToken: "PUT YOUR CLIENT TOKEN HERE",
...
},
Insert OpenTok apiKey, sessionId and token into config.js
...
openTok: {
apiKey: "",
sessionID: "",
token: ""
},
Run the live server in the cloned folder
npx live-server
Open localhost:8080 in two different browser windows.
Set up the project on mate's PC.
Run the live server in the cloned folders on both PCs.
npx live-server
Open localhost:8080 on both PCs.
Zip the effect folder and put it under the effects/
subfolder
videocall-tokbox-web/
src
effects/
BackgroundPicture.zip
+ NewEffect.zip
config.js
index.html
index.js
README.md
Add the effect name into effects
array at config.js
...
effects: [
"BackgroundPicture",
+ "NewEffect",
]