The updated capturevideo.js
now uses the external VDO.Ninja SDK instead of having it embedded.
To use it in your Chrome extension:
vdoninja-sdk.js
in your extension's manifestcapturevideo.js
Update your manifest.json
to include both scripts in the correct order:
{ "content_scripts": [{ "matches": ["https://discord.com/*"], "js": [ "vdoninja-sdk.js", "capturevideo.js" ], "run_at": "document_start" }] }
The script creates SDK instances with this configuration:
const vdo = new VDONinjaSDK({ room: ROOM_ID, password: false, // No encryption for this demo debug: true });
To test the integration:
https://vdo.ninja/?room=autopublish_XXXXX&scene